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

Model: DavidAU/ERNIE-21B-A3B-Claude-4.5-High-OPUS-Thinking
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-24 14:39:19 +08:00
commit 3bfcb71de7
19 changed files with 6187 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

132
README.md Normal file
View File

@@ -0,0 +1,132 @@
---
license: apache-2.0
datasets:
- TeichAI/claude-4.5-opus-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-Claude-4.5-High-OPUS-Thinking</h2>
This is a uncensored, full deep thinking Ernie 21B-A3B (MOE, 64 experts) fine tune using Claude 4.5 High Opus
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.392 ,0.489 ,0.631,0.686 ,0.364 ,0.771 ,0.631
```
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:1cdfe56a9028a879fbbdb0d1f1d4db95c670fcf1e217121d0164b02c1ed48ff9
size 4998530656

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4905217ce384846bcd27b8687ffd80f42a12fe134f0bcccef88032d66a64af32
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
}