Spaces:
Runtime error
Runtime error
refactor: update startup command to use app.py instead of uvicorn and add HF_TOKEN note to documentation
Browse files- Dockerfile +1 -1
- README.md +4 -4
Dockerfile
CHANGED
|
@@ -10,4 +10,4 @@ COPY . .
|
|
| 10 |
ENV STEP_ZERO_MOCK=1
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
-
CMD ["
|
|
|
|
| 10 |
ENV STEP_ZERO_MOCK=1
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
|
@@ -23,10 +23,8 @@ The resulting fine-tuned model and synthetic dataset from this project have been
|
|
| 23 |
## Quick Start (Mock Mode)
|
| 24 |
|
| 25 |
```bash
|
| 26 |
-
python3 -m venv .venv
|
| 27 |
-
. .venv/bin/activate
|
| 28 |
python -m pip install -r requirements.txt
|
| 29 |
-
|
| 30 |
```
|
| 31 |
|
| 32 |
Open `http://localhost:7860`.
|
|
@@ -46,9 +44,11 @@ Then run:
|
|
| 46 |
STEP_ZERO_MOCK=0 \
|
| 47 |
NEMOTRON_MODEL_PATH=./models/step-zero-nemotron-finetuned.gguf \
|
| 48 |
MINICPM_MODEL_PATH=./models/minicpm-3-4b.gguf \
|
| 49 |
-
|
| 50 |
```
|
| 51 |
|
|
|
|
|
|
|
| 52 |
## Modal Fine-Tuning Pipeline
|
| 53 |
|
| 54 |
If you want to reproduce the Nemotron fine-tuning run:
|
|
|
|
| 23 |
## Quick Start (Mock Mode)
|
| 24 |
|
| 25 |
```bash
|
|
|
|
|
|
|
| 26 |
python -m pip install -r requirements.txt
|
| 27 |
+
python app.py
|
| 28 |
```
|
| 29 |
|
| 30 |
Open `http://localhost:7860`.
|
|
|
|
| 44 |
STEP_ZERO_MOCK=0 \
|
| 45 |
NEMOTRON_MODEL_PATH=./models/step-zero-nemotron-finetuned.gguf \
|
| 46 |
MINICPM_MODEL_PATH=./models/minicpm-3-4b.gguf \
|
| 47 |
+
python app.py
|
| 48 |
```
|
| 49 |
|
| 50 |
+
> **Note on "Sharing is Caring" Badge:** If you wish to use the "Push to Hub" button to export your trace to Hugging Face, ensure you have exported your `HF_TOKEN` environment variable before running the app.
|
| 51 |
+
|
| 52 |
## Modal Fine-Tuning Pipeline
|
| 53 |
|
| 54 |
If you want to reproduce the Nemotron fine-tuning run:
|