logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

【报错】macos+python+分布式训练

分布式训练出现这个错误的解决办法:KeyError:‘RANK‘_keyerror: 'rank-CSDN博客(pytorch) (base) dearr@dearrdeMacBook-Air loca-main % export LOCAL_RANK=0

文章图片
#macos#python#开发语言
macos 运行.sh文件

sh train_few_shot.sh回车运行。./train_few_shot.sh回车运行。②再拖 要运行的文件到终端,回车即可运行。① 打开终端,给权限。

文章图片
#macos
macos vscode 激活虚拟环境

解决:cd到activate下的文件下 直接source activate 解决。用 source activate + activate的路径报错。

#macos#vscode#ide
macos vscode 激活虚拟环境

解决:cd到activate下的文件下 直接source activate 解决。用 source activate + activate的路径报错。

#macos#vscode#ide
【报错】macos+python+分布式训练

分布式训练出现这个错误的解决办法:KeyError:‘RANK‘_keyerror: 'rank-CSDN博客(pytorch) (base) dearr@dearrdeMacBook-Air loca-main % export LOCAL_RANK=0

文章图片
#macos#python#开发语言
【报错】服务器 cuda out of memory

19.15 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_C

文章图片
#python
github 报错:git add .卡住

当我们运行了git init,接下来git add .结果终端卡住的情况,这个时候用不了git reset,因为还没有提交,解决方法是:删除.git文件,具体来说,终端输入。当然了是在.git根目录下。

文章图片
#github#git
python mac vscode 脚本文件的运行

切换到脚本文件的目录下。

文章图片
#pytorch#python
vscode 环境

这张截图显示的是在VS Code(Visual Studio Code)中选择Python解释器的界面。不同的Python解释器及其虚拟环境列出了可选项,用户可以根据需要选择合适的解释器来运行Python代码。

文章图片
#vscode#ide#编辑器
    共 21 条
  • 1
  • 2
  • 3
  • 请选择