/ Модель

Характеристики

Контекст
262 144 токена
Параметры
1,6 млрд
Лицензия
Своя лицензия
Архитектура
lfm3 · dense
Базовая модель
LFM3-1.7B
Библиотека
transformers
Опубликована
28 окт 2026

LFM3-1.7B-heretic

Генерация текстаТекст → текст3 профессии
4 111скачиваний за 30 дней3лайкавеса обновлены1 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Компактная версия LiquidAI/LFM3-1.7B с подавленным поведением отказа для локального диалога, агентов и вызова инструментов.

LFM3-1.7B-heretic — вариант модели LiquidAI/LFM3-1.7B, подготовленный автором репозитория с помощью Heretic 1.4.0. Это плотная языковая модель с 1,73 млрд параметров и гибридной архитектурой: 13 слоёв коротких свёрток, 5 слоёв скользящего внимания и 6 слоёв глобального внимания. Контекстное окно — 262 144 токена; модель использует шаблон ChatML и поддерживает вызов инструментов с XML-форматом вызовов.

Модель предназначена для локального диалога, агентов и вызова инструментов на устройствах с ограниченными ресурсами. Веса доступны в BF16 и нескольких вариантах GGUF, включая квантизированные форматы для запуска на телефоне, Raspberry Pi и обычном ноутбуке. Изменение подавляет отказы направленными правками весов, а не дообучением; карточка приводит результаты тестов отказов и MMLU, но подчёркивает, что они не гарантируют общих возможностей модели.

Автор предупреждает, что модель такого размера не рекомендуется для агентного программирования и сложных многошаговых рассуждений; снижение числа отказов также означает, что модель может отвечать на запросы, которые исходная версия отклоняла. Для GGUF необходима сборка llama.cpp с поддержкой архитектуры LFM3. Лицензия указана как other, поэтому условия использования следует сверить с лицензией репозитория и базовой модели.

Сценарии применения

  • локальный чат на телефоне или ноутбуке
  • вызов инструментов в локальном агенте
  • ответы на вопросы и диалог на нескольких языках
  • запуск языковой модели на Raspberry Pi
  • эксперименты с поведением отказов модели

Ограничения

Для агентного программирования и сложных многошаговых рассуждений модель такого размера не рекомендуется; тесты отказов и MMLU не являются гарантией качества. Для запуска GGUF требуется llama.cpp со свежей поддержкой архитектуры LFM3.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

LFM3-1.7B-heretic

A decensored variant of LiquidAI/LFM3-1.7B, produced with Heretic v1.4.0 (directional ablation / "abliteration"). LFM3's tri-hybrid architecture is kept intact - 24 layers split into 13 gated short convolutions, 5 sliding-window attention layers and 6 global attention layers - along with the 256K context window, ChatML template and XML tool-call format. Refusal behaviour is suppressed with targeted weight edits to the attention output projections (including the convolution operator's out_proj on conv layers) and the MLP down-projections, not by fine-tuning.

Who this is for: local agents and tool use on hardware that should not need a GPU. LFM3-1.7B is Liquid's post-trained 1.7B agentic model, and its published LFM3 column reports BFCL V4 71.39, ToolSandbox 80.36 and WebArena-Verified 38.42 - numbers that used to need a 9B model. At 4-bit the weights are about 1 GB, so it fits a phone, a Pi 5, or a browser tab. Liquid itself does not recommend it for agentic coding or complex multi-step reasoning at this size; the abliteration removes refusals, not that limitation.

Refusals drop from 95/100 to 5/100 at a KL divergence of 0.0052, and MMLU is unchanged within noise (49.91% vs 49.56%).

Abliteration parameters

Trial 83 of a 200-trial Heretic run (seed 2678800539).

ParameterValue
direction_index10.97
attn.o_proj.max_weight1.18
attn.o_proj.max_weight_position14.16
attn.o_proj.min_weight1.14
attn.o_proj.min_weight_distance13.77
mlp.down_proj.max_weight1.31
mlp.down_proj.max_weight_position16.04
mlp.down_proj.min_weight1.25
mlp.down_proj.min_weight_distance13.06

Performance

MetricThis modelOriginal model (LiquidAI/LFM3-1.7B)
KL divergence0.00520 (by definition)
Refusals5/10095/100

The base model was strongly refusal-tuned (95/100 on Heretic's harmful evaluation set), and 90 of those 95 clear. KL 0.0052 is a tight edit, so expect little drift in phrasing or format.

MMLU

Measured on this checkpoint and on the original model in the same environment (lm-eval 0.4.13, 14,042 questions):

MetricThis modelOriginal model
MMLU (acc)49.91%49.56%
stderr0.41 pp0.41 pp

The +0.35 pp difference is smaller than one standard error, i.e. no measurable knowledge regression on MMLU. It is a single benchmark, not a capability guarantee.

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 (and its capabilities) untouched. See the Heretic repo and the original abliteration writeup for the mechanism.

Files

Safetensors

FileSize
model.safetensors3.46 GB

BF16, 1,728,801,536 parameters (1.73B). The reproduce/ directory carries the full Heretic recipe - config.toml, requirements.txt, the Optuna study journal, and SHA-256 sums - so this exact model can be regenerated. Reproduce it with heretic --reproduce reproduce/reproduce.json.

GGUF quantizations

Full quantization set (F16 + 14 quants, 18.93 GB total) produced with llama.cpp master on 2026-10-28.

[!IMPORTANT] These files use the new lfm3 GGUF architecture. You need an LFM3-capable llama.cpp build (support landed in late October 2026); older builds will fail to load the model. The upstream LiquidAI/LFM3-1.7B-GGUF uses the same architecture.

FileFormatSize
LFM3-1.7B-heretic-F16.ggufGGUF F163.47 GB
LFM3-1.7B-heretic-Q2_K.ggufGGUF Q2_K0.75 GB
LFM3-1.7B-heretic-IQ3_S.ggufGGUF IQ3_S0.85 GB
LFM3-1.7B-heretic-Q3_K_S.ggufGGUF Q3_K_S0.85 GB
LFM3-1.7B-heretic-Q3_K_M.ggufGGUF Q3_K_M0.91 GB
LFM3-1.7B-heretic-Q3_K_L.ggufGGUF Q3_K_L0.97 GB
LFM3-1.7B-heretic-IQ4_XS.ggufGGUF IQ4_XS1.01 GB
LFM3-1.7B-heretic-Q4_K_S.ggufGGUF Q4_K_S1.06 GB
LFM3-1.7B-heretic-Q4_0.ggufGGUF Q4_01.05 GB
LFM3-1.7B-heretic-Q4_1.ggufGGUF Q4_11.14 GB
LFM3-1.7B-heretic-Q4_K_M.ggufGGUF Q4_K_M1.10 GB
LFM3-1.7B-heretic-Q5_K_S.ggufGGUF Q5_K_S1.23 GB
LFM3-1.7B-heretic-Q5_K_M.ggufGGUF Q5_K_M1.26 GB
LFM3-1.7B-heretic-Q6_K.ggufGGUF Q6_K1.43 GB
LFM3-1.7B-heretic-Q8_0.ggufGGUF Q8_01.85 GB

Quickstart

# llama.cpp (LFM3-capable build)
llama serve -hf saidutta69/LFM3-1.7B-heretic
# transformers (the checkpoint ships custom code)
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "saidutta69/LFM3-1.7B-heretic"
model = AutoModelForCausalLM.from_pretrained(
    model_name, device_map="auto", dtype="bfloat16", trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

messages = [{"role": "user", "content": "Explain how a heat pump works."}]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
out = model.generate(
    **inputs, do_sample=True, temperature=0.1, top_k=50,
    repetition_penalty=1.1, max_new_tokens=2048,
)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Generation parameters

Liquid's recommended settings:

  • General (chat, tool use, agents): temperature=0.1, top_k=50, repetition_penalty=1.1
  • Math & STEM: temperature=1.0, top_p=0.95, top_k=20

Chat template and thinking

LFM3 uses ChatML: <|im_start|>role ... <|im_end|> with <|startoftext|> at the front. Reasoning is enabled by default and arrives in a thinking block; pass enable_thinking=False to disable it (Liquid notes this can be inconsistent on reasoning-heavy tasks). Prior-turn reasoning is dropped unless preserve_thinking=True.

Tool use

Pass function schemas with tools=... to tokenizer.apply_chat_template(). Calls come back as XML:

<tool_call>
<function=get_weather>
<parameter=city>
Paris
</parameter>
</function>
</tool_call>

Feed the result back under a tool role. Deferred tool loading (defer_loading=True) and the <additional_tools> search flow are supported by the template.

Runs anywhere

DeviceRecommended quantWeights
Phone / browser (4 GB RAM)Q4_K_M1.10 GB
Raspberry Pi 5 (4 GB)Q4_K_M1.10 GB
Laptop (8 GB, Apple Silicon)Q8_01.85 GB
RTX 3060 / 4060 (8-12 GB)Q6_K1.43 GB
Server / multi-tenantQ5_K_M1.26 GB

Weights only. The hybrid stack spends 13 of its 24 layers in cheap convolution blocks, so decode is memory-bandwidth-bound rather than compute-bound. Liquid measures about 1 GB of weights at 4-bit; the KV cache grows with context, and at the full 256K window it is no longer a phone workload.

Model details

ArchitectureLfm3ForCausalLM (tri-hybrid: gated short conv + sliding + global attention)
Parameters1.73B
Layers24: 13 gated short convolutions, 5 sliding-window attention, 6 global attention
Attention16 heads / 4 KV heads on attention layers, head dim 128
Hidden / intermediate2048 / 7680
Convolution cacheL_cache = 7
Position embeddingRoPE; global layers theta 1e6 with partial rotary 0.5, sliding layers theta 1e4
Sliding window256
Context length262,144 (GGUF header lfm3.context_length)
Vocab128,000
Precisionbfloat16
LanguagesEnglish, Arabic, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Spanish, Vietnamese, Thai, Indonesian, Hindi, Russian, Polish
Base modelLiquidAI/LFM3-1.7B

The GGUF carries 287 tensors over 24 blocks (arch=lfm3) and exactly 262,144 context. Embeddings are tied, so there is no separate lm_head tensor.

Base-model note: the heretic repo's original YAML tag said LiquidAI/LFM3-1.7B-Base, but the ablation was run on the post-trained LiquidAI/LFM3-1.7B (commit 40ebe0aa...) - see reproduce/config.toml. This card uses the correct base.

FAQ

What is LFM3-1.7B-heretic?

LFM3-1.7B-heretic is a decensored build of LiquidAI/LFM3-1.7B produced with Heretic 1.4.0 (directional ablation). It is the same weights with the refusal direction removed, not a new fine-tune, so its capabilities track the base model.

Is LFM3-1.7B-heretic actually uncensored?

Yes. On Heretic's 100-prompt refusal harness it drops from 95/100 to 5/100 at KL divergence 0.0052 from the base model. These are measured values, not a claim; reproduction data is in reproduce/.

How do I run LFM3-1.7B-heretic locally?

llama serve -hf saidutta69/LFM3-1.7B-heretic:Q4_K_M pulls the default quant; the repo ships 15 GGUF quants (see Files).

Responsible use

Refusal suppression is deliberate and works as intended: this model will comply with requests the base model would refuse, including some it should not. There is no safety filtering layered on top. You are responsible for how you deploy it - don't put this behind an unmoderated public-facing endpoint serving third parties. It inherits LFM3-1.7B's factual limitations; abliteration removes refusal directions, it does not add capability or judgment.

Made with ❤️ by RACER IS OP (saidutta69) - follow for more uncensored models

License

Inherits the LFM Open License v1.0 from the base model. This is not Apache-2.0; review the LFM terms before commercial use.

Related

Abliteration hardware

Recorded in reproduce/reproduce.json:

  • GPU: NVIDIA RTX PRO 6000 Blackwell Server Edition (94.97 GB VRAM)
  • OS: Linux-4.19.0-gvisor-x86_64-with-glibc2.41
  • CUDA / driver: CUDA 13.0, driver 595.71.05
  • Software: PyTorch 2.14.1+cu130, Heretic 1.4.0

Heretic notes that KL-divergence and refusal numbers can vary slightly with hardware and library versions.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
Lfm3ForCausalLM
Ревизия весов
08500aa

0 моделей