Skip to content

转换 HuggingFace 模型的步骤勘误#402

Closed
Johnnyabc wants to merge 3 commits intoInternLM:mainfrom
Johnnyabc:main
Closed

转换 HuggingFace 模型的步骤勘误#402
Johnnyabc wants to merge 3 commits intoInternLM:mainfrom
Johnnyabc:main

Conversation

@Johnnyabc
Copy link
Copy Markdown

@Johnnyabc Johnnyabc commented Jan 19, 2024

执行完转换操作后,生成的文件名有误。正确的文件名如下所示
adapter_model.bin ==> adapter_model.safetensors
图片
图片2

实验环境安装步骤的修正
将得到的 PTH 模型转换为 HuggingFace 模型,即:生成 Adapter 文件夹中得到的文件名称有误
@vansin
Copy link
Copy Markdown
Collaborator

vansin commented Jan 25, 2024

这个可能是因为新的 transformers 的版本从 .bin 格式切换为了 .safetensors 的格式,这是 Hugging Face 的一大更新

@vansin vansin closed this Jan 25, 2024
@vansin vansin reopened this Jan 25, 2024
@vansin vansin closed this Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants