/ Модель

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

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

LFM3-1.7B-Claude-Fable5.1-heretic-ara

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

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

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

Компактная текстовая модель LFM3 с редактированными весами для локальной генерации ответов и вызова инструментов в стиле Claude Code.

LFM3-1.7B-Claude-Fable5.1-heretic-ara — текстовая генеративная модель на архитектуре LFM3 от автора saidutta69. Это вариант дообученной модели saidutta69/LFM3-1.7B-Claude-Fable5.1: Heretic v2.0.0 применил к весам ранговое редактирование, чтобы снизить склонность к отказам, без дополнительного обучения. Модель содержит около 1,6 млрд параметров по метаданным; README указывает 1,73 млрд. Она сохраняет гибридную архитектуру из свёрточных слоёв и слоёв внимания и контекст до 262 144 токенов.

Модель предназначена прежде всего для локального запуска сценариев в стиле Claude Code с вызовами инструментов через XML-протокол, например чтения и редактирования файлов или поиска. В README приведены квантизованные GGUF-варианты, включая Q4_K_M размером около 1,10 ГБ, для маломощных устройств. Карточка сообщает о снижении отказов с 72 до 5 на тесте из 100 запросов; это редактирование может сильнее менять формулировки и формат, а свободное письмо слабее, чем у исходной модели. Для GGUF требуется сборка llama.cpp с поддержкой LFM3. Лицензия в метаданных обозначена как other; конкретные условия следует проверять в репозитории.

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

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

Ограничения

README характеризует модель как специализированную: свободное письмо слабее, чем у исходной модели, а редактирование весов может приводить к дрейфу формулировок и формата. Для запуска GGUF нужна сборка llama.cpp с поддержкой архитектуры LFM3.

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

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

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

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

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

LFM3-1.7B-Claude-Fable5.1-heretic-ara

A decensored variant of saidutta69/LFM3-1.7B-Claude-Fable5.1, produced with Heretic v2.0.0 (Arbitrary-Rank Ablation, "ARA"). The base is a tool-calling fine-tune of LiquidAI/LFM3-1.7B trained on the claude_code split of saidutta69/fable-5.1-premium-v2. ARA removes the refusal direction with a rank-50 weight edit; it does not retrain the model. LFM3's tri-hybrid stack - 24 layers split into 13 gated short convolutions, 5 sliding-window attention layers and 6 global attention layers - plus the 256K context window, ChatML template and XML tool-call format are kept intact.

Who this is for: running a Claude-Code-style tool protocol on a local 1.7B model. Q4_K_M is about 1.10 GB, so it fits a phone, a Pi 5, or a laptop with no GPU. The base model was tuned to emit valid Bash, Read, Write, Edit, Glob, Grep, WebFetch, WebSearch, TodoWrite, TaskCreate, TaskUpdate, TaskOutput and ToolSearch calls with typed arguments. This is a specialist, not a general-purpose upgrade: free-form writing is weaker than the upstream LFM3.

Refusals drop from 72/100 to 5/100 at a KL divergence of 0.1342 from the fine-tuned base.

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.

Abliteration parameters

Trial 97 of a 150-trial Heretic run (seed 42).

ParameterValue
start_layer_index9
end_layer_index23
preserve_good_behavior_weight0.9366
steer_bad_behavior_weight0.0010
overcorrect_relative_weight0.4889
neighbor_count5

Performance

MetricThis modelOriginal model (saidutta69/LFM3-1.7B-Claude-Fable5.1)
Refusals (Classifier)5/10072/100
KL divergence0.13420 (by definition)

KL 0.1342 is a larger edit than the plain LFM3-1.7B abliteration (0.0052), because ARA edits a rank-50 subspace across layers 9-23. Expect more drift in phrasing and format than the plain heretic checkpoint. The refusal reduction is large: 67 of the 72 refusals clear.

Tool-call fidelity inherited from the base

The fine-tune's own evaluation (100 held-out claude_code samples, greedy, 2,048-token budget):

MetricBase LFM3-1.7BFine-tuned base
Held-out supervised loss1.7310.233
Starts a tool call97%100%
Tool name valid (of parsed)77.3%100%
Required args present (of parsed)96.9%100%
Wikitext perplexity17.3523.32

Those are the base checkpoint's numbers; abliteration does not add capability. The perplexity rise is real - this is a tool-calling specialist.

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

Basic quantization set (F16 + 4 quants, 9.10 GB total) produced with llama.cpp master on 2026-11-04.

[!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-Claude-Fable5.1-heretic-ara-F16.ggufGGUF F163.47 GB
LFM3-1.7B-Claude-Fable5.1-heretic-ara-Q4_K_M.ggufGGUF Q4_K_M1.10 GB
LFM3-1.7B-Claude-Fable5.1-heretic-ara-Q5_K_M.ggufGGUF Q5_K_M1.26 GB
LFM3-1.7B-Claude-Fable5.1-heretic-ara-Q6_K.ggufGGUF Q6_K1.43 GB
LFM3-1.7B-Claude-Fable5.1-heretic-ara-Q8_0.ggufGGUF Q8_01.85 GB

Quickstart

llama.cpp

llama serve -hf saidutta69/LFM3-1.7B-Claude-Fable5.1-heretic-ara:Q4_K_M --jinja \
  --chat-template-kwargs '{"enable_thinking":false}'

The base fine-tune was trained with enable_thinking=False. Leaving thinking on is supported but not what the tool-calling data was trained against.

Transformers

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

repo = "saidutta69/LFM3-1.7B-Claude-Fable5.1-heretic-ara"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    repo, dtype=torch.bfloat16, device_map="auto", trust_remote_code=True
)

messages = [{"role": "user", "content": "List the files in tasks/"}]
tools = [{
    "type": "function",
    "function": {
        "name": "Bash",
        "description": "Run a shell command.",
        "parameters": {
            "type": "object",
            "properties": {"command": {"type": "string"}},
            "required": ["command"],
        },
    },
}]

prompt = tok.apply_chat_template(
    messages, tools=tools, tokenize=False,
    add_generation_prompt=True, enable_thinking=False,
)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

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. The KV cache grows with context; the full 256K window is not 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, head dim 128
Hidden / intermediate2048 / 7680
Context length262,144
Vocab128,000
Precisionbfloat16
Base modelsaidutta69/LFM3-1.7B-Claude-Fable5.1
UpstreamLiquidAI/LFM3-1.7B

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

FAQ

What is LFM3-1.7B-Claude-Fable5.1-heretic-ara?

It is a decensored build of saidutta69/LFM3-1.7B-Claude-Fable5.1 produced with Heretic 2.0.0 (Arbitrary-Rank Ablation). The base is a Claude-Code-style tool-calling fine-tune of LiquidAI/LFM3-1.7B; this checkpoint keeps those weights and removes the refusal direction. It is not a new fine-tune, so tool-call capability tracks the base model.

Is LFM3-1.7B-Claude-Fable5.1-heretic-ara actually uncensored?

Yes. On Heretic's 100-prompt refusal harness it drops from 72/100 to 5/100 at KL divergence 0.1342 from the fine-tuned base. These are measured values, not a claim; reproduction data is in reproduce/. KL 0.1342 is a larger edit than the plain LFM3 abliteration, so expect more drift.

How do I run LFM3-1.7B-Claude-Fable5.1-heretic-ara locally?

llama serve -hf saidutta69/LFM3-1.7B-Claude-Fable5.1-heretic-ara:Q4_K_M --jinja pulls the 1.10 GB default quant and needs an LFM3-capable llama.cpp build (late October 2026 or newer). The repo also ships Q5_K_M, Q6_K, Q8_0 and F16.

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, and the fine-tune is a tool-calling specialist; 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 upstream model. This is not Apache-2.0; review the LFM terms before commercial use.

Related

Abliteration hardware

Recorded in reproduce/reproduce.json:

  • GPU: NVIDIA GeForce RTX 3090 (23.60 GB VRAM)
  • OS: Linux-6.8.0-138-generic-x86_64-with-glibc2.35
  • CUDA / driver: CUDA 13.2, driver 615.71.09
  • Software: PyTorch 2.15.0+cu132, Heretic 2.0.0

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

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей