请问怎么单独把chatglm3的bin格式模型转换成加载时直接走显存的safetensors格式? #2708
-
在web页面中要加adapter才能导出模型,但是我想直接导出,不训练 |
Beta Was this translation helpful? Give feedback.
Answered by
hiyouga
Mar 5, 2024
Replies: 3 comments 3 replies
-
model.save_pretrained( model.save_pretrained(model_save_dir)tokenizer.save_pretrained(model_save_dir) 在源码关键代码好像是这样,但是我到处的safetensors格式还是要经过内存,要加载好久 |
Beta Was this translation helpful? Give feedback.
0 replies
-
web 不加 adapter 也能导出吧 |
Beta Was this translation helpful? Give feedback.
2 replies
-
使用命令行执行可以了。导出safetensors模型是只支持readme列表中的嘛 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
那就用命令行呗