This commit is contained in:
hailin 2025-08-08 19:53:31 +08:00
parent 1e9d6ffd7d
commit 00e2c3df0f
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,14 @@
# 正确删除整个环境
mamba deactivate || true
mamba env remove -n hf-train-cu118 || mamba remove -n hf-train-cu118 --all
# 仍然残留就手动清掉目录
rm -rf ~/.local/share/mamba/envs/hf-train-cu118
# 看看是否还在列表里
mamba env list
mamba env create -f hf-train-cu118.yaml --strict-channel-priority mamba env create -f hf-train-cu118.yaml --strict-channel-priority
mamba activate hf-train-cu118 mamba activate hf-train-cu118
python -m pip install --no-deps -r requirements-hf.txt python -m pip install --no-deps -r requirements-hf.txt

View File

@ -17,10 +17,10 @@ dependencies:
# ---- HF 主栈 ---- # ---- HF 主栈 ----
- transformers>=4.40,<5 - transformers>=4.40,<5
- accelerate>=0.30 - accelerate>=0.30,<1.10
- datasets>=2.18 - datasets>=2.18
- evaluate>=0.4 - evaluate>=0.4
- safetensors>=0.4 - safetensors==0.4.3
- sentencepiece>=0.1.99 - sentencepiece>=0.1.99
- tokenizers=0.19.* - tokenizers=0.19.*