Run this model with HF Jobs
Run gyohng/flint-terse-mlx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/gyohng/flint-terse-mlx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/gyohng/flint-terse-mlx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/gyohng/flint-terse-mlx. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/gyohng/flint-terse-mlx. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use gyohng/flint-terse-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use gyohng/flint-terse-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("gyohng/flint-terse-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use gyohng/flint-terse-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "gyohng/flint-terse-mlx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "gyohng/flint-terse-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use gyohng/flint-terse-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "gyohng/flint-terse-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "gyohng/flint-terse-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gyohng/flint-terse-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use gyohng/flint-terse-mlx with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "gyohng/flint-terse-mlx"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default gyohng/flint-terse-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use gyohng/flint-terse-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "gyohng/flint-terse-mlx"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "gyohng/flint-terse-mlx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Flint Terse (MLX)
Recursive Flint, fine-tuned to think briefly and in shorthand inside <think> while keeping its final answers. This is a complete MLX model for Apple Silicon: download it in LM Studio or load it with mlx-lm, with nothing else to install. The GGUF version is gyohng/flint-terse.
"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 int4 base with the adapter 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>.
What this model is
The MLX int4 base RecursiveSI/flint-int4 with the LoRA merged in (30.6 GB). The merge rewrote attention q/k/v/o, the shared expert, the two dense MLPs and the routed experts' down-projections in the last 16 MoE layers. They are stored unquantized as bfloat16, the model's own dtype: re-quantizing them to 4 bits, as mlx_lm.fuse does, would round away most of the fine-tune. Every other tensor is the base's original int4. The base repository is written for the Rec runtime, which LM Studio's MLX engine cannot read, so the packed weights are saved here as the uint32 words MLX itself writes and config.json names the 8-bit embeddings. Against llama.cpp running the GGUF adapter on the int4 GGUF it picks the same top token at 97% of 256 positions (mean |ฮlogp| 0.06). The chat template is Flint's, minus a replace("\x00", "") that LM Studio's template engine does not support, and it skips empty system messages.
The unmerged adapters (GGUF for llama.cpp, MLX for mlx-lm --adapter-path) are at gyohng/flint-terse-lora.
Usage
LM Studio: search for gyohng/flint-terse-mlx, download, load. Set temperature 1, top-p 0.95 and top-k 20 (the base model's defaults).
mlx-lm:
mlx_lm.generate --model gyohng/flint-terse-mlx --temp 1 --top-p 0.95 --top-k 20 --max-tokens 4096 \
--prompt "Write a function that merges overlapping intervals."
mlx_lm.server --model gyohng/flint-terse-mlx # OpenAI-compatible server
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
- 169
Quantized
Model tree for gyohng/flint-terse-mlx
Base model
RecursiveSI/flint-int4