Sophia Davis
Sophia Davis
差不多的问题。模型已经下载了。 tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True) model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True, device='cuda') 修改为本地路径。都试过了。好像也是不行,是不是windows环境运行是有问题的。
原来大家都是遇到这个问题。
@Nico0416 是的,一模一样,如图1: 但是我chatglm2-6b跟代码同一级。如图2: 图1:  图2: 
@xuzhiang Error: 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. Explicitly passing a...
tokenizer = AutoTokenizer.from_pretrained("F:\model\chatglm2-6b", trust_remote_code=True) model = AutoModel.from_pretrained("F:\model\chatglm2-6b", trust_remote_code=True, device='cuda') This is the same as the mistake above
@ysyx2008 好的。我试一试。
@dogvane 解决了那个。我是这样解决的: conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia 之前用pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118,好像不行。 但是又遇到新问题: Running on local URL: http://127.0.0.1:7860 To create a public link,...
git lfs下载到一半,能不能继续下载。经常都是下载到一半。
专业