From 00e2c3df0fd97e17521a3311b8d072f804a9365d Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 8 Aug 2025 19:53:31 +0800 Subject: [PATCH] . --- README.txt | 11 +++++++++++ hf-train-cu118.yaml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index ca529df..9b002d5 100644 --- a/README.txt +++ b/README.txt @@ -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 activate hf-train-cu118 python -m pip install --no-deps -r requirements-hf.txt diff --git a/hf-train-cu118.yaml b/hf-train-cu118.yaml index 3debbd6..bc19043 100644 --- a/hf-train-cu118.yaml +++ b/hf-train-cu118.yaml @@ -17,10 +17,10 @@ dependencies: # ---- HF 主栈 ---- - transformers>=4.40,<5 - - accelerate>=0.30 + - accelerate>=0.30,<1.10 - datasets>=2.18 - evaluate>=0.4 - - safetensors>=0.4 + - safetensors==0.4.3 - sentencepiece>=0.1.99 - tokenizers=0.19.*