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

Model: miguelvictor/python-gpt2-large
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-03 14:25:54 +08:00
commit 02a684f89a
9 changed files with 96653 additions and 0 deletions

37
config.json Normal file
View File

@@ -0,0 +1,37 @@
{
"_num_labels": 1,
"activation_function": "gelu_new",
"architectures": ["GPT2LMHeadModel"],
"attn_pdrop": 0.1,
"bos_token_id": 50256,
"embd_pdrop": 0.1,
"eos_token_id": 50256,
"id2label": {
"0": "LABEL_0"
},
"initializer_range": 0.02,
"label2id": {
"LABEL_0": 0
},
"layer_norm_epsilon": 1e-5,
"model_type": "gpt2",
"n_ctx": 1024,
"n_embd": 1280,
"n_head": 20,
"n_layer": 36,
"n_positions": 1024,
"resid_pdrop": 0.1,
"summary_activation": null,
"summary_first_dropout": 0.1,
"summary_proj_to_labels": true,
"summary_type": "cls_index",
"summary_use_proj": true,
"task_specific_params": {
"text-generation": {
"do_sample": false,
"max_length": 50
}
},
"transformers_version": "4.5.1",
"vocab_size": 50257
}