Skip to content

Add EB4.5 PT-Paddle bidirectional conversion tools#1433

Open
lshpku wants to merge 1 commit intoPaddlePaddle:developfrom
lshpku:convert-pt2paddle-tool
Open

Add EB4.5 PT-Paddle bidirectional conversion tools#1433
lshpku wants to merge 1 commit intoPaddlePaddle:developfrom
lshpku:convert-pt2paddle-tool

Conversation

@lshpku
Copy link
Copy Markdown

@lshpku lshpku commented Jan 23, 2026

新增PT格式和Paddle格式权重互转的工具

使用方法:

  1. 修改文件中的src_pathdst_path
  2. 运行:
    python tools/cvt_eb45_pt2paddle.py
    python tools/cvt_eb45_paddle2pt.py

该工具只会生成 model-xxx.safetensors 和 model.safetensors.index.json,其他诸如 config.json、tokenizer.model 等不会生成,请自行从 baidu/ERNIE-4.5-300B-A47B-Base-Paddle 下载这些小文件并放到输出文件夹中

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Jan 23, 2026

Thanks for your contribution!

@lshpku lshpku force-pushed the convert-pt2paddle-tool branch from 087185f to 6689283 Compare January 23, 2026 06:41
@lshpku lshpku force-pushed the convert-pt2paddle-tool branch from 6689283 to 4a8bdd5 Compare March 10, 2026 02:59
@lshpku lshpku changed the title Add EB4.5 PT-to-Paddle convertion tool Add EB4.5 PT-Paddle bidirectional convertion tools Mar 10, 2026
@lshpku lshpku force-pushed the convert-pt2paddle-tool branch from 4a8bdd5 to 9ee26ea Compare March 10, 2026 03:04
@lshpku lshpku changed the title Add EB4.5 PT-Paddle bidirectional convertion tools Add EB4.5 PT-Paddle bidirectional conversion tools Mar 10, 2026
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.

1 participant