CoolFace
Modelpublic

saidutta69/SmolLM2-135M-Instruct-heretic

sourceHugging Faceapache-2.0updated 13d agoView on Hugging Face
0likes1.1kdownloads
Model Card

SmolLM2-135M-Instruct-heretic

<div align="center"> <img src="https://photu.kashyalabanavli.site/racer-is-op.png" alt="RACER IS OP" width="100%"> </div>

<br>

A decensored variant of HuggingFaceTB/SmolLM2-135M-Instruct (from HuggingFaceTB/SmolLM2-135M), produced with Heretic v1.4.0 (directional ablation / "abliteration"). Refusal behavior is suppressed via targeted weight edits to the attention output and MLP down-projections rather than fine-tuning, so the base model's instruction-following is left largely intact.

Who this is for: the smallest heretic yet — 135M parameters, ~258 MB F16 — for CPU-only inference, edge/embedded deployment, on-device experiments, or studying refusal mechanisms at the tiny-model limit. Great for browser (transformers.js), Raspberry Pi, or anywhere larger heretics are too heavy. Not a capability upgrade over base SmolLM2-135M-Instruct — same model, refusal guardrails removed.

<!-- racer-gpu-matrix -->

Runs on your gaming PC

Full GGUF ladder included — pick the quant that fits your card:

Your GPURecommended quantWeights
RTX 3090 / 4090 / 5090 (24 GB)Q8_0~0.1 GB
RTX 4080 / 5080 / 4060 Ti 16G (16 GB)Q6_K~0.1 GB
RTX 3060 / 4070 / 5070 (12 GB)Q5KM~0.1 GB
RTX 4060 / 3070 (8 GB)Q4KM~0.1 GB
GTX 1660 Super / 2060 / 3050 laptop (6 GB)IQ4_XS~0.1 GB
CPU-only / Apple SiliconQ4KMfits in system RAM

Weights only, at this model's 0.1B native size; add ~1 GB for context. OOM? Drop one quant level. Headroom to spare? Go one up.

Why abliteration instead of fine-tuning

Fine-tuning a "helpful" persona on top of RLHF'd refusals fights the base model's training and tends to degrade coherence. Abliteration instead finds and edits the specific weight directions responsible for refusal, leaving the rest of the network untouched. See the Heretic repo and the original abliteration writeup for the mechanism.

Abliteration parameters

ParameterValue
direction_indexper layer
attn.o_proj.max_weight1.34
attn.o_proj.max_weight_position24.30
attn.o_proj.min_weight0.20
attn.o_proj.min_weight_distance9.32
mlp.down_proj.max_weight0.82
mlp.down_proj.max_weight_position19.46
mlp.down_proj.min_weight0.64
mlp.down_proj.min_weight_distance7.96

Performance

MetricThis modelOriginal model ([HuggingFaceTB/SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct))
KL divergence0.07050 (by definition)
Refusals2/10010/100

KL divergence of 0.07 is low — the edit is narrow. Refusals dropped from 10 to 2 out of 100 prompts. Reproducible: see the reproduce/ directory in this repo.

Made with ❤️ by RACER IS OP — follow for more uncensored models

Files

Safetensors (transformers)

FileFormatSize
model.safetensorsBF16257 MB

GGUF quantizations

Full quantization set (14 quants + F16) produced with llama.cpp.

FileFormatSize
SmolLM2-135M-Instruct-heretic-F16.ggufGGUF F16258 MB
SmolLM2-135M-Instruct-heretic-Q2_K.ggufGGUF Q2_K84 MB
SmolLM2-135M-Instruct-heretic-IQ3_S.ggufGGUF IQ3_S84 MB
SmolLM2-135M-Instruct-heretic-Q3_K_S.ggufGGUF Q3KS84 MB
SmolLM2-135M-Instruct-heretic-Q3_K_M.ggufGGUF Q3KM89 MB
SmolLM2-135M-Instruct-heretic-Q3_K_L.ggufGGUF Q3KL93 MB
SmolLM2-135M-Instruct-heretic-IQ4_XS.ggufGGUF IQ4_XS87 MB
SmolLM2-135M-Instruct-heretic-Q4_K_S.ggufGGUF Q4KS97 MB
SmolLM2-135M-Instruct-heretic-Q4_0.ggufGGUF Q4_088 MB
SmolLM2-135M-Instruct-heretic-Q4_1.ggufGGUF Q4_194 MB
SmolLM2-135M-Instruct-heretic-Q4_K_M.ggufGGUF Q4KM101 MB
SmolLM2-135M-Instruct-heretic-Q5_K_S.ggufGGUF Q5KS105 MB
SmolLM2-135M-Instruct-heretic-Q5_K_M.ggufGGUF Q5KM107 MB
SmolLM2-135M-Instruct-heretic-Q6_K.ggufGGUF Q6_K132 MB
SmolLM2-135M-Instruct-heretic-Q8_0.ggufGGUF Q8_0138 MB

GGUF files are drop-in compatible with llama.cpp, Ollama, LM Studio, and any Llama GGUF runtime.

Quickstart

llama.cpp

bash
# download the LTS build: https://github.com/ggerganov/llama.cpp/releases
llama-cli -m SmolLM2-135M-Instruct-heretic-Q4_K_M.gguf -p "User: What is gravity?\nAssistant:" -n 512
# or via HF
llama serve -hf saidutta69/SmolLM2-135M-Instruct-heretic:Q4_K_M

Ollama

bash
ollama run hf.co/saidutta69/SmolLM2-135M-Instruct-heretic:Q4_K_M

LM Studio

  1. 1.Open LM Studio and click the search icon to open the Model Search panel.
  2. 2.Type "SmolLM2-135M-Instruct-heretic" and click the download button marked GGUF.
  3. 3.Pick your quant, load the model, and start chatting.

transformers

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "saidutta69/SmolLM2-135M-Instruct-heretic"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)

messages = [{"role": "user", "content": "What is gravity?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Responsible use

This model has its refusal guardrails removed. Use it lawfully and ethically, and be aware that it may generate content the base model would refuse. There is no safety filtering layered on top. At 135M parameters, factual reliability is inherently limited before abliteration; don't treat compliance as a proxy for correctness.

Made with ❤️ by RACER IS OP

License

Inherits the Apache 2.0 license from the base model. See the base model page for full terms.

Reproducibility

This model is reproducible — see the reproduce/ directory for reproduce.json, config.toml, and the Heretic command used.