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

Model: DavidAU/ERNIE-21B-A3B-Thinking-Gemini-3-Pro-High-Reasoning-V2
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-10-18 02:22:16 +08:00
commit f17dc10f8d
19 changed files with 6186 additions and 0 deletions

36
.gitattributes vendored Normal file
View File

@@ -0,0 +1,36 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
tokenizer.json filter=lfs diff=lfs merge=lfs -text

131
README.md Normal file
View File

@@ -0,0 +1,131 @@
---
license: apache-2.0
datasets:
- TeichAI/gemini-3-pro-preview-high-reasoning-250x
language:
- en
pipeline_tag: text-generation
library_name: transformers
tags:
- mixture of experts
- moe
- 64 experts
- uncensored
- unsloth
- finetune
- All use cases
- bfloat16
- creative
- creative writing
- fiction writing
- plot generation
- sub-plot generation
- fiction writing
- story generation
- scene continue
- storytelling
- fiction story
- science fiction
- romance
- all genres
- story
- writing
- vivid prosing
- vivid writing
- fiction
base_model:
- baidu/ERNIE-4.5-21B-A3B-Thinking
---
<h2>ERNIE-21B-A3B-Thinking-Gemini-3-Pro-High-Reasoning-V2</h2>
This is a uncensored, full deep thinking Ernie 21B-A3B (MOE, 64 experts) fine tune using Gemini 3 Pro High reasoning dataset via Unsloth via local hardware, Linux (for windows).
Note this model is mostly uncensored right from the "factory" so to speak.
Model excels in creative (brainstorming, creative prose) as well as general usage.
Reasoning is compact, but detailed (very detailed) and right to the "point" so to speak.
CRITICAL SETTINGS:
- for creative suggest rep pen of 1.01 to 1.1
- for general work rep pen of 1 (off), 1.05 or 1.1
- Lower quants MAY LOOP in some cases.
Reasoning affects:
- General model operation.
- Output generation
- Benchmarks.
Model Features:
- 128k context
- Temp range .1 to 2.5.
- Reasoning is temp stable.
You may want to visit Baidu's repo for this model for root/core benchmarks and settings.
https://huggingface.co/baidu/ERNIE-4.5-21B-A3B-Thinking
Enjoy the freedom!
<B>BENCHMARKS:</B>
```
arc_challenge,arc_easy,boolq,hellaswag,openbookqa,piqa, winogrande
0.373 ,0.444 ,0.622,0.679 ,0.362 ,0.758 ,0.642
```
VS (regular model):
```
0.331 ,0.440 ,0.628,0.663 ,0.338 ,0.725 ,0.567
```
---
<B>SPECIAL THANKS TO:</B>
- Team "TeichAI" for the excellent dataset.
- Team "Unsloth" for making the training painless.
- Team "Nightmedia" for Benchmarks and co-labing.
---
<B>Settings: CHAT / ROLEPLAY and/or SMOOTHER operation of this model:</B>
In "KoboldCpp" or "oobabooga/text-generation-webui" or "Silly Tavern" ;
Set the "Smoothing_factor" to 1.5
: in KoboldCpp -> Settings->Samplers->Advanced-> "Smooth_F"
: in text-generation-webui -> parameters -> lower right.
: In Silly Tavern this is called: "Smoothing"
NOTE: For "text-generation-webui"
-> if using GGUFs you need to use "llama_HF" (which involves downloading some config files from the SOURCE version of this model)
Source versions (and config files) of my models are here:
https://huggingface.co/collections/DavidAU/d-au-source-files-for-gguf-exl2-awq-gptq-hqq-etc-etc-66b55cb8ba25f914cbf210be
OTHER OPTIONS:
- Increase rep pen to 1.1 to 1.15 (you don't need to do this if you use "smoothing_factor")
- If the interface/program you are using to run AI MODELS supports "Quadratic Sampling" ("smoothing") just make the adjustment as noted.
<B>Highest Quality Settings / Optimal Operation Guide / Parameters and Samplers</B>
This a "Class 1" model:
For all settings used for this model (including specifics for its "class"), including example generation(s) and for advanced settings guide (which many times addresses any model issue(s)), including methods to improve model performance for all use case(s) as well as chat, roleplay and other use case(s) please see:
[ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]
You can see all parameters used for generation, in addition to advanced parameters and samplers to get the most out of this model here:
[ https://huggingface.co/DavidAU/Maximizing-Model-Performance-All-Quants-Types-And-Full-Precision-by-Samplers_Parameters ]

102
chat_template.jinja Normal file
View File

@@ -0,0 +1,102 @@
{{- '<|im_start|>system
' }}{%- if messages[0].role != 'system' and not system_settings %}{{- '<global_setting>
think_mode=True
</global_setting>' }}{%- else%}{{- '<system_setting>
' }}{{- system_settings + '
' if system_settings else '' }}{{- (messages[0].content + '
' if messages[0].role == 'system' else '') + '</system_setting>
<global_setting>
think_mode=True
</global_setting>' }}{%- endif %}{%- if tools %}{{- "
<tool_list>" }}{{- '
' }}{{-'['}}{% for tool in tools %}{{'{"type": "function", "function": '}}{{-(tool.function | tojson)}}}{%-if not loop.last%},{%- endif %}{%endfor%}{{-']'}}{{- "
</tool_list>" }}{%- endif %}{{-'<|im_end|>
' }}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
{%- for message in messages[::-1] %}
{%- set index = (messages|length - 1) - loop.index0 %}
{%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_output>') and message.content.endswith('</tool_output>')) %}
{%- set ns.multi_step_tool = false %}
{%- set ns.last_query_index = index %}
{%- endif %}
{%- endfor %}
{%- for message in messages %}
{%- if message.content is string %}
{%- set content = message.content %}
{%- else %}
{%- set content = '' %}
{%- endif %}
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
{{- '<|im_start|>' + message.role + '
' + content + '<|im_end|>' + '
' }}
{%- elif message.role == "assistant" %}
{%- set reasoning_content = '' %}
{%- if message.thoughts is string %}
{%- set reasoning_content = message.thoughts %}
{%- else %}
{%- if '</think>' in content %}
{%- set reasoning_content = content.split('</think>')[0].rstrip('
').split('<think>')[-1].lstrip('
') %}
{%- set content = content.split('</think>')[-1].lstrip('
') %}
{%- endif %}
{%- endif %}
{%- if loop.index0 > ns.last_query_index and (loop.last or (not loop.last and reasoning_content)) %} {{- '<|im_start|>' + message.role + '
<think>
' + reasoning_content.strip('
') + '
</think>
' }} {%- else %} {{- '<|im_start|>' + message.role + '
' }} {%- endif %} {%- if content|length > 0 %} {{- '<response>
' + content + '
</response>
' }} {%- endif %} {%- if message.tool_calls %}
{%- for tool_call in message.tool_calls %}
{%- if (loop.first and content) or (not loop.first) %}
{{- '
' }}
{%- endif %}
{%- if tool_call.function %}
{%- set tool_call = tool_call.function %}
{%- endif %}
{{- '
<tool_call>
{"name": "' }}
{{- tool_call.name }}
{{- '", "arguments": ' }}
{%- if tool_call.arguments is string %}
{{- tool_call.arguments }}
{%- else %}
{{- tool_call.arguments | tojson }}
{%- endif %}
{{- '}
</tool_call>
' }}
{%- endfor %}
{%- endif %}
{{- '<|im_end|>
' }}
{%- elif message.role == "tool" %}
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
{{- '<|im_start|>tool' }}
{%- endif %}
{{- '
<tool_output>' }}
{{- message.content|tojson }}
{{- '</tool_output>' }}
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
{{- '<|im_end|>
' }}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- if add_generation_prompt is defined and add_generation_prompt %}{{- "<|im_start|>assistant
<think>
"}}{%- endif %}

44
config.json Normal file
View File

@@ -0,0 +1,44 @@
{
"architectures": [
"Ernie4_5_MoeForCausalLM"
],
"bos_token_id": 1,
"dtype": "bfloat16",
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 2560,
"initializer_range": 0.02,
"intermediate_size": 12288,
"max_position_embeddings": 131072,
"model_type": "ernie4_5_moe",
"moe_capacity": [
64,
64,
64
],
"moe_gate": "top2_fused",
"moe_intermediate_size": 1536,
"moe_k": 6,
"moe_layer_end_index": 27,
"moe_layer_interval": 1,
"moe_layer_start_index": 1,
"moe_norm_min": 1e-12,
"moe_num_experts": 64,
"moe_num_shared_experts": 2,
"moe_use_aux_free": true,
"num_attention_heads": 20,
"num_hidden_layers": 28,
"num_key_value_heads": 4,
"output_router_logits": false,
"pad_token_id": 0,
"rms_norm_eps": 1e-05,
"rope_scaling": null,
"rope_theta": 500000,
"tie_word_embeddings": true,
"router_aux_loss_coef": 0.001,
"transformers_version": "4.57.6",
"unsloth_fixed": true,
"use_bias": false,
"use_cache": true,
"vocab_size": 103424
}

7
generation_config.json Normal file
View File

@@ -0,0 +1,7 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"pad_token_id": 0,
"transformers_version": "4.57.6"
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:25c803009bf39bb29d9d59bae8e72cc0c87c92b1cd71affb8b340975dab40410
size 4998530656

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f39937f5be45308dd12ecbf23410c8f9d7b7b366dd2950462cc00aca3e94ca3e
size 4995919560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dd10f8692481d2c82fffa9250fc1ede0103d472f5da20382583d18b829a4722e
size 4995919560

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11dbb153a65b1614aad68f2d606dc2c076b94f6303091f780a26f754e72f9443
size 4996586088

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9901211ae2d168af1b78ca572c0c117f4bc3b06a67eb072c1d2837a4deefac3d
size 4995920184

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:644376659873ad8ab163822760affe1aadf5c5e2c3964419007c2616c2b0b45d
size 4995920192

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2674535959c1041c55744c29da8f200db58491b8b6443add93e7d1bc1ee903ab
size 4995920192

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6668b741009087d056e8e83a81fdcd3002351010619e88e95ac069bb64421020
size 4995920200

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:588795681fac5ee82441b2d8b2be19df4037cf5713c306d92d95a613b7455562
size 3689771704

5500
model.safetensors.index.json Normal file

File diff suppressed because it is too large Load Diff

51
special_tokens_map.json Normal file
View File

@@ -0,0 +1,51 @@
{
"bos_token": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"cls_token": {
"content": "<|begin_of_sentence|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"mask_token": {
"content": "<mask:1>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"sep_token": {
"content": "<|end_of_sentence|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"unk_token": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
}
}

3
tokenizer.json Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:99c25a6ebd867c54435ca2fdb8fdd3187699aea9bd85d83b6d43f50ebedb4564
size 10999540

3
tokenizer.model Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:098d756440604e3829c6c2375f835a82a1968c044b74e561f4b0084e53befd2e
size 1614702

282
tokenizer_config.json Normal file
View File

@@ -0,0 +1,282 @@
{
"add_bos_token": true,
"add_eos_token": false,
"add_prefix_space": null,
"added_tokens_decoder": {
"0": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"2": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"3": {
"content": "0",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"4": {
"content": "1",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"5": {
"content": "2",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"6": {
"content": "3",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"7": {
"content": "4",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"8": {
"content": "5",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"9": {
"content": "6",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"10": {
"content": "7",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"11": {
"content": "8",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"12": {
"content": "9",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100272": {
"content": "<|end_of_sentence|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"100273": {
"content": "<|begin_of_sentence|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"100274": {
"content": "<mask:1>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"100281": {
"content": "<think>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"100282": {
"content": "</think>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100295": {
"content": "<tool_output>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100296": {
"content": "</tool_output>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100297": {
"content": "<tool_call>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100298": {
"content": "</tool_call>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100299": {
"content": "<response>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100300": {
"content": "</response>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100301": {
"content": "<system_setting>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100302": {
"content": "</system_setting>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100303": {
"content": "<global_setting>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100304": {
"content": "</global_setting>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100305": {
"content": "<tool_list>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100306": {
"content": "</tool_list>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100307": {
"content": "<|im_start|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
},
"100308": {
"content": "<|im_end|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": false
}
},
"additional_special_tokens": [],
"bos_token": "<s>",
"clean_up_tokenization_spaces": false,
"cls_token": "<|begin_of_sentence|>",
"eos_token": "</s>",
"extra_special_tokens": {},
"header_end_token": "<mask:7>",
"header_start_token": "<mask:6>",
"legacy": true,
"mask_token": "<mask:1>",
"model_max_length": 131072,
"pad_token": "<unk>",
"padding_side": "left",
"sep_token": "<|end_of_sentence|>",
"sys_end_token": "<mask:5>",
"sys_start_token": "<mask:4>",
"tokenizer_class": "LlamaTokenizer",
"unk_token": "<unk>",
"use_default_system_prompt": false
}