2024-10-24 21:03:24 +02:00
|
|
|
# Magisterka - Patryk Bartkowiak
|
2024-10-20 13:08:40 +02:00
|
|
|
|
|
|
|
## Required dependencies for the repository to work properly
|
|
|
|
* [Git](https://git-scm.com/)
|
|
|
|
* [PDM](https://pdm-project.org/en/latest/)
|
|
|
|
|
|
|
|
## How to run the training?
|
2024-10-24 21:04:59 +02:00
|
|
|
### ***Note: You have to be in `./code/` directory***
|
2024-10-24 21:03:24 +02:00
|
|
|
### 1. Install PDM
|
|
|
|
```bash
|
|
|
|
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
|
|
|
|
```
|
2024-10-24 21:10:27 +02:00
|
|
|
### 2. Update `$PATH`
|
|
|
|
```bash
|
|
|
|
export PATH=/root/.local/bin:$PATH
|
|
|
|
```
|
|
|
|
### 3. Install dependencies
|
2024-10-20 13:08:40 +02:00
|
|
|
```bash
|
|
|
|
pdm install
|
2024-10-24 21:03:24 +02:00
|
|
|
```
|
2024-10-24 21:10:27 +02:00
|
|
|
### 4. Run training code
|
2024-10-24 21:03:24 +02:00
|
|
|
```bash
|
2025-01-07 12:45:55 +01:00
|
|
|
pdm train
|
2024-10-24 21:03:24 +02:00
|
|
|
```
|
2025-01-07 12:45:55 +01:00
|
|
|
|
|
|
|
## Required secrets
|
2024-10-24 21:03:24 +02:00
|
|
|
```
|
2025-01-07 12:45:55 +01:00
|
|
|
export HF_TOKEN=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
|
|
|
|
export WANDB_API_KEY=313671f10f2a389b3171b32da8d4abdad91aaa7c
|
2024-10-20 13:08:40 +02:00
|
|
|
```
|