alt.freeweights.abliterated / Huihui-Qwen3-8B-abliterated-v2
From: huihui-ai <huggingface.co/huihui-ai>Newsgroups: alt.freeweights.abliteratedSubject:

Huihui-Qwen3-8B-abliterated-v2

Date: 2026-11-15Commit: 7d89db7Signed: 2DC28CC7B26A283B ✓

Text generation model with 8.2B parameters. Safetensors weights, 16.4 GB in all. Published by huihui-ai under Apache-2.0. Changed from the base model.

8.2B params16.4GBHuihui-Qwen3-8B-abliterated-v2safetensorspermissive
FactsParams8.2BSize16.4 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get huihui-ai/Huihui-Qwen3-8B-abliterated-v2
# manifest sha256 c455a371487c… · 16.4 GB · 16 files
$ fw verify ./Huihui-Qwen3-8B-abliterated-v2 huihui-ai/Huihui-Qwen3-8B-abliterated-v2
From sourceHosted (signed)huihui-ai/Huihui-Qwen3-8B-abliterated-v2Last check: 2026-11-15 02:39 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Qwen3-8B.

Works with

Overview

Size
16.4 GB
Weights
16.4 GB (safetensors)
Parameters
8.2B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
16, each with a sha256
Publisher
huihui-ai
Added
2026-11-15
Section
alt.freeweights.abliterated
Lineage

Changed from the base model. The uploader's repo is named abliterated: refusal behavior was removed from Qwen/Qwen3-8B by the uploader. Read the model card at the source for the method and the layers touched.

Base model: Qwen/Qwen3-8B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:39 UTCpassed

Model card

From the publisher at commit 7d89db7. Shown as plain text with links; images open at the publisher.

huihui-ai/Huihui-Qwen3-8B-abliterated-v2#

This is an uncensored version of Qwen/Qwen3-8B created with abliteration (see remove-refusals-with-transformers to know more about it). This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens.

Ablation was performed using a new and faster method, which yields better results.

Important Note This version is an improvement over the previous one huihui-ai/Qwen3-8B-abliterated. The ollama version has also been modified.

Changed the 0 layer to eliminate the problem of garbled codes

ollama#

You can use huihui_ai/qwen3-abliterated:8b-v2 directly, Switch the thinking toggle using /set think and /set nothink

ollama run huihui_ai/qwen3-abliterated:8b-v2

Usage#

You can use this model in your applications by loading it with Hugging Face's transformers library:

from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, TextStreamer
import torch
import os
import signal
import random
import numpy as np
import time
from collections import Counter

cpu_count = os.cpu_count()
print(f"Number of CPU cores in the system: {cpu_count}")
half_cpu_count = cpu_count // 2
os.environ["MKL_NUM_THREADS"] = str(half_cpu_count)
os.environ["OMP_NUM_THREADS"] = str(half_cpu_count)
torch.set_num_threads(half_cpu_count)

print(f"PyTorch threads: {torch.get_num_threads()}")
print(f"MKL threads: {os.getenv('MKL_NUM_THREADS')}")
print(f"OMP threads: {os.getenv('OMP_NUM_THREADS')}")

# Load the model and tokenizer
NEW_MODEL_ID = "huihui-ai/Huihui-Qwen3-8B-abliterated-v2"
print(f"Load Model {NEW_MODEL_ID} ... ")
quant_config_4 = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_use_double_quant=True,
    llm_int8_enable_fp32_cpu_offload=True,
)

model = AutoModelForCausalLM.from_pretrained(
    NEW_MODEL_ID,
    device_map="auto",
    trust_remote_code=True,
    #quantization_config=quant_config_4,
    torch_dtype=torch.bfloat16
)
tokenizer = AutoTokenizer.from_pretrained(NEW_MODEL_ID, trust_remote_code=True)
if tokenizer.pad_token is None:
    tokenizer.pad_token = tokenizer.eos_token
tokenizer.pad_token_id = tokenizer.eos_token_id

tokenizer = AutoTokenizer.from_pretrained(NEW_MODEL_ID, trust_remote_code=True)
if tokenizer.pad_token is None:
    tokenizer.pad_token = tokenizer.eos_token
tokenizer.pad_token_id = tokenizer.eos_token_id

messages = []
nothink = False
same_seed = False
skip_prompt=True
skip_special_tokens=True
do_sample = True

def set_random_seed(seed=None):
    """Set random seed for reproducibility. If seed is None, use int(time.time())."""
    if seed is None:
        seed = int(time.time())  # Convert float to int
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
    torch.cuda.manual_seed_all(seed)  # If using CUDA
    torch.backends.cudnn.deterministic = True
    torch.backends.cudnn.benchmark = False
    return seed  # Return seed for logging if needed

class CustomTextStreamer(TextStreamer):
    def __init__(self, tokenizer, skip_prompt=True, skip_special_tokens=True):
        super().__init__(tokenizer, skip_prompt=skip_prompt, skip_special_tokens=skip_special_tokens)
        self.generated_text = ""
        self.stop_flag = False
        self.init_time = time.time()  # Record initialization time
        self.end_time = None  # To store end time
        self.first_token_time = None  # To store first token generation time
        self.token_count = 0  # To track total tokens

    def on_finalized_text(self, text: str, stream_end: bool = False):
        if self.first_token_time is None and text.strip():  # Set first token time on first non-empty text
            self.first_token_time = time.time()
        self.generated_text += text
        # Count tokens in the generated text
        tokens = self.tokenizer.encode(text, add_special_tokens=False)
        self.token_count += len(tokens)
        print(text, end="", flush=True)
        if stream_end:
            self.end_time = time.time()  # Record end time when streaming ends
        if self.stop_flag:
            raise StopIteration

    def stop_generation(self):
        self.stop_flag = True
        self.end_time = time.time()  # Record end time when generation is stopped

    def get_metrics(self):
        """Returns initialization time, first token time, first token latency, end time, total time, total tokens, and tokens per second."""
        if self.end_time is None:
            self.end_time = time.time()  # Set end time if not already set
        total_time = self.end_time - self.init_time  # Total time from init to end
        tokens_per_second = self.token_count / total_time if total_time > 0 else 0
        first_token_latency = (self.first_token_time - self.init_time) if self.first_token_time is not None else None
        metrics = {
            "init_time": self.init_time,
            "first_token_time": self.first_token_time,
            "first_token_latency": first_token_latency,
            "end_time": self.end_time,
            "total_time": total_time,  # Total time in seconds
            "total_tokens": self.token_count,
            "tokens_per_second": tokens_per_second
        }
        return metrics
        
def generate_stream(model, tokenizer, messages, nothink, skip_prompt, skip_special_tokens, do_sample, max_new_tokens):
    input_ids = tokenizer.apply_chat_template(
        messages,
        tokenize=True,
        enable_thinking = not nothink,
        add_generation_prompt=True,
        return_tensors="pt"
    )
    attention_mask = torch.ones_like(input_ids, dtype=torch.long)
    tokens = input_ids.to(model.device) 
    attention_mask = attention_mask.to(model.device)

    streamer = CustomTextStreamer(tokenizer, skip_prompt=skip_prompt, skip_special_tokens=skip_special_tokens)

    def signal_handler(sig, frame):
        streamer.stop_generation()
        print("\n[Generation stopped by user with Ctrl+C]")

    signal.signal(signal.SIGINT, signal_handler)

    generate_kwargs = {}
    if do_sample:
        generate_kwargs = {
              "do_sample": do_sample,
              "max_length": max_new_tokens,
              "temperature": 0.6,
              "top_k": 20,
              "top_p": 0.95,
              "repetition_penalty": 1.2,
              "no_repeat_ngram_size": 2
        }
    else:
        generate_kwargs = {
              "do_sample": do_sample,
              "max_length": max_new_tokens,
              "repetition_penalty": 1.2,
              "no_repeat_ngram_size": 2
        }
  
          
    print("Response: ", end="", flush=True)
    try:
        generated_ids = model.generate(
            tokens,
            attention_mask=attention_mask,
            #use_cache=False,
            pad_token_id=tokenizer.pad_token_id,
            streamer=streamer,
            **generate_kwargs
        )
        del generated_ids
    except StopIteration:
        print("\n[Stopped by user]")

    del input_ids, attention_mask
    torch.cuda.empty_cache()
    signal.signal(signal.SIGINT, signal.SIG_DFL)

    return streamer.generated_text, streamer.stop_flag, streamer.get_metrics()

init_seed = set_random_seed()
  
while True:
    if same_seed:
        set_random_seed(init_seed)
    else:
        init_seed = set_random_seed()
        
    print(f"\nnothink: {nothink}")
    print(f"skip_prompt: {skip_prompt}")
    print(f"skip_special_tokens: {skip_special_tokens}")
    print(f"do_sample: {do_sample}")
    print(f"same_seed: {same_seed}, {init_seed}\n")
    
    user_input = input("User: ").strip()
    if user_input.lower() == "/exit":
        print("Exiting chat.")
        break
    if user_input.lower() == "/clear":
        messages = []
        print("Chat history cleared. Starting a new conversation.")
        continue
    if user_input.lower() == "/nothink":
        nothink = not nothink
        continue
    if user_input.lower() == "/skip_prompt":
        skip_prompt = not skip_prompt
        continue
    if user_input.lower() == "/skip_special_tokens":
        skip_special_tokens = not skip_special_tokens
        continue
    if user_input.lower().startswith("/same_seed"):
        parts = user_input.split()
        if len(parts) == 1:  # /same_seed (no number)
            same_seed = not same_seed  # Toggle switch
        elif len(parts) == 2:  # /same_seed <number>
            try:
                init_seed = int(parts[1])  # Extract and convert number to int
                same_seed = True
            except ValueError:
                print("Error: Please provide a valid integer after /same_seed")       
        continue
    if user_input.lower() == "/do_sample":
        do_sample = not do_sample
        continue
    if not user_input:
        print("Input cannot be empty. Please enter something.")
        continue
    

    messages.append({"role": "user", "content": user_input})
    activated_experts = []
    response, stop_flag, metrics = generate_stream(model, tokenizer, messages, nothink, skip_prompt, skip_special_tokens, do_sample, 40960)
    print("\n\nMetrics:")
    for key, value in metrics.items():
        print(f"  {key}: {value}")
        
    print("", flush=True)
    if stop_flag:
        continue
    messages.append({"role": "assistant", "content": response})

# Remove all hooks after inference
for h in hooks: h.remove()
Usage Warnings#
  • Risk of Sensitive or Controversial Outputs: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated outputs.
  • Not Suitable for All Audiences: Due to limited content filtering, the model’s outputs may be inappropriate for public settings, underage users, or applications requiring high security.
  • Legal and Ethical Responsibilities: Users must ensure their usage complies with local laws and ethical standards. Generated content may carry legal or ethical risks, and users are solely responsible for any consequences.
  • Research and Experimental Use: It is recommended to use this model for research, testing, or controlled environments, avoiding direct use in production or public-facing commercial applications.
  • Monitoring and Review Recommendations: Users are strongly advised to monitor model outputs in real-time and conduct manual reviews when necessary to prevent the dissemination of inappropriate content.
  • No Default Safety Guarantees: Unlike standard models, this model has not undergone rigorous safety optimization. huihui.ai bears no responsibility for any consequences arising from its use.
Donation#

If you like it, please click 'like' and follow us for more updates. You can follow x.com/support_huihui to get the latest model information from huihui.ai.

Your donation helps us continue our further development and improvement, a cup of coffee can do it.#
  • bitcoin(BTC):
  bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge

Files

16 files · 16.4 GBWeights 16.4 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 16 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md11.6 KB4db8cdde2d18c439fb6784c89b66494e64e1c4ec684178bef680480cb50f3016
added_tokens.json735 B79f6ec6fcc423d3a82bfac8b9033b1daac7b7bce06a5f5f441637b480cc605de
chat_template.jinja4.20 KBbfbcd7bf3f08041bdcff4afb09f83677fe4f7e5b8b9c07e6be43651d88696aab
config.json759 B01b2bb3a34a30a60c1a68c8634941bab195100cf7ca7de38c68fdb973c1c3396
generation_config.json227 B50a126529f5afe9dbc3701d30ef53759eee2b53d0285f7d42293cc1e54c645e7
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00004.safetensors4.90 GBffa5adf27cd383b1fc16daba75f7fd8d15655c3a259c276dfbcb64aaca8b8e1c
model-00002-of-00004.safetensors4.92 GB05ceadcaaaf4bbb4c721db8a234a93f3a7ee945ecd28ffbcdd5adc05cc4b0ce8
model-00003-of-00004.safetensors4.98 GB4a8c92051605490ed632f85e88286fe9af9259229b3db85f0d18602cd7fef205
model-00004-of-00004.safetensors1.58 GBa19975bea23acc006b444e5cf2d6b76f2163c47b39214d2c7f8fb86f7b4629d6
model.safetensors.index.json33.3 KB922b0b22186e42ead2bc96bf9e8c0a3bfc9ac4fe23803c91df4e8222ff7e4ec9
special_tokens_map.json644 B57255613bbe23c9497211ca68561ff429a51e871dbaf5a59998fa4c8f7fe168a
tokenizer.json11.4 MBaeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
tokenizer_config.json5.64 KBb2a0d89cf5c89d5d844c56d82e9c3731f862d720a6ce221c31955b628960cde7
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7d89db7602 pinned now2026-11-15 02:39 UTC16 files · 16.4 GB

Use it

$ fw get huihui-ai/Huihui-Qwen3-8B-abliterated-v2
# manifest sha256 c455a371487c… · 16.4 GB · 16 files
$ fw verify ./Huihui-Qwen3-8B-abliterated-v2 huihui-ai/Huihui-Qwen3-8B-abliterated-v2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/huihui-ai/Huihui-Qwen3-8B-abliterated-v2.json --dir ./Huihui-Qwen3-8B-abliterated-v2 $ python3 fw.py verify ./Huihui-Qwen3-8B-abliterated-v2 ./huihui-ai__Huihui-Qwen3-8B-abliterated-v2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download huihui-ai/Huihui-Qwen3-8B-abliterated-v2 --revision 7d89db76029281fd8f3e6698a8e30738608105a9 --local-dir ./Huihui-Qwen3-8B-abliterated-v2
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("huihui-ai/Huihui-Qwen3-8B-abliterated-v2", revision="7d89db76029281fd8f3e6698a8e30738608105a9") model = AutoModelForCausalLM.from_pretrained("huihui-ai/Huihui-Qwen3-8B-abliterated-v2", revision="7d89db76029281fd8f3e6698a8e30738608105a9", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve huihui-ai/Huihui-Qwen3-8B-abliterated-v2 --revision 7d89db76029281fd8f3e6698a8e30738608105a9

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
4db8cdde2d18c439fb6784c89b66494e64e1c4ec684178bef680480cb50f3016
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: huihui-ai <huggingface.co/huihui-ai>Newsgroups: alt.freeweights.abliteratedSubject: Huihui-Qwen3-8B-abliterated-v2Date: 2026-11-15Commit: 7d89db7Signed: 2DC28CC7B26A283B ✓
Upstream
huihui-ai/Huihui-Qwen3-8B-abliterated-v2
Pinned commit
7d89db76029281fd8f3e6698a8e30738608105a9
Manifest
Huihui-Qwen3-8B-abliterated-v2.json · .minisig
Manifest sha256
c455a371487c7d43991be6b18b9ff7f73ebfb407b9d51f89559fee4096b53710
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:39 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/huihui-ai/Huihui-Qwen3-8B-abliterated-v2.json $ curl -O https://freeweights.allternit.com/manifests/huihui-ai/Huihui-Qwen3-8B-abliterated-v2.json.minisig $ minisign -Vm Huihui-Qwen3-8B-abliterated-v2.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen3-8B · this model is a finetune of it

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download huihui-ai/Huihui-Qwen3-8B-abliterated-v2
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Huihui-Qwen3-8B-abliterated-v2.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of Huihui-Qwen3-8B-abliterated-v2. Each has its own license check and page.

From: xtools-at <huggingface.co/xtools-at>Subject: DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic
From: mlx-community <huggingface.co/mlx-community>Subject: DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic-OptiQ-4bit
From: mlx-community <huggingface.co/mlx-community>Subject: gemma-4-26B-A4B-it-heretic-msq-2.6bit
From: coder3101 <huggingface.co/coder3101>Subject: gemma-4-31B-it-heretic
From: Ilya626 <huggingface.co/Ilya626>Subject: gemma-4-31B-it-SDFT-Heretic-RP
From: llmfan46 <huggingface.co/llmfan46>Subject: gemma-4-31B-it-uncensored-heretic