加载tokenizer 和加载模型时报错

#1
by zhangtaokd - opened

tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
AttributeError: 'QWenTokenizer' object has no attribute 'IMAGE_ST'

model = AutoModelForCausalLM.from_pretrained(model_path, device_map="cuda", trust_remote_code=True).eval()
FileNotFoundError: [Errno 2] No such file or directory: 'ChatTruth-7B/visual.py'

zhangtaokd changed discussion status to closed

已经上传了

最新版本一样的报错, 请问下怎么解决呀

tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
AttributeError: 'QWenTokenizer' object has no attribute 'IMAGE_ST'

Sign up or log in to comment