unsloth 安装的时候会 自动升级torch版本,解决办法
bash
RUN uv pip install --system --no-cache-dir \
"unsloth[cu121-ampere-torch240] @ git+https://gitcode.com/zhangfeng1133/unsloth_no_flash-atten.git" \
--no-build-isolation \
"torch==2.4.0+cu121" --extra-index-url https://download.pytorch.org/whl/cu121
或者
bash
```bash
uv pip install --system --no-cache-dir \
"unsloth[cu121-ampere-torch240] @ git+https://gitcode.com/zhangfeng1133/unsloth_no_flash-atten.git" \
--no-build-isolation \
--index-url https://download.pytorch.org/whl/cu121 \
--extra-index-url https://download.pytorch.org/whl/cu121