[misc] update readme (#6917)

Former-commit-id: 6bbed1d8c4189fb7bea40230e278c40bb5336fbd
This commit is contained in:
hoshi-hiyouga
2025-02-13 00:58:10 +08:00
committed by GitHub
parent 46203856fc
commit 290057069e
4 changed files with 37 additions and 1 deletions

View File

@@ -436,6 +436,22 @@ Extra dependencies available: torch, torch-npu, metrics, deepspeed, liger-kernel
> [!TIP]
> Use `pip install --no-deps -e .` to resolve package conflicts.
<details><summary>Setting up a virtual environment with <b>uv</b></summary>
Create an isolated Python environment with uv:
```bash
uv sync --extra torch --extra metrics --prerelease=allow
```
Run LLaMA-Factory in the isolated environment:
```bash
uv run --prerelease=allow llamafactory-cli train examples/train_lora/llama3_lora_pretrain.yaml
```
</details>
<details><summary>For Windows users</summary>
#### Install BitsAndBytes