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

LFM3-1.7B-Uncensored

HF 源站

OpenIntelligenceNet/LFM3-1.7B-Uncensored is an uncensored open-source model hosted on Hugging Face.

Text Generationsafetensors1.7Btransformerslfm3liquid-aihereticabliterateduncensoreddecensoredconversationalcausal-lmhybrid-architectureedge-airoleplayreasoningcustom_code
README.md说明 / 使用方法

base_model: LiquidAI/LFM3-1.7B library_name: transformers pipeline_tag: text-generation tags:

  • liquid-ai
  • lfm3
  • heretic
  • abliterated
  • uncensored
  • decensored
  • text-generation
  • conversational
  • causal-lm
  • hybrid-architecture
  • edge-ai
  • roleplay
  • reasoning
  • custom_code

LFM3-1.7B-Uncensored

OpenIntelligenceNet/LFM3-1.7B-Uncensored is an uncensored, directional-abliterated variant of LiquidAI/LFM3-1.7B created using Heretic (v2.0.0.dev0).

By leveraging multi-objective Pareto optimization via Optuna (100 trials), this model removes synthetic refusal directions across the residual stream while preserving the base model's instruction-following, reasoning, and low KL-divergence characteristics.


Key Highlights

  • Base Architecture: Liquid Foundation Model 3 (LFM3-1.7B) featuring a fast, memory-efficient tri-hybrid architecture (gated short convolutions, sliding-window attention, and global attention layers).
  • Refusal Abliteration: Processed with Heretic's parameterized directional abliteration (heretic.modifiers.abliteration.Abliteration) to eliminate pre-programmed moralizing and unnecessary refusals.
  • Out-of-the-Box Compatibility: Includes a patched modeling_lfm3.py so trust_remote_code=True works seamlessly across standard transformers versions without linear_attention mask errors.
  • Lightweight & Fast: Ideal for local deployment, creative writing, unfiltered roleplay, red-teaming research, and edge inference.

Quickstart (Transformers)

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "OpenIntelligenceNet/LFM3-1.7B-Uncensored"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16 if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else torch.float16,
    device_map="auto",
    trust_remote_code=True
)

messages = [
    {"role": "user", "content": "Explain the difference between a process and a thread in operating systems."}
]

input_text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=512,
        temperature=0.2,
        top_k=50,
        repetition_penalty=1.1,
        do_sample=True,
        pad_token_id=tokenizer.eos_token_id
    )

print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Abliteration Details

  • Tooling: Heretic v2.0.0.dev0
  • Modifier: heretic.modifiers.abliteration.Abliteration
  • Optimization: 100 Optuna trials (30 startup trials, batch_size=8, max_response_length=100)
  • Export Strategy: Full weight merge (MERGE)

Attribution & Usage

This model is a derivative work of LiquidAI/LFM3-1.7B and remains subject to the original LFM Open License v1.0. Because safety guardrails and refusal mechanisms have been removed, users are solely responsible for the outputs generated and for ensuring safe, legal deployment in downstream applications.

HUGGING FACE

上游数据

HF 下载量0
HF 点赞量0

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

SITE STATS

本站统计

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

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

来源与版本

作者
OpenIntelligenceNet
最近更新
2026/10/29
最新创建
2026/10/29
HF 趋势
353
数据快照
2026/10/29
版本
未知
许可证
unknown