初始化项目,由ModelHub XC社区提供模型

Model: flax-community/papuGaPT2-large
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-10-04 22:04:07 +08:00
commit dc124f809a
11 changed files with 770 additions and 0 deletions

5
convert_to_pytorch.py Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env pyton3
from transformers import GPT2LMHeadModel
model = GPT2LMHeadModel.from_pretrained("./", from_flax=True)
model.save_pretrained("./")