Flint Terse

A LoRA adapter for Recursive Flint that makes it think briefly and in shorthand inside <think> while keeping its final answers. This repository holds the unmerged adapters: a GGUF LoRA for llama.cpp over the unchanged int4 GGUF base, and an MLX LoRA for mlx-lm over the MLX int4 base. For LM Studio, download a merged model instead: gyohng/flint-terse (GGUF) or gyohng/flint-terse-mlx (MLX). LM Studio cannot apply LoRA adapters, and these files alone will not load there.

"Hi!"   base:   123 thinking tokens  ("The user has just said "Hi!" β€” a simple greeting. ...")
        terse:   15 thinking tokens  User greets; respond friendly; ask how can help; brief; casual.

flint-terse keeps code accuracy within noise of the base (101.3 against 102.3 out of 110) with about 72% less thinking on code and over 80% less on math, prose and chat. For the least thinking on code, see flint-terse-minimalist.

Results

Measured on the unchanged int4 base in llama.cpp. Scores are the mean of three seeds with one sample per task (temperature 1, top-p 0.95, top-k 20). The thinking reduction is relative to the base on the same tasks.

Code (110 tasks) Math (120 tasks) Less thinking: code math prose & chat
Flint int4 (base) 102.3 103.3 β€” β€” β€”
flint-terse 101.3 108.7 72% 84% 87%
flint-terse-minimalist 92.3 107.7 83% 85% 93%

flint-terse stays within about one code task of the base, inside seed-to-seed noise, with 72% less thinking on code. flint-terse-minimalist thinks the least, small talk included, at about 10 code tasks below the base. Final replies stay complete; in chats about 3% of flint-terse's carry a stray </think>.

Files

File Use
flint-terse.gguf GGUF LoRA for llama.cpp (339 MB)
mlx/adapters.safetensors, mlx/adapter_config.json MLX LoRA for mlx-lm over RecursiveSI/flint-int4 (842 MB)
chat_template.jinja Flint's chat template without its replace("\x00", ""), which LM Studio's template engine does not support; it skips empty system messages

Base model

Use the exact base the adapter was trained on.

RecursiveSI/flint-int4-gguf, file flint-int4-q4_1.gguf, revision 9c47151036bc2c34331142dda04488bceab2bc9f, SHA-256 43c07baccdba42eb7528a9630ee15699b1942c297291dc1b39a061f508ee1a4b. Other quantizations are different checkpoints and are not supported.

Usage

llama.cpp:

hf download RecursiveSI/flint-int4-gguf flint-int4-q4_1.gguf --revision 9c47151036bc2c34331142dda04488bceab2bc9f --local-dir .
hf download gyohng/flint-terse-lora --local-dir flint-terse
llama-server -m flint-int4-q4_1.gguf --lora flint-terse/flint-terse.gguf \
  --jinja --chat-template-file flint-terse/chat_template.jinja --temp 1 --top-p 0.95 --top-k 20

mlx-lm:

hf download gyohng/flint-terse-lora --include 'mlx/*' --local-dir flint-terse-lora
mlx_lm.generate --model RecursiveSI/flint-int4 --adapter-path flint-terse-lora/mlx \
  --temp 1 --top-p 0.95 --top-k 20 --max-tokens 4096 --prompt "Write a function that merges overlapping intervals."

LM Studio users can also attach this adapter to the base with the GitHub repository's ./run.sh deploy --adapter release/flint-terse, but the merged model is simpler.

Recommended sampling is temperature 1, top-p 0.95 and top-k 20, the base model's defaults.

This adapter also adapts the routed experts with per-expert LoRA on down_proj in the last 16 MoE layers. The GGUF needs a llama.cpp build with per-expert LoRA support, which recent llama.cpp has. mlx-lm uses one rank for every module, so in mlx/ the rank-8 expert factors are zero-padded to rank 32. The padding is exact.

How it was made

Training ran directly on the int4 coefficients with rank-32 FP32 LoRA on attention, the shared expert and the dense MLPs, plus rank-8 LoRA on the routed experts' down-projections in the last 16 MoE layers. The model learned from its own answers by reinforcement learning: an answer earned reward only if it passed its tests, and less the longer it thought. flint-terse was penalised only beyond a quarter of the base model's own thinking on each task, so hard problems keep room to think; flint-terse-minimalist was held to a fixed budget. A short supervised pass earlier taught terse thinking for prose and chat. A final step on short chats and multi-turn conversations keeps thinking brief in everyday chat: supervised on its own shortest thinking for flint-terse, by reinforcement for flint-terse-minimalist. Code, data and a one-script reproduction are at https://github.com/gyohng/flint-terse.

License

Apache-2.0, the same licence as Flint. This fine-tune adds no further conditions. Flint is by Recursive.

Downloads last month
92
GGUF
Model size
0.1B params
Architecture
flint
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for gyohng/flint-terse-lora

Adapter
(2)
this model