
pytorch
文章平均质量分 78
DeathYmz
划水摸鱼要不得!!!
不上紫名不改简介=_=(改了改了 打leetcode周赛去了 codeforces太晚了养身要紧)
展开
-
关于torch.load加载预训练模型时 造成的 临时分配的显存 不释放
今天跑一个模型的时候,需要加载部分预训练模型的参数,这期间遇到使用torch.load 忽略了 map_location参数 默认gpu,这导致这个变量分配的显存 不释放 然后占用大量资源 gpu资源不能很好的利用。原创 2022-10-28 20:32:17 · 2837 阅读 · 4 评论 -
ValueError: Connection error, and we cannot find the requested files in the cached path...
关于报错self.tokenizer = CamembertTokenizer.from_pretrained(“camembert-base”)resolved_vocab_files[file_id] = cached_path(output_path = get_from_cache(raise ValueError(ValueError: Connection error, and we cannot find the requested files in the cached path原创 2021-07-20 20:38:34 · 13550 阅读 · 0 评论 -
windows10下 安装python pip gcc vscode pytorch
安装和配置vscode和python pip开发环境;1)安装vscode 官网地址:https://code.visualstudio.com/Download在extension中Install python在extension中install 从C/C++导入程序,解决vscode中文乱码:extension 搜索:GBKtoUTF8 install导入...原创 2019-12-09 16:09:13 · 2123 阅读 · 0 评论 -
pip 安装总出问题,大多是这个问题吧,是时候修改安装源啦((´▽`ʃ♡ƪ))
sudo pip install ipython报错:ERROR: Could not find a version that satisfies the requirement prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 (from ipython) (from versions: none)ERROR: No matching d...原创 2019-12-02 14:13:45 · 861 阅读 · 0 评论