无法离线加载

#22
by Mh-Li - opened

tok = AutoTokenizer.from_pretrained(path, use_fast=True, trust_remote_code=True)
model = AutoModelForSequenceClassification.from_pretrained(path, trust_remote_code=True)

        tok = AutoTokenizer.from_pretrained(path, use_fast=True, trust_remote_code=True, local_files_only=True)
        model = AutoModelForSequenceClassification.from_pretrained(path, trust_remote_code=True,
                                                                   local_files_only=True)

试过都不行,说依赖一个代码,我把new-impl下载下来放里面也不行!机器无法联网!

Sign up or log in to comment