fix(doc): cut cross entropy installation instructions broken in qmd (#2532)
This commit is contained in:
@@ -12,11 +12,13 @@ See https://github.com/apple/ml-cross-entropy
|
|||||||
|
|
||||||
Run the following command to install `cut_cross_entropy[transformers]` if you don't have it already.
|
Run the following command to install `cut_cross_entropy[transformers]` if you don't have it already.
|
||||||
|
|
||||||
|
- If you are in dev environment
|
||||||
```bash
|
```bash
|
||||||
# if you are in dev environment
|
|
||||||
python scripts/cutcrossentropy_install.py | sh
|
python scripts/cutcrossentropy_install.py | sh
|
||||||
|
```
|
||||||
|
|
||||||
# if you are not in dev environment
|
- If you are installing from pip
|
||||||
|
```bash
|
||||||
pip3 uninstall -y cut-cross-entropy && pip3 install "cut-cross-entropy[transformers] @ git+https://github.com/apple/ml-cross-entropy.git@bad6f7b49c75fdec69471abb71b4cddd0f0c6438"
|
pip3 uninstall -y cut-cross-entropy && pip3 install "cut-cross-entropy[transformers] @ git+https://github.com/apple/ml-cross-entropy.git@bad6f7b49c75fdec69471abb71b4cddd0f0c6438"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user