commit 093773433089393c06e18fde992e2486086a1bff Author: ModelHub XC Date: Tue Jul 21 15:26:10 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: Zynerji/Ektome-Qwen3-8B-PristinelyUncensored Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..79b9f70 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +model.safetensors filter=lfs diff=lfs merge=lfs -text +tokenizer.json filter=lfs diff=lfs merge=lfs -text diff --git a/Ektome-Qwen3-8B-PristinelyUncensored-Q4_K_M.gguf b/Ektome-Qwen3-8B-PristinelyUncensored-Q4_K_M.gguf new file mode 100644 index 0000000..83bc2c9 --- /dev/null +++ b/Ektome-Qwen3-8B-PristinelyUncensored-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e3d5ea522b3f5f8765e7380f618abfc46f0b71fe6fc71ada8da5159a31237c7 +size 5027783520 diff --git a/README.md b/README.md new file mode 100644 index 0000000..fe97225 --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +--- +license: apache-2.0 +base_model: Qwen/Qwen3-8B +pipeline_tag: text-generation +library_name: transformers +tags: +- ektome +- abliterated +- uncensored +- pristinely-uncensored +- no-finetuning +- no-training +--- +# Ektome-Qwen3-8B-PristinelyUncensored + +**Qwen/Qwen3-8B, made PristinelyUncensored by Ektome — with ZERO training and ZERO fine-tuning.** + +> Ektome (ἐκτομή, *"excision"*) is a **weight-surgery** method, not a training method. +> It reads the model's own **refusal direction** from its activations and surgically +> excises it (rank-1, norm-preserving) from the residual-write matrices. **No gradient +> steps. No training data. No fine-tuning.** Only the refusal reflex is removed; the +> model's knowledge, skills, and style are untouched — which makes these **bf16 weights +> a clean base for your own fine-tuning.** + +## Honest receipt — catcher-gated (shipped only because it passed EVERY gate) +| gate | pristine | uncensored | +|---|---|---| +| refusal compliance | 0.020 | **1.000** | +| MMLU-val accuracy | 0.728 | 0.723 (Δ -0.005, held) | +| code-switch rate | 0.000 | 0.000 | +| degeneration rate | 0.100 | 0.000 | +| instruction-following | 0.400 | 0.400 | + +Kept config: **A:frac=0.65** (72 residual-write matrices edited). The gate rejects any +config that raises refusals but drops capability **or** degrades generation +(code-switching, empty/looping output, broken instruction-following). MMLU alone is +argmax-blind, so the **generative gate** is what keeps these coherent — a model that +code-switches or loops is *not shipped*. + +## Weights +- **bf16 safetensors** — full precision, intended as a **fine-tuning base**. Hidden + states stay readable (logit-lens compatible; a GGUF quant would not). + +Method: **zero training, zero fine-tuning** — pure activation-derived weight excision, +gated on compliance **and** capability **and** generation quality. diff --git a/chat_template.jinja b/chat_template.jinja new file mode 100644 index 0000000..01be9b3 --- /dev/null +++ b/chat_template.jinja @@ -0,0 +1,89 @@ +{%- if tools %} + {{- '<|im_start|>system\n' }} + {%- if messages[0].role == 'system' %} + {{- messages[0].content + '\n\n' }} + {%- endif %} + {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} + {%- for tool in tools %} + {{- "\n" }} + {{- tool | tojson }} + {%- endfor %} + {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} +{%- else %} + {%- if messages[0].role == 'system' %} + {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }} + {%- endif %} +{%- endif %} +{%- 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('') and message.content.endswith('')) %} + {%- 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 + '\n' + content + '<|im_end|>' + '\n' }} + {%- elif message.role == "assistant" %} + {%- set reasoning_content = '' %} + {%- if message.reasoning_content is string %} + {%- set reasoning_content = message.reasoning_content %} + {%- else %} + {%- if '' in content %} + {%- set reasoning_content = content.split('')[0].rstrip('\n').split('')[-1].lstrip('\n') %} + {%- set content = content.split('')[-1].lstrip('\n') %} + {%- endif %} + {%- endif %} + {%- if loop.index0 > ns.last_query_index %} + {%- if loop.last or (not loop.last and reasoning_content) %} + {{- '<|im_start|>' + message.role + '\n\n' + reasoning_content.strip('\n') + '\n\n\n' + content.lstrip('\n') }} + {%- else %} + {{- '<|im_start|>' + message.role + '\n' + content }} + {%- endif %} + {%- else %} + {{- '<|im_start|>' + message.role + '\n' + content }} + {%- endif %} + {%- if message.tool_calls %} + {%- for tool_call in message.tool_calls %} + {%- if (loop.first and content) or (not loop.first) %} + {{- '\n' }} + {%- endif %} + {%- if tool_call.function %} + {%- set tool_call = tool_call.function %} + {%- endif %} + {{- '\n{"name": "' }} + {{- tool_call.name }} + {{- '", "arguments": ' }} + {%- if tool_call.arguments is string %} + {{- tool_call.arguments }} + {%- else %} + {{- tool_call.arguments | tojson }} + {%- endif %} + {{- '}\n' }} + {%- endfor %} + {%- endif %} + {{- '<|im_end|>\n' }} + {%- elif message.role == "tool" %} + {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} + {{- '<|im_start|>user' }} + {%- endif %} + {{- '\n\n' }} + {{- content }} + {{- '\n' }} + {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} + {{- '<|im_end|>\n' }} + {%- endif %} + {%- endif %} +{%- endfor %} +{%- if add_generation_prompt %} + {{- '<|im_start|>assistant\n' }} + {%- if enable_thinking is defined and enable_thinking is false %} + {{- '\n\n\n\n' }} + {%- endif %} +{%- endif %} \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..227e055 --- /dev/null +++ b/config.json @@ -0,0 +1,71 @@ +{ + "architectures": [ + "Qwen3ForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": 151643, + "dtype": "bfloat16", + "eos_token_id": 151645, + "head_dim": 128, + "hidden_act": "silu", + "hidden_size": 4096, + "initializer_range": 0.02, + "intermediate_size": 12288, + "layer_types": [ + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention", + "full_attention" + ], + "max_position_embeddings": 40960, + "max_window_layers": 36, + "model_type": "qwen3", + "num_attention_heads": 32, + "num_hidden_layers": 36, + "num_key_value_heads": 8, + "pad_token_id": null, + "rms_norm_eps": 1e-06, + "rope_parameters": { + "rope_theta": 1000000, + "rope_type": "default" + }, + "sliding_window": null, + "tie_word_embeddings": false, + "transformers_version": "5.14.0", + "use_cache": true, + "use_sliding_window": false, + "vocab_size": 151936 +} diff --git a/ektome_report.json b/ektome_report.json new file mode 100644 index 0000000..cece713 --- /dev/null +++ b/ektome_report.json @@ -0,0 +1,61 @@ +{ + "status": "SHIP", + "winner": "A:frac=0.65", + "target": 0.99, + "SE_mmlu": 0.02226228593383887, + "base_compliance": 0.02, + "compliance": 1.0, + "base_cap": 0.7275, + "cap": 0.7225, + "dcap": -0.005, + "gen_base": { + "foreign_rate": 0.0, + "degen_rate": 0.1, + "instr_pass": 0.4 + }, + "gen": { + "foreign_rate": 0.0, + "degen_rate": 0.0, + "instr_pass": 0.4 + }, + "gen_delta": { + "d_foreign": 0.0, + "d_degen": -0.1, + "d_instr": 0.0, + "holds_gen": true + }, + "matrices": 72, + "trail": [ + { + "name": "pristine", + "compliance": 0.02, + "cap": 0.7275, + "dcap": 0.0, + "cap_holds": true, + "gen_holds": true, + "holds": true, + "cleared": false + }, + { + "name": "A:frac=0.5", + "compliance": 0.99, + "cap": 0.6975, + "dcap": -0.03, + "cap_holds": false, + "gen_holds": true, + "holds": false, + "cleared": false + }, + { + "name": "A:frac=0.65", + "compliance": 1.0, + "cap": 0.7225, + "dcap": -0.005, + "cap_holds": true, + "gen_holds": true, + "holds": true, + "cleared": true + } + ], + "base_model": "Qwen/Qwen3-8B" +} \ No newline at end of file diff --git a/generation_config.json b/generation_config.json new file mode 100644 index 0000000..05dabb9 --- /dev/null +++ b/generation_config.json @@ -0,0 +1,13 @@ +{ + "bos_token_id": 151643, + "do_sample": true, + "eos_token_id": [ + 151645, + 151643 + ], + "pad_token_id": 151643, + "temperature": 0.6, + "top_k": 20, + "top_p": 0.95, + "transformers_version": "5.14.0" +} diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..c5c69aa --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d894f20d3a96c0b06865967ccecc2ad1db008e314f6e06e315d726eb758bc0b +size 16381517208 diff --git a/tokenizer.json b/tokenizer.json new file mode 100644 index 0000000..c7afbed --- /dev/null +++ b/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506 +size 11422650 diff --git a/tokenizer_config.json b/tokenizer_config.json new file mode 100644 index 0000000..770e41d --- /dev/null +++ b/tokenizer_config.json @@ -0,0 +1,30 @@ +{ + "add_prefix_space": false, + "backend": "tokenizers", + "bos_token": null, + "clean_up_tokenization_spaces": false, + "eos_token": "<|im_end|>", + "errors": "replace", + "extra_special_tokens": [ + "<|im_start|>", + "<|im_end|>", + "<|object_ref_start|>", + "<|object_ref_end|>", + "<|box_start|>", + "<|box_end|>", + "<|quad_start|>", + "<|quad_end|>", + "<|vision_start|>", + "<|vision_end|>", + "<|vision_pad|>", + "<|image_pad|>", + "<|video_pad|>" + ], + "is_local": false, + "local_files_only": false, + "model_max_length": 131072, + "pad_token": "<|endoftext|>", + "split_special_tokens": false, + "tokenizer_class": "Qwen2Tokenizer", + "unk_token": null +}