Update README.md
Browse files
README.md
CHANGED
|
@@ -38,9 +38,10 @@ uv pip install --pre --index-url https://download.pytorch.org/whl/nightly/cu126
|
|
| 38 |
|
| 39 |
## QAT Finetuning with PARQ
|
| 40 |
|
| 41 |
-
We apply QAT with an optimizer-only package called [PARQ](https://github.com/pytorch/ao/tree/main/torchao/prototype/parq). The
|
| 42 |
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
```bash
|
| 46 |
source ~/.uv-hf/bin/activate
|
|
|
|
| 38 |
|
| 39 |
## QAT Finetuning with PARQ
|
| 40 |
|
| 41 |
+
We apply QAT with an optimizer-only package called [PARQ](https://github.com/pytorch/ao/tree/main/torchao/prototype/parq). The below script finetunes Phi-4-mini-instruct with 3-bit weight quantization and 4-bit embedding quantization using QAT, both at per-row granularity. Do the following before running it:
|
| 42 |
|
| 43 |
+
1. `curl -O https://huggingface.co/datasets/pytorch/parq-sft/resolve/main/qat_sft.py`
|
| 44 |
+
2. Set `dataset_name` to your desired dataset from the [HuggingFace datasets hub](https://huggingface.co/datasets) in addition to `max_steps`.
|
| 45 |
|
| 46 |
```bash
|
| 47 |
source ~/.uv-hf/bin/activate
|