add gpt2 model

Former-commit-id: 37d5e3639fcf5ae6e58cc435e0fa9dee0d6e4ead
This commit is contained in:
hiyouga
2025-01-02 12:07:38 +00:00
parent 6015fe700e
commit 18a1a4b9da
3 changed files with 26 additions and 2 deletions

View File

@@ -618,6 +618,28 @@ register_model_group(
)
register_model_group(
models={
"GPT2-Small": {
DownloadSource.DEFAULT: "openai-community/gpt2",
DownloadSource.MODELSCOPE: "AI-ModelScope/gpt2",
},
"GPT2-Medium": {
DownloadSource.DEFAULT: "openai-community/gpt2-medium",
DownloadSource.MODELSCOPE: "AI-ModelScope/gpt2-medium",
},
"GPT2-Large": {
DownloadSource.DEFAULT: "openai-community/gpt2-large",
DownloadSource.MODELSCOPE: "AI-ModelScope/gpt2-large",
},
"GPT2-XL": {
DownloadSource.DEFAULT: "openai-community/gpt2-xl",
DownloadSource.MODELSCOPE: "goodbai95/GPT2-xl",
},
},
)
register_model_group(
models={
"Granite-3.0-1B-A400M-Base": {