We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
因网络不稳定,打算把"facebook/opt-6.7b"模型下载到本地后再加载使用,进行量化。
#下载模型
#加载模型
经查验本地存储内容为:
完全和官网文件格式不一致,改为直接读取已经存在本地的缓存文件反而没有问题。
这是否说明:用transformers的from_pretrained方法从hf下载的原始模型到本地,用save_pretrained方法保存后,再用from_pretrained从本地指定路径读取这一方法是有使用限制的?
为什么会出现这样的问题?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
作业: fine-tune-quickstart.ipynb
目标:
因网络不稳定,打算把"facebook/opt-6.7b"模型下载到本地后再加载使用,进行量化。
代码如下:
#下载模型
#加载模型
报错如下:
经查验本地存储内容为:
完全和官网文件格式不一致,改为直接读取已经存在本地的缓存文件反而没有问题。
问题
这是否说明:用transformers的from_pretrained方法从hf下载的原始模型到本地,用save_pretrained方法保存后,再用from_pretrained从本地指定路径读取这一方法是有使用限制的?
为什么会出现这样的问题?
The text was updated successfully, but these errors were encountered: