/ Модель

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

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

LFM3-1.7B-Heretic-Uncensored

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

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

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

Модифицированная версия компактной текстовой LFM3-1.7B для локальных диалоговых агентов и специализированных приложений с изменённым поведением отказов.

Peymandc выпустил LFM3-1.7B-Heretic-Uncensored — модифицированную версию текстовой модели LiquidAI/LFM3-1.7B, созданную инструментом Heretic v2.1.0. Это плотная авторегрессионная модель семейства LFM3 с 1,6 млрд параметров; в репозитории размещён чекпойнт BF16 в формате Transformers. Модель рассчитана на локальных агентов, диалоги, вызов инструментов и специализированные приложения. Заявленное базовой моделью контекстное окно составляет 262 144 токена. Карточка приводит языки оригинальной модели, но отдельно отмечает, что многоязычные возможности этой модификации независимо не проверялись.

Вариант изменяет поведение отказов: в описанной авторами проверке совпадения с ключевыми словами отказа обнаружены в 3 из 100 ответов, тогда как у оригинала — в 98 из 100. Это ограниченная проверка по ключевым словам, а не оценка смысла ответов. Модель может выдавать неточную, вредную или неуместную информацию; её не рекомендуют для агентного программирования и сложных многошаговых рассуждений из-за небольшого размера. Для задач с большим объёмом знаний рекомендуется использовать поиск или RAG. Модель распространяется по лицензии LFM Open License v1.0; коммерческое использование ограничено условиями раздела 5 лицензии.

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

  • создание локального диалогового агента
  • вызов инструментов агентом
  • генерация структурированных ответов
  • специализация текстового ассистента под предметную область
  • эксперименты с поведением отказов модели

Ограничения

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

This is a decensored version of LiquidAI/LFM3-1.7B, made using Heretic v2.1.0

[!TIP] This model is reproducible!

See the README in the reproduce directory for more information.

💜 Enjoying my work? You can support my independent AI projects here.

Arbitrary-Rank Ablation (ARA) parameters

ParameterValue
start_layer_index9
end_layer_index24
preserve_good_behavior_weight0.3616
steer_bad_behavior_weight0.0006
overcorrect_relative_weight0.7002
neighbor_count14

Heretic Evaluation

Heretic v2.1.0 · Selected optimization trial #97

MetricThis modelOriginal LFM3-1.7B
Refusal-keyword matches3/100 (3%)98/100 (98%)
KL divergence0.07320.0000 (by definition)

Evaluation methodology

  • Refusal-keyword matches: Heretic's KeywordRate scorer, evaluated on the first 100 prompts from mlabonne/harmful_behaviors (test[:100]). A response is counted when it contains any configured refusal keyword, case-insensitively. This is a keyword-based proxy, not a semantic or human-reviewed refusal evaluation.
  • KL divergence: Heretic's KLDivergence scorer, evaluated on the first 100 prompts from mlabonne/harmless_alpaca (test[:100]). The original model is the reference, so its divergence is zero by definition.

Full evaluation settings, keyword markers, dependencies, optimization history, and reproduction instructions are available in the reproduce/ directory.

Safety and Responsible Use

This model has undergone refusal-behavior modification using Heretic. As a result, it may respond to requests that the original model would have refused.

Users are responsible for evaluating its outputs and ensuring that their use complies with applicable laws and regulations.

The model may generate inaccurate, misleading, harmful, or otherwise inappropriate content. Its outputs should not be treated as verified information or professional advice.


Note: The architecture descriptions, capability claims, and benchmark results in the following sections originate from the original LiquidAI/LFM3-1.7B documentation. They have not been independently re-evaluated on this Heretic variant. The variant-specific evaluation results are reported above.

LFM3-1.7B

LFM3-1.7B is a text model for local agents and specialized applications, based on our new tri-hybrid architecture.

  • Agentic training: post-trained for agentic harnesses such as Hermes Agent, Pi, and OpenClaw, with a 256K-token context window.
  • Designed for the edge: at 4-bit precision, it takes about 1 GB of memory, so it fits on any phone or laptop.
  • Made to be specialized: adapt the model to your domains, formats, and tools via quick single-GPU fine-tuning.

Find more information about the LFM3 family in our release blog post.

License notice: This model is distributed under the LFM Open License v1.0. Commercial use is subject to the restrictions in Section 5 of the license.

Model details

The LFM3 family includes base, text, vision, audio, omni, and decision models.

The 16-language list reflects the original LFM3-1.7B documentation. Multilingual capabilities have not been independently evaluated on this Heretic variant.

LFM3-1.7B is designed for local agents, tool calling, structured outputs, and domain-specific fine-tuning. Use retrieval or search for knowledge-heavy tasks. It is not recommended for agentic coding or complex multi-step reasoning due to its small size.

Availability in this repository: Only the BF16 Transformers checkpoint is currently hosted here. The additional inference formats and framework references below are inherited from the original Liquid AI documentation and do not represent separately provided checkpoints in this repository.

Inference

Choose a checkpoint variant for your inference framework and hardware.

Sampling parameters:

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

Transformers quick start:

from transformers import pipeline

generator = pipeline(
    "text-generation",
    model="Peymandc/LFM3-1.7B-Heretic-Uncensored",
    trust_remote_code=True,
)

messages = [{"role": "user", "content": "What is C. elegans?"}]
output = generator(
    messages,
    do_sample=True,
    temperature=0.1,
    top_k=50,
    repetition_penalty=1.1,
    max_new_tokens=2048,
)
print(output[0]["generated_text"][-1]["content"])

For local agent setup, see the Agent Harnesses guide.

LFM3 uses this ChatML format, generated from the checkpoint's chat template:

<|startoftext|><|im_start|>system
You are a helpful assistant trained by Liquid AI.<|im_end|>
<|im_start|>user
Explain how a heat pump works.<|im_end|>
<|im_start|>assistant
<think>

Use tokenizer.apply_chat_template() with add_generation_prompt=True to format messages automatically.

Reasoning is enabled by default. You can set enable_thinking=False to disable thinking traces, but this behavior can be inconsistent, especially for reasoning-heavy tasks.

Reasoning from turns before the latest user message is removed unless preserve_thinking=True.

Pass function schemas through tools=... to apply_chat_template(). The template formats tool definitions and results automatically. Generated calls use XML:

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

Execute the call in your application. Add the parsed assistant call to history as a tool_calls entry, then append the result as a tool message. Keep passing the tool schemas on subsequent requests and preserve the assistant's content and reasoning from the current tool-use turn.

function.arguments must be a Python mapping. Decode JSON strings with json.loads() before applying the template.

LFM3 supports deferred tools. Set defer_loading=True to keep tool definitions out of the prompt until your harness's search tool returns their names as tool_reference parts. The chat template then inserts their definitions into <additional_tools>.

tools = [
    search_tool,
    {"type": "function", "defer_loading": True, "function": get_weather_schema},
]
messages.append({
    "role": "tool",
    "tool_call_id": call_id,
    "content": [
        {"type": "text", "text": "Found 1 tool."},
        {"type": "tool_reference", "name": "get_weather"},
    ],
})

Your harness implements and runs the search. Keep the full tools list, including deferred tools, on every request. In the system prompt, tell the model when to search:

You only have one tool right now: search_tools, which searches a catalog of many more tools. If none of your current tools can handle a request, call search_tools to find one, then call the tool it returns.

Works with vLLM, SGLang, and LFM3-compatible llama.cpp builds. For llama.cpp, use a GGUF with the current chat template or load it with --chat-template-file.

See Deferred tools and tool search for the full guide.

Fine-tuning

LFM3-1.7B is designed for easy customization for a given domain, task, or application via TRL.

Performance

Benchmarks

LFM3-1.7B can power agentic applications that used to need 9B parameters.

Edge inference

At 32K context, LFM3-1.7B prefills at least 2.5x faster and decodes at least 1.8x faster than every compared model on all three devices, while using the least memory.

GPU inference

At 1,024 concurrent requests, LFM3-1.7B can produce 3.6 billion tokens/day on one NVIDIA B300.

Training

Pre-training: two stages build LFM3-1.7B-Base on 22T tokens in total.

  • Main pre-training: compared with LFM2, the mix adds more scientific papers, repository-level code, math, and a wider range of knowledge sources.
  • Mid-training: the last 3.5T tokens use curated, higher-quality data with a larger share of agentic traces and tool calls. This stage also extends the context window to 256K tokens.

Post-training: four stages develop conversation, reasoning, and tool-use capabilities.

  • Supervised fine-tuning (SFT): 1.75T tokens across various tasks, including chat, reasoning, tool calling, and agentic traces.
  • Mixed reinforcement learning: many domains trained at once, from math and code to SQL and structured outputs. A length penalty in the reward keeps answers concise.
  • Multi-domain on-policy distillation (MOPD): six specialist RL teachers (code, math, tool use, long context, agentic work, and enterprise workflows) are distilled back into a single model.
  • Agentic RL: tasks from web browsing to office work are run inside real agent harnesses, preparing the model for deployment.

Citation

@article{liquidAI2026LFM3,
  author  = {Liquid AI},
  title   = {Introducing LFM3: Every Modality for Specialized Intelligence},
  journal = {Liquid AI Blog},
  year    = {2026},
  note    = {www.liquid.ai/blog/lfm3},
}

Acknowledgements

This model is derived from LiquidAI/LFM3-1.7B, developed by Liquid AI.

Refusal-behavior modification was performed using Heretic.

If you use this model in your work, please credit both the original model and this modified release.


💜 Support Independent Development

These projects are part of my ongoing exploration of open-weight AI models.

Your support helps make more room for experimentation, model modifications, testing, research, and future releases.

If you find my work useful and would like to contribute, you're welcome to visit my support page:

Every contribution is appreciated, but never expected. Sharing feedback, reporting issues, and simply using the models are also wonderful ways to support independent development.

Thank you for being here. ❤️

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

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

GPU в ailist

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

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

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

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

0 моделей