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

Model: Zynerji/Ektome-Qwen3-8B-PristinelyUncensored
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-21 15:26:10 +08:00
commit 0937734330
10 changed files with 320 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
model.safetensors filter=lfs diff=lfs merge=lfs -text
tokenizer.json filter=lfs diff=lfs merge=lfs -text

View File

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

45
README.md Normal file
View File

@@ -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.

89
chat_template.jinja Normal file
View File

@@ -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 <tools></tools> XML tags:\n<tools>" }}
{%- for tool in tools %}
{{- "\n" }}
{{- tool | tojson }}
{%- endfor %}
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|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('<tool_response>') and message.content.endswith('</tool_response>')) %}
{%- 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 '</think>' in content %}
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
{%- set content = content.split('</think>')[-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<think>\n' + reasoning_content.strip('\n') + '\n</think>\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 %}
{{- '<tool_call>\n{"name": "' }}
{{- tool_call.name }}
{{- '", "arguments": ' }}
{%- if tool_call.arguments is string %}
{{- tool_call.arguments }}
{%- else %}
{{- tool_call.arguments | tojson }}
{%- endif %}
{{- '}\n</tool_call>' }}
{%- endfor %}
{%- endif %}
{{- '<|im_end|>\n' }}
{%- elif message.role == "tool" %}
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
{{- '<|im_start|>user' }}
{%- endif %}
{{- '\n<tool_response>\n' }}
{{- content }}
{{- '\n</tool_response>' }}
{%- 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 %}
{{- '<think>\n\n</think>\n\n' }}
{%- endif %}
{%- endif %}

71
config.json Normal file
View File

@@ -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
}

61
ektome_report.json Normal file
View File

@@ -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"
}

13
generation_config.json Normal file
View File

@@ -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"
}

3
model.safetensors Normal file
View File

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

3
tokenizer.json Normal file
View File

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

30
tokenizer_config.json Normal file
View File

@@ -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
}