Full-parameter SFT (distillation from 170K samples)
Max Sequence Length
16,384 tokens
License
MIT
About LocoOperator-4B
LocoOperator-4B is a 4B-parameter tool-calling agent model trained via knowledge distillation from Qwen3-Coder-Next inference traces. It specializes in multi-turn codebase exploration — reading files, searching code, and navigating project structures within a Claude Code-style agent loop.
Key Features
Tool-Calling Agent
: Generates structured
<tool_call>
JSON for Read, Grep, Glob, Bash, Write, Edit, and Task (subagent delegation)
100% JSON Validity
: Every tool call is valid JSON with all required arguments — outperforming the teacher model (87.6%)
Multi-Turn
: Handles conversation depths of 3–33 messages with consistent tool-calling behavior
Performance
Metric
Score
Tool Call Presence Alignment
100%
(65/65)
First Tool Type Match
65.6%
(40/61)
JSON Validity
100%
(76/76)
Argument Syntax Correctness
100%
(76/76)
Usage with MLX
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("DJLougen/LocoOperator-4B-MLX-4bit")
messages = [
{
"role": "system",
"content": "You are a read-only codebase search specialist."
},
{
"role": "user",
"content": "Analyze the project structure at /workspace/myproject and explain the architecture."
}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
response = generate(model, tokenizer, prompt=prompt, max_tokens=512)
print(response)
LocoOperator-4B-MLX-4bit huggingface.co is an AI model on huggingface.co that provides LocoOperator-4B-MLX-4bit's model effect (), which can be used instantly with this DJLougen LocoOperator-4B-MLX-4bit model. huggingface.co supports a free trial of the LocoOperator-4B-MLX-4bit model, and also provides paid use of the LocoOperator-4B-MLX-4bit. Support call LocoOperator-4B-MLX-4bit model through api, including Node.js, Python, http.
LocoOperator-4B-MLX-4bit huggingface.co is an online trial and call api platform, which integrates LocoOperator-4B-MLX-4bit's modeling effects, including api services, and provides a free online trial of LocoOperator-4B-MLX-4bit, you can try LocoOperator-4B-MLX-4bit online for free by clicking the link below.
DJLougen LocoOperator-4B-MLX-4bit online free url in huggingface.co:
LocoOperator-4B-MLX-4bit is an open source model from GitHub that offers a free installation service, and any user can find LocoOperator-4B-MLX-4bit on GitHub to install. At the same time, huggingface.co provides the effect of LocoOperator-4B-MLX-4bit install, users can directly use LocoOperator-4B-MLX-4bit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
LocoOperator-4B-MLX-4bit install url in huggingface.co: