Mindket

Spark-X2.6-4B-AgentFast

Newversion 1 · updated

Overview

Calls tools and follows instructions with almost no thinking delay, as a 4.1B fine-tune of Spark-X2.6-4B. Made for people building fast local agents that need quick, direct tool calls.

Spark-X2.6-4B-AgentFast is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and pip
  • For Transformers, the torch and transformers packages
  • For llama.cpp, the llama-cli or llama-server program and a GGUF file
  • About 8.2 GB of disk for the BF16 weights, or about 2.1 GB at 4-bit, which is an estimate
Runs in
  • llama.cpp tools, through the quantized GGUF files in the author's separate repository
  • Python with Transformers
  • An OpenAI-compatible server started with llama-server
  • Windows, macOS or Linux, where you download the files with Python
Start with
pip install -U huggingface_hub
hf download JamieBradfield/Spark-X2.6-4B-AgentFast

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Spark-X2.6-4B-AgentFast is a 4.1B fine-tune of XHToken/Spark-X2.6-4B, tuned for autonomous tool calling, system operations and following prompts. It skips the long thinking step and goes straight to tool calls and answers. The author describes this as an accident of a template mismatch during training.

Who it suits

It suits developers who build local agents where each tool call must come back fast, and who accept a model that does not deliberate first.

IndustryWho uses itHow they use itExample
SoftwareAgent buildersFeed a tool-calling loop that needs structured arguments quicklyA script runner that picks a function and its arguments
OperationsPlatform teamsUse a small local model for system tasks with short answersA helper that turns a request into a tool call
ResearchML researchersStudy the early-exit behavior the card describesCompare it with the stock Spark-X2.6-4B
AI hobbyistsLocal model usersRun a fast small model on modest graphics hardwareAsk quick factual questions with little wait

If you need careful multi-step reasoning, you can skip it, because the card reports a small drop on its math test.

Where to use it

  • llama.cpp tools, through the quantized GGUF files in the author's separate repository
  • Python with Transformers
  • An OpenAI-compatible server started with llama-server
  • Windows, macOS or Linux, where you download the files with Python
Use caseWhoWhat they get back
Tool callingAgent buildersStructured calls with the arguments filled in
Instruction followingDevelopersReplies that follow detailed prompts closely
Quick local Q and AHobbyistsDirect answers in a few seconds

How to set it up

You need Python with pip. For the llama.cpp route you also need the GGUF file from the author's other repository.

  • Python and pip
  • For Transformers, the torch and transformers packages
  • For llama.cpp, the llama-cli or llama-server program and a GGUF file
  • About 8.2 GB of disk for the BF16 weights, or about 2.1 GB at 4-bit, which is an estimate
  1. Install the Hugging Face client with pip.
  2. Download the repository with the hf command.
  3. Pick a route: Transformers in Python, or llama-cli and llama-server with the GGUF file.
pip install -U huggingface_hub
hf download JamieBradfield/Spark-X2.6-4B-AgentFast

How to use it

Run it in the terminal with llama-cli, serve it as an OpenAI-compatible API with llama-server, or load it in Python. The card sets 99 GPU layers, a 4096-token context and a temperature of 0.2.

llama-cli \
  -m Spark-X2.6-Fable-Step150-IQ3_M.gguf \
  -p "<|start▁of▁sentence|><|User|>List 3 core rules of memory management.<|end▁of▁sentence|><|start▁of▁sentence|><|Bot|>" \
  -n 512 \
  -ngl 99 \
  -c 4096 \
  --temp 0.2 \
  --single-turn
llama-server \
  -m Spark-X2.6-Fable-Step150-IQ3_M.gguf \
  --port 8080 \
  -ngl 99 \
  -c 4096
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "JamieBradfield/Spark-X2.6-4B-AgentFast"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

messages = [{"role": "user", "content": "List 3 core rules of memory management."}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
ToolWhat it does
llama-cliRuns one prompt in the terminal and prints the reply
llama-serverServes the model as an OpenAI-compatible API on port 8080
AutoModelForCausalLMLoads the model in Python with Transformers
apply_chat_templateTurns your messages into the format the model expects

Example

You send the prompt asking for 3 core rules of memory management. The model closes its thinking channel at once and answers directly. The card puts this at about 2 to 4 seconds, and about 61 tokens per second on its Vulkan test machine.

For newcomers and experts

Many models think out loud before they answer. This one does not, so replies and tool calls arrive sooner. The first small thing to try is the llama-cli command above with your own question.

The card explains that training targets had empty reasoning channels because of a chat template field mismatch. Over 150 steps the model learned to close the thinking channel at the first token. It kept its core instruction and math skills, with the card claiming a 30 to 40% speedup. The author calls it a case study and is preparing a corrected fine-tune.

  1. Spark-X2.6-4B base
  2. 150 steps of fine-tuning with empty reasoning targets
  3. Thinking channel closes at token zero
  4. Direct tool calls and answers

Good to know

Latency: the card reports the average time per tool call and per math problem against the stock model.

Seconds per tool call
AgentFast3.11 s
Stock model5.13 s

Instruction following: on the card's IFEval run, strict prompt-level accuracy is 65.0% against 15.0% for the stock model.

IFEval prompt-level strict accuracy, percent
AgentFast65.0%
Stock model15.0%
  • Small tests: the function calling test used 30 samples and the math test used 15 questions, so treat the numbers as rough. The math score was 40.0% against 46.7% for stock.
  • Remote code: the Python sample sets trust_remote_code to True, which runs code from the repository, so read it first.
  • License: Apache 2.0, as the License line says.
  • Cost to run: no API key, account or paid service is named. The author accepts voluntary support on Ko-fi.
  • Data it reaches: the prompts you give it, and Hugging Face for the download.
  • Not for: the card does not recommend it where full reasoning traces matter, and says a corrected fine-tune that keeps them is in preparation.

README and files

README

Spark-X2.6-4B-AgentFast

Calls tools and follows instructions with almost no thinking delay, as a 4.1B fine-tune of Spark-X2.6-4B. Made for people building fast local agents that need quick, direct tool calls.

Made by JamieBradfield on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Spark-X2.6-4B-AgentFast is a 4.1B fine-tune of XHToken/Spark-X2.6-4B, tuned for autonomous tool calling, system operations and following prompts. It skips the long thinking step and goes straight to tool calls and answers. The author describes this as an accident of a template mismatch during training.

Who it suits: It suits developers who build local agents where each tool call must come back fast, and who accept a model that does not deliberate first.

Industry | Who uses it | How they use it | Example
Software | Agent builders | Feed a tool-calling loop that needs structured arguments quickly | A script runner that picks a function and its arguments
Operations | Platform teams | Use a small local model for system tasks with short answers | A helper that turns a request into a tool call
Research | ML researchers | Study the early-exit behavior the card describes | Compare it with the stock Spark-X2.6-4B
AI hobbyists | Local model users | Run a fast small model on modest graphics hardware | Ask quick factual questions with little wait

If you need careful multi-step reasoning, you can skip it, because the card reports a small drop on its math test.

Where to use it:

  • llama.cpp tools, through the quantized GGUF files in the author's separate repository
  • Python with Transformers
  • An OpenAI-compatible server started with llama-server
  • Windows, macOS or Linux, where you download the files with Python
Use case | Who | What they get back
Tool calling | Agent builders | Structured calls with the arguments filled in
Instruction following | Developers | Replies that follow detailed prompts closely
Quick local Q and A | Hobbyists | Direct answers in a few seconds

How to set it up: You need Python with pip. For the llama.cpp route you also need the GGUF file from the author's other repository.

  • Python and pip
  • For Transformers, the torch and transformers packages
  • For llama.cpp, the llama-cli or llama-server program and a GGUF file
  • About 8.2 GB of disk for the BF16 weights, or about 2.1 GB at 4-bit, which is an estimate
  1. Install the Hugging Face client with pip.
  2. Download the repository with the hf command.
  3. Pick a route: Transformers in Python, or llama-cli and llama-server with the GGUF file.
pip install -U huggingface_hub
hf download JamieBradfield/Spark-X2.6-4B-AgentFast

How to use it: Run it in the terminal with llama-cli, serve it as an OpenAI-compatible API with llama-server, or load it in Python. The card sets 99 GPU layers, a 4096-token context and a temperature of 0.2.

llama-cli \
  -m Spark-X2.6-Fable-Step150-IQ3_M.gguf \
  -p "<|start▁of▁sentence|><|User|>List 3 core rules of memory management.<|end▁of▁sentence|><|start▁of▁sentence|><|Bot|>" \
  -n 512 \
  -ngl 99 \
  -c 4096 \
  --temp 0.2 \
  --single-turn
llama-server \
  -m Spark-X2.6-Fable-Step150-IQ3_M.gguf \
  --port 8080 \
  -ngl 99 \
  -c 4096
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "JamieBradfield/Spark-X2.6-4B-AgentFast"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

messages = [{"role": "user", "content": "List 3 core rules of memory management."}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
Tool | What it does
llama-cli | Runs one prompt in the terminal and prints the reply
llama-server | Serves the model as an OpenAI-compatible API on port 8080
AutoModelForCausalLM | Loads the model in Python with Transformers
apply_chat_template | Turns your messages into the format the model expects

Example: You send the prompt asking for 3 core rules of memory management. The model closes its thinking channel at once and answers directly. The card puts this at about 2 to 4 seconds, and about 61 tokens per second on its Vulkan test machine.

For newcomers and experts: Many models think out loud before they answer. This one does not, so replies and tool calls arrive sooner. The first small thing to try is the llama-cli command above with your own question.

The card explains that training targets had empty reasoning channels because of a chat template field mismatch. Over 150 steps the model learned to close the thinking channel at the first token. It kept its core instruction and math skills, with the card claiming a 30 to 40% speedup. The author calls it a case study and is preparing a corrected fine-tune.

Spark-X2.6-4B base
150 steps of fine-tuning with empty reasoning targets
Thinking channel closes at token zero
Direct tool calls and answers

Good to know: Latency: the card reports the average time per tool call and per math problem against the stock model.

Title: Seconds per tool call
AgentFast: 3.11 s
Stock model: 5.13 s

Instruction following: on the card's IFEval run, strict prompt-level accuracy is 65.0% against 15.0% for the stock model.

Title: IFEval prompt-level strict accuracy, percent
AgentFast: 65.0%
Stock model: 15.0%
  • Small tests: the function calling test used 30 samples and the math test used 15 questions, so treat the numbers as rough. The math score was 40.0% against 46.7% for stock.
  • Remote code: the Python sample sets trust_remote_code to True, which runs code from the repository, so read it first.
  • License: Apache 2.0, as the License line says.
  • Cost to run: no API key, account or paid service is named. The author accepts voluntary support on Ko-fi.
  • Data it reaches: the prompts you give it, and Hugging Face for the download.
  • Not for: the card does not recommend it where full reasoning traces matter, and says a corrected fine-tune that keeps them is in preparation.

On Hugging Face, 13 November 2026

  • Task: text generation
  • Parameters: 4.1B
  • Weights: about 8.2 GB in BF16; about 2.1 GB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 552
  • Likes: 4
  • License: apache-2.0
  • Languages: en, zh
  • Based on: XHToken/Spark-X2.6-4B
  • Quantized versions: 3
  • Tags: safetensors, spark2_5, spark, sparkx2_5, agent, tool-calling, on-device, fast-inference, text-generation, conversational

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download JamieBradfield/Spark-X2.6-4B-AgentFast

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  7 KB

1 file, 7 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Spark-X2.6-4B-AgentFast This page55244.1Bapache-2.0
Spark-X2.5-4BShares sparkx2_5 · spark2_5 · agent8,6971,4424.1Bapache-2.0
Spark-X2.6-4BShares sparkx2_5 · spark2_5 · text-generation28,1171,0414.1Bapache-2.0
Spark-X2.6-1.7BShares sparkx2_5 · spark2_5 · text-generation5,095841.7Bapache-2.0
Spark-X2.6-4B-BaseShares sparkx2_5 · spark2_5 · text-generation2,331474.1Bapache-2.0
Spark-X2.6-4B-FP8Shares sparkx2_5 · spark2_5 · text-generation2,048394.1Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Developer

See all in Developer

Lexnet

alpindale · Kit

Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…

New

FLUX.2 Klein LoRA Studio

prithivMLmods · Kit

Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…

New

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New