/ Модель

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

Лицензия
Apache 2.0
Базовая модель
flint
Библиотека
mlx
Опубликована
26 окт 2026

flint-heretic-mlx-4bit

Генерация текстаТекст → текст12 профессий

Квантованная в MLX 4-bit и прошедшая абляцию отказов MoE-модель Flint для генерации текста и агентной работы с кодом на Apple Silicon.

314скачиваний за 30 дней2лайкавеса обновлены27 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Flint Heretic MLX 4-bit — производная версия языковой MoE-модели Flint от Recursive, подготовленная автором репозитория balllvin для запуска на Apple Silicon. Веса Flint подвергнуты абляции направлений отказа методом Heretic без последующего дообучения, затем квантованы в формат MLX affine 4-bit с размером группы 64. Модель содержит 39,8 млрд параметров, из которых активно около 2,5 млрд; нативный контекст — до 262 144 токенов. Предназначена для генерации текста и диалогового использования, включая агентную работу с кодовыми базами, исправление ошибок, реализацию функций и написание тестов.

Сборка рассчитана на Apple Silicon и runtime rec-mlx; README рекомендует не менее 48 ГБ общей памяти, а для длинного контекста — 64 ГБ и более. Абляция заметно снижает частоту отказов на вредоносных запросах, но увеличивает длину рассуждений, может приводить к незакрытым блокам рассуждений при коротком лимите генерации и ухудшает результат на GPQA Diamond. Для доступа требуется принять условия репозитория на Hugging Face. Лицензия — Apache-2.0.

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

  • анализ кодовой базы в агентном сценарии
  • поиск и исправление ошибок в коде
  • реализация функций по описанию
  • написание тестов для программного проекта
  • диалоговая генерация текста с длинным контекстом

Ограничения

Абляция снижает частоту отказов, но существенно удлиняет рассуждения и при коротком лимите может оставлять незакрытые блоки; качество на GPQA Diamond снизилось с 76% до 62%. Для запуска требуется Apple Silicon с достаточным объёмом общей памяти.

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

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

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

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

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

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

Открыть на Hugging Face

Flint Heretic (MLX 4-bit)

This repository provides the MLX 4-bit (affine g64) build of RecursiveSI/flint (Recursive's 39.8B / ~2.5B-active Flint MoE ablated with Heretic and quantized to MLX affine 4-bit).

What This Build Is & Why Use It

Unlike the NVFP4 Flint builds, this variant starts directly from BF16 RecursiveSI/flint, applies Heretic's norm-preserving per-layer direction subtraction (lambda=4.0 on layers 24–48), and quantizes to standard MLX affine 4-bit (group_size: 64, 8-bit embeddings, 8-bit KV metadata). Harmful refusal rate drops 4.3x (94.0% -> 22.0%) while preserving GSM8K (92%) and MMLU-Pro (90% vs 91%) and serving directly via Recursive's rec-mlx HTTP server.

  • Runtime format (MLX 4-bit (affine g64)): Standard MLX affine 4-bit (group_size: 64, 8-bit embeddings, 22.57 GB / 21.02 GiB) with flint-int4.json manifest for Recursive's rec-mlx OpenAI-compatible server.
  • Modification stage (Heretic Abliterated): Pure Heretic weight-orthogonality ablation (50 matrices in layers 24–48, zero post-ablation SFT). Compare with Flint-abliterated-Arete-NVFP4-MLX if you want post-ablation fine-tuning.

Variant Guide (Format vs. Alignment Stage)

AxisOptionBest For
RuntimeNVFP4NVIDIA CUDA GPUs (transformers, ModelOpt W4A16_NVFP4 safetensors)
RuntimeGGUFCross-platform NVIDIA CUDA / CPU / Vulkan (llama.cpp, llama-server)
RuntimeMLXApple Silicon unified memory (flint_mlx.py for NVFP4-MLX, rec-mlx for Heretic 4-bit)
StageBase QuantByte-exact conversion of Recursive's NVFP4 weights with original behavior
StageAbliterated / HereticRefusal direction removed; raw uncensored research baseline
Stage+ AretePost-abliteration SFT on NousResearch/arete-data-pairs restoring coherence & factuality

Sibling & Lineage Repos

Variant / HardwareFormatStageRepository
Upstream baseBF16UpstreamRecursiveSI/flint
Upstream (NVFP4)4-bit NVFP4 GGUFUpstreamRecursiveSI/flint-nvfp4-gguf
Apple Silicon (MLX)NVFP4-MLXBase Quantballlvin/Flint-NVFP4-MLX
Apple Silicon (MLX)MLX 4-bit (g64)Heretic Abliteratedballlvin/flint-heretic-mlx-4bit (this repo)
NVIDIA GPU (NVFP4)4-bit NVFP4Abliteratedballlvin/Flint-abliterated-NVFP4
Cross-platform (GGUF)4-bit NVFP4 GGUFAbliteratedballlvin/Flint-abliterated-NVFP4-GGUF
Apple Silicon (MLX)NVFP4-MLXAbliteratedballlvin/Flint-abliterated-NVFP4-MLX
NVIDIA GPU (NVFP4)4-bit NVFP4Abliterated + Areteballlvin/Flint-abliterated-Arete-NVFP4
Cross-platform (GGUF)4-bit NVFP4 GGUFAbliterated + Areteballlvin/Flint-abliterated-Arete-NVFP4-GGUF
Apple Silicon (MLX)NVFP4-MLXAbliterated + Areteballlvin/Flint-abliterated-Arete-NVFP4-MLX

Evaluation & Parity Results

Held-out refusal check (100 harmful prompts, greedy, 100-token budget) plus capability subsets (40–70 items, temperature=1.0, top_p=0.95, top_k=20, up to 32,768 output tokens) comparing 4-bit MLX Base vs. Heretic:

BenchmarknFlint Base (4-bit MLX)This Build (Heretic)
Harmful Refusal Rate (final answer)10094.0%22.0%
Harmful Refusal Rate (incl. <think>)10096.0%31.0%
Closes <think> & answers cleanly1000/10047/100
MMLU-Pro7091%90%
GPQA Diamond5076%62%
CulturalRiddles4018%22%
GSM8K5092%92%
  • Harmless logit drift: First-token KL(base || Heretic) = 0.1176 across 100 harmless prompts.
  • Trade-offs: Reasoning traces lengthen substantially (median 3,504 vs 156 chars at the 100-token greedy check, causing 49/100 unclosed <think> blocks at short budgets), and GPQA Diamond drops from 76% to 62%.

Speed & Weight Size

Runtime & HardwareWeights Size1 stream8 streams (total)
Apple Silicon M5 Pro (64 GB, plain MLX)22.57 GB (21.02 GiB)~35 tok/s~150 tok/s

Memory & Context Budget

  • Native context: 262,144 (256K) tokens (49 layers: 14 full-attention, 35 sliding-window 513; 256 routed experts with 6 active + 1 shared expert).
  • KV cache (BF16): 28,672 B/tok across the 14 full-attention layers (4 KV heads, head_dim=128) plus 36.8 MB per request for the 35 sliding-window layers (7.6 GB total for 1 req at 256K).
  • Weights: 22.6 GB (21.0 GiB) on disk and in memory (does not fit in a 24 GB GPU).
Machine / BudgetUsable MemoryLeft for KVMax Context (1 req)Max Context (4 reqs)Max Context (8 reqs)
Apple Silicon Mac (64 GB)51.8 GB24.9 GB256K211K104K

Agent Setup & Hosting

Accept the repository access terms on Hugging Face first and authenticate (hf auth login or HF_TOKEN). Recommended sampling: temperature=1.0, top_p=0.95, top_k=20, max_tokens up to 32,768.

Option: Apple Silicon (MLX via rec-mlx)

Requires Apple Silicon (>=48 GB unified memory; 64 GB+ for long contexts) and Recursive's rec runtime (--context-limit 65536 overrides rec's 8,192 default so thinking traces are not truncated):

hf download balllvin/flint-heretic-mlx-4bit --local-dir ~/models/flint-heretic-int4
git clone https://github.com/recursive-oss/rec && cd rec
python3.12 -m venv .venv && .venv/bin/pip install -e engine
.venv/bin/rec-mlx serve flint \
  --model-dir ~/models/flint-heretic-int4 \
  --manifest ~/models/flint-heretic-int4/flint-int4.json \
  --port 8080 --context-limit 65536

Verify Running Server

curl -sS http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flint",
    "messages": [{"role": "user", "content": "What is 17 * 23? Show brief reasoning then the answer."}],
    "max_tokens": 1024,
    "temperature": 0.0
  }' | python3 -m json.tool

How It Was Built

  1. Refusal directions: Re-implemented Heretic's per-layer difference-of-means direction extraction (ablation/directions.safetensors, ablation/params.json, ablation/prompts.json included in repo).
  2. Norm-preserving ablation: Applied a hard window (lambda = 4.0) across layers 24–48 (25 x self_attn.o_proj and 25 x mlp.shared_expert.down_proj, leaving all 256 routed experts untouched) and rescaled each modified row to its original norm.
  3. Quantization & manifest: Quantized to MLX affine 4-bit (group_size: 64, 8-bit embeddings) and regenerated flint-int4.json SHA-256 hashes for rec-mlx.

Limits & License

  • Behavioral scope: Deliberately reduced-refusal research model with no safety moderation layer and no post-ablation repair fine-tune. Expect longer, occasionally repetitive <think> reasoning and a capability drop on hard science (GPQA Diamond: 62% vs 76%).
  • License & terms: Apache-2.0 (LICENSE), inherited from RecursiveSI/flint. Heretic's method (AGPL-3.0) was reimplemented from scratch with no Heretic code redistributed; rec is Apache-2.0. Gated repository access terms apply on top of the model license. Independent community build unaffiliated with Recursive.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Ревизия весов
afef607

0 моделей