Running the contributed command: _workbench.downloadResource failed.

背景

  • vscode 更新了 remote-ssh 插件,引发的问题,在我配置好 config ,兴高采烈迎接时候,o(︶︿︶)o,突然就。。。
Running the contributed command: _workbench.downloadResource failed.

网上的解决方案

  • 进入远程服务器的 .vscode-server/bin,删除所有( ^ _^)a
cd ~/.vscode-server/bin
rm -rf  *
  • 重新在 VsCode 尝试登陆,再次报错,哈哈哈,当然的哈,此举只为了获取它生产的 commit id
cd ~/.vscode-server/bin
ls -al
83bd43bc519d15e50c4272c6cf5c1479df196a4d
  • 客户机下载稳定版本的包
#https://vscode.cdn.azure.cn/stable/${commit id}/vscode-server-linux-x64.tar.gz
https://vscode.cdn.azure.cn/stable/83bd43bc519d15e50c4272c6cf5c1479df196a4d/vscode-server-linux-x64.tar.gz
  • 将下载完的包上传至服务机的83bd43bc519d15e50c4272c6cf5c1479df196a4d
scp vscode-server-linux-x64.tar.gz root@xxxx:~/.vscode-server/bin/83bd43bc519d15e50c4272c6cf5c1479df196a4d
  • 在服务端解压,改正名字,也别忘了告诉谁谁:vscode-scp-done,嘻嘻嘻 d(^_ ^o)
cd ~/.vscode-server/bin/83bd43bc519d15e50c4272c6cf5c1479df196a4d 
tar -zxf vscode-server-linux-x64.tar.gz ; 
mv vscode-server-linux-x64 vscode-server
touch vscode-scp-done.flag
  • Retry,ok,还是不行,这时多 Retry 几次,ok 完毕,解决!
  • 天真的你是不是以为我就这么结束了,怎么可能,what,╭(°A°`)╮,这针对可连接公网的服务有效,唉~,一开始我都是在离线机搞的,一度怀疑上面的办法是不是有效,(-。-;

以上方法对离线机无效

  • 所以,暴力的我,看着日志,猜测即便这样做了,怕是又要联网下载东西吧,选择了从用以上方法解决的服务机上,xixi~,打包了83bd43bc519d15e50c4272c6cf5c1479df196a4d,并到离线机解压,没想到居然生效了,perfec ~ (≧ ∇≦) ~
# 已解决问题的服务机
tar -czvf  83bd43bc519d15e50c4272c6cf5c1479df196a4d
# 拷贝到离线的服务机
tar -xzvf 83bd43bc519d15e50c4272c6cf5c1479df196a4d
python web_demo.py Explicitly passing a `revision` is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Traceback (most recent call last): File "/home/nano/THUDM/ChatGLM-6B/web_demo.py", line 5, in <module> tokenizer = AutoTokenizer.from_pretrained("/home/nano/THUDM/chatglm-6b", trust_remote_code=True) File "/home/nano/.local/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 679, in from_pretrained return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs) File "/home/nano/.local/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1804, in from_pretrained return cls._from_pretrained( File "/home/nano/.local/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1958, in _from_pretrained tokenizer = cls(*init_inputs, **init_kwargs) File "/home/nano/.cache/huggingface/modules/transformers_modules/chatglm-6b/tokenization_chatglm.py", line 221, in __init__ self.sp_tokenizer = SPTokenizer(vocab_file, num_image_tokens=num_image_tokens) File "/home/nano/.cache/huggingface/modules/transformers_modules/chatglm-6b/tokenization_chatglm.py", line 64, in __init__ self.text_tokenizer = TextTokenizer(vocab_file) File "/home/nano/.cache/huggingface/modules/transformers_modules/chatglm-6b/tokenization_chatglm.py", line 22, in __init__ self.sp.Load(model_path) File "/home/nano/.local/lib/python3.10/site-packages/sentencepiece/__init__.py", line 905, in Load return self.LoadFromFile(model_file) File "/home/nano/.local/lib/python3.10/site-packages/sentencepiece/__init__.py", line 310, in LoadFromFile return _sentencepiece.SentencePieceProcessor_LoadFromFile(self, arg) RuntimeError: Internal: src/sentencepiece_processor.cc(1101) [model_proto->ParseFromArray(serialized.data(), serialized.size())]什么错误
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值