初始化项目,由ModelHub XC社区提供模型
Model: ErikDaska/lr_2e-04-sft Source: Original Platform
This commit is contained in:
7
final/chat_template.jinja
Normal file
7
final/chat_template.jinja
Normal file
@@ -0,0 +1,7 @@
|
||||
{% for message in messages %}{% if message['role'] == 'system' %}System: {{ message['content'] }}
|
||||
|
||||
{% elif message['role'] == 'user' %}User: {{ message['content'] }}
|
||||
|
||||
{% elif message['role'] == 'assistant' %}Assistant: {{ message['content'] }}{{ eos_token }}
|
||||
|
||||
{% endif %}{% endfor %}{% if add_generation_prompt %}Assistant: {% endif %}
|
||||
41
final/config.json
Normal file
41
final/config.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"activation_function": "gelu_new",
|
||||
"add_cross_attention": false,
|
||||
"architectures": [
|
||||
"GPT2LMHeadModel"
|
||||
],
|
||||
"attn_pdrop": 0.1,
|
||||
"bos_token_id": 50256,
|
||||
"dtype": "float32",
|
||||
"embd_pdrop": 0.1,
|
||||
"eos_token_id": 50256,
|
||||
"initializer_range": 0.02,
|
||||
"layer_norm_epsilon": 1e-05,
|
||||
"model_type": "gpt2",
|
||||
"n_ctx": 1024,
|
||||
"n_embd": 768,
|
||||
"n_head": 12,
|
||||
"n_inner": null,
|
||||
"n_layer": 12,
|
||||
"n_positions": 1024,
|
||||
"pad_token_id": 50256,
|
||||
"reorder_and_upcast_attn": false,
|
||||
"resid_pdrop": 0.1,
|
||||
"scale_attn_by_inverse_layer_idx": false,
|
||||
"scale_attn_weights": true,
|
||||
"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": true,
|
||||
"max_length": 50
|
||||
}
|
||||
},
|
||||
"tie_word_embeddings": true,
|
||||
"transformers_version": "5.10.2",
|
||||
"use_cache": false,
|
||||
"vocab_size": 50257
|
||||
}
|
||||
9
final/generation_config.json
Normal file
9
final/generation_config.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"_from_model_config": true,
|
||||
"bos_token_id": 50256,
|
||||
"eos_token_id": [
|
||||
50256
|
||||
],
|
||||
"pad_token_id": 50256,
|
||||
"transformers_version": "5.10.2"
|
||||
}
|
||||
3
final/model.safetensors
Normal file
3
final/model.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:af63c46c9bf03608e3a6343673d8e10451314749be273be91ce40365fc9c19b7
|
||||
size 497774208
|
||||
250306
final/tokenizer.json
Normal file
250306
final/tokenizer.json
Normal file
File diff suppressed because it is too large
Load Diff
13
final/tokenizer_config.json
Normal file
13
final/tokenizer_config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"add_prefix_space": false,
|
||||
"backend": "tokenizers",
|
||||
"bos_token": "<|endoftext|>",
|
||||
"eos_token": "<|endoftext|>",
|
||||
"errors": "replace",
|
||||
"is_local": false,
|
||||
"local_files_only": false,
|
||||
"model_max_length": 1024,
|
||||
"pad_token": "<|endoftext|>",
|
||||
"tokenizer_class": "GPT2Tokenizer",
|
||||
"unk_token": "<|endoftext|>"
|
||||
}
|
||||
3
final/training_args.bin
Normal file
3
final/training_args.bin
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0fdef34fdda5aacea3fab0bc76a76043fdf39bfe1063102b05dc0fd706d78937
|
||||
size 5201
|
||||
Reference in New Issue
Block a user