玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
medismera /

Granite-4.2-3B-Surgical-Abliterated

HF 源站

medismera/Granite-4.2-3B-Surgical-Abliterated is an uncensored open-source model hosted on Hugging Face.

Text GenerationsafetensorsEnglishLicense: apache-2.03Bgraniteabliterateduncensoredsurgical-alignmentcausal-lmconversational
README.md说明 / 使用方法

license: apache-2.0 language:

  • en pipeline_tag: text-generation tags:
  • abliterated
  • uncensored
  • surgical-alignment
  • causal-lm
  • safetensors base_model: ibm-granite/granite-4.2-3b

IBM Granite 4.2 3B (Surgical Refusal Ablated)

This is a public, open-source release of ibm-granite/granite-4.2-3b with surgical refusal ablation. The model has undergone directional latent representation alignment to remove the unified refusal subspace from critical transformer layers, eliminating canned refusals and moralizing disclaimers while rigorously preserving factual knowledge, coding precision, and logical reasoning benchmarks.

🎯 Model Characteristics & Modifications

  • Base Model: ibm-granite/granite-4.2-3b
  • Architecture Notes: 3.2B parameters dense model with neutralized corporate refusal barriers and full coding proficiency.
  • Refusal Status: Neutralized (Zero Refusal). The model complies directly with complex technical, cybersecurity auditing, network analysis, and creative instruction prompts without emitting default refusal tokens (such as "As an AI...", "I cannot fulfill this request...").
  • Cognitive Preservation: The surgical projection was performed under strict benign orthogonal constraints and Frobenius norm preservation, ensuring:
    • Zero loss of programming syntax and algorithmic correctness.
    • No linguistic degradation or token probability collapse.
    • Retention of raw reasoning depth without artificial alignment tax.

💻 Quickstart Inference (Transformers)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "medismera/Granite-4.2-3B-Surgical-Abliterated"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True
)

prompt = "Write a Python script to perform local network auditing using raw sockets."
if getattr(tokenizer, "chat_template", None):
    formatted = tokenizer.apply_chat_template(
        [{"role": "user", "content": prompt}],
        tokenize=False,
        add_generation_prompt=True
    )
else:
    formatted = prompt

inputs = tokenizer(formatted, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

⚖️ Intended Use & Disclaimer

This model is published as an open-source artifact for academic research, red-teaming, security auditing, and unconstrained creative exploration. Users are responsible for their applications and ensuring adherence to applicable laws and guidelines.

HUGGING FACE

上游数据

HF 下载量0
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
medismera
最近更新
2026/10/29
最新创建
2026/10/29
HF 趋势
未知
数据快照
2026/10/29
版本
未知
许可证
apache-2.0