conda & uv conda 创建新环境 conda create -n <env_name> python=3.8 conda activate <env_name> 删除环境 conda env list conda env remove -n <env_name> uv uv init uv venv .venv source .venv/bin/activat 2026-03-05 常用命令
git git 远程 推送本地项目到远程仓库 git init git add . git commit -m "first_commit" git remote add origin <远程仓库地址> git push -u origin "main" 重新设置远程仓库 git remote set-url origin <远程仓 2026-03-05 常用命令
huggingface huggingface 加速下载 在服务器中下载huggingface model 首先,安装huggingface-cli。 pip install -U huggingface_hub 接着,设置环境变量。 # 写入 ~/.bashrc export HF_ENDPOINT=https://hf-mirror.com source .bashrc 最后下载即可。 hf down 2026-03-05 常用命令
push 到 github 时出错 push 到 github 时出错: fatal: unable to access ‘https://github.com/…/.git‘: Could not resolve host: github.com 编辑C:\Windows\System32\drivers\etc\下的hosts文件,在末尾添加: 140.82.113.3 github.com 140.82.113.3 是 2026-03-05 bug修复
bug修复:GPU内存不足问题 nvidia-smi kill -9 34069 # 占用最多的进程 # 或者使用pkill pkill -f "python" 2026-01-30 bug修复 #bug修复 #GPU内存不足
expected str, bytes or os.PathLike object, not MultiplexedPath 错误信息显示: TypeError: expected str, bytes or os.PathLike object, not MultiplexedPath 这个错误是因为 tn库(text normalization库)在创建缓存目录时收到了一个 MultiplexedPath对象而不是字符串路径。 MultiplexedPath是 HuggingFace 的 huggingf 2026-01-30 bug修复 #bug修复 #TypeError