Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更换更大的gpt2模型进行训练 如:gpt2_large #94

Open
htthYjh opened this issue May 8, 2022 · 1 comment
Open

更换更大的gpt2模型进行训练 如:gpt2_large #94

htthYjh opened this issue May 8, 2022 · 1 comment

Comments

@htthYjh
Copy link

htthYjh commented May 8, 2022

楼主或者其他哥们有没有使用更大的gpt2模型进行训练,求分享经验!!!!!
我使用如下配置config.json进行训练,但是测试结果比较差:求指教
{
"_name_or_path": "model/epoch41",
"activation_function": "gelu_new",
"architectures": [
"GPT2LMHeadModel"
],
"attn_pdrop": 0.1,
"bos_token_id": 50256,
"embd_pdrop": 0.1,
"eos_token_id": 50256,
"gradient_checkpointing": false,
"id2label": {
"0": "LABEL_0"
},
"initializer_range": 0.02,
"label2id": {
"LABEL_0": 0
},
"layer_norm_epsilon": 1e-05,
"model_type": "gpt2",
"n_ctx": 1024,
"n_embd": 1280,
"n_head": 20,
"n_inner": null,
"n_layer": 48,
"n_positions": 1024,
"output_past": true,
"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,
"transformers_version": "4.18.0",
"use_cache": true,
"task_specific_params": {
"text-generation": {
"max_length": 1000
}
},
"vocab_size": 50005
}

@1zhangtianqing
Copy link

你好,如果不想他自己下载,应该在哪下载model/epoch41这个文件呢

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

No branches or pull requests

2 participants