MLX
Safetensors
GGUF
English
qwen2.5
qwen2.5-coder
code
cli
debugging
developer-tools
lora
ollama
conversational
Instructions to use erdemozkan/YOLO-Coder-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use erdemozkan/YOLO-Coder-8B with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir YOLO-Coder-8B erdemozkan/YOLO-Coder-8B
- llama-cpp-python
How to use erdemozkan/YOLO-Coder-8B with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="erdemozkan/YOLO-Coder-8B", filename="YOLO-7B-Qwen-finetuned.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use erdemozkan/YOLO-Coder-8B with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf erdemozkan/YOLO-Coder-8B:Q4_K_M # Run inference directly in the terminal: llama-cli -hf erdemozkan/YOLO-Coder-8B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf erdemozkan/YOLO-Coder-8B:Q4_K_M # Run inference directly in the terminal: llama-cli -hf erdemozkan/YOLO-Coder-8B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf erdemozkan/YOLO-Coder-8B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf erdemozkan/YOLO-Coder-8B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf erdemozkan/YOLO-Coder-8B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf erdemozkan/YOLO-Coder-8B:Q4_K_M
Use Docker
docker model run hf.co/erdemozkan/YOLO-Coder-8B:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use erdemozkan/YOLO-Coder-8B with Ollama:
ollama run hf.co/erdemozkan/YOLO-Coder-8B:Q4_K_M
- Unsloth Studio new
How to use erdemozkan/YOLO-Coder-8B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for erdemozkan/YOLO-Coder-8B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for erdemozkan/YOLO-Coder-8B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for erdemozkan/YOLO-Coder-8B to start chatting
- Pi new
How to use erdemozkan/YOLO-Coder-8B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "erdemozkan/YOLO-Coder-8B"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "erdemozkan/YOLO-Coder-8B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use erdemozkan/YOLO-Coder-8B 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 "erdemozkan/YOLO-Coder-8B"
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 erdemozkan/YOLO-Coder-8B
Run Hermes
hermes
- Docker Model Runner
How to use erdemozkan/YOLO-Coder-8B with Docker Model Runner:
docker model run hf.co/erdemozkan/YOLO-Coder-8B:Q4_K_M
- Lemonade
How to use erdemozkan/YOLO-Coder-8B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull erdemozkan/YOLO-Coder-8B:Q4_K_M
Run and chat with the model
lemonade run user.YOLO-Coder-8B-Q4_K_M
List all available models
lemonade list
| language: | |
| - en | |
| license: mit | |
| base_model: Qwen/Qwen2.5-Coder-7B-Instruct | |
| tags: | |
| - qwen2.5 | |
| - qwen2.5-coder | |
| - code | |
| - cli | |
| - debugging | |
| - developer-tools | |
| - lora | |
| - mlx | |
| - gguf | |
| - ollama | |
| model-index: | |
| - name: YOLO-Coder-8B | |
| results: [] | |
| <div align="center"> | |
| <img src="yolo_coder_cropped.png" alt="YOLO-Coder" width="240" /> | |
| [Website](https://yolocoderai.com) | [GitHub](https://github.com/erdemozkan/YOLO-CODER) | [Twitter](https://twitter.com/erdemwrites) | [Dataset](https://github.com/erdemozkan/YOLO-CODER/tree/main/benchmark) | [YOLO-Coder-1.5B](https://huggingface.co/erdemozkan/YOLO-Coder-1.5B) | |
| **License: [MIT](https://opensource.org/licenses/MIT)** | **Author: [@erdemwrites](https://twitter.com/erdemwrites)** | |
| </div> | |
| # YOLO-Coder-8B | |
| **Fix broken CLI commands. One command output. Runs 100% locally.** | |
| *Fine-tuned Qwen2.5-Coder-7B Β· MLX LoRA on Apple Silicon Β· No API key needed* | |
| | | | | |
| |---|---| | |
| | π― **Task** | CLI error β single bare bash fix command | | |
| | π **Accuracy** | **77.1%** pipelineΓ3 Β· **59.2%** raw LLM (beats GPT-4o) | | |
| | πΎ **Size** | ~4.4GB Q4_K_M GGUF Β· ~6GB RAM | | |
| | β‘ **Speed** | 1β3s on Apple Silicon | | |
| | π **Privacy** | 100% local Β· no API key Β· no telemetry | | |
| ## Quickstart | |
| ```bash | |
| ollama run hf.co/erdemozkan/YOLO-Coder-8B "ModuleNotFoundError: No module named 'flask'" | |
| # β pip install flask | |
| ``` | |
| That's it. No account. No cloud. No cost per call. | |
| ## Benchmark β YOLO-Bench | |
| 218 verified CLI errors Β· structural match scoring (flag-order-independent) | |
| ``` | |
| YOLO-Coder-8B pipelineΓ3 ββββββββββββββββββββ 77.1% β best overall | |
| YOLO-Coder-1.5B pipelineΓ3 ββββββββββββββββββ 71.1% | |
| Claude Sonnet raw ββββββββββββββββ 60.1% | |
| YOLO-Coder-8B raw βββββββββββββββ 59.2% β best offline | |
| GPT-4o raw ββββββββββββ 48.6% | |
| YOLO-Coder-1.5B raw ββββββββββ 42.2% | |
| ``` | |
| | Mode | Structural Match | | |
| |---|---| | |
| | Raw LLM (no pipeline) | **59.2%** | | |
| | Pipeline Γ 1 (interceptors + LLM) | **72.0%** | | |
| | Pipeline Γ 3 (interceptors + memory + 3 LLM attempts) | **77.1%** | | |
| > YOLO-Coder-8B pipelineΓ3 is the highest score of any model tested β including GPT-4o and Claude Sonnet β running entirely offline. | |
| Scoring code and dataset: [github.com/erdemozkan/YOLO-CODER/tree/main/benchmark](https://github.com/erdemozkan/YOLO-CODER/tree/main/benchmark) | |
| ## How the pipeline works | |
| ``` | |
| Your error β [91 interceptors <1ms] β [fix memory <5ms] β [LLM 1-3s] β Fix | |
| β ~50% of fixes stop here | |
| ``` | |
| Half of all fixes never reach the LLM. The model is the safety net, not the first guess. | |
| ## Usage with YOLO-CODER | |
| ```bash | |
| pip install yolo-coder | |
| yoco python3 myapp.py # 8B is the default | |
| yoco npm run dev | |
| yoco --model hf.co/erdemozkan/YOLO-Coder-8B python3 myapp.py | |
| ``` | |
| ## Prompt format (ChatML) | |
| ``` | |
| <|im_start|>system | |
| You are a CLI repair tool. Output ONLY a single bare bash command to fix the error. No explanation. No markdown. No backticks.<|im_end|> | |
| <|im_start|>user | |
| [Linux] $ python3 myapp.py | |
| Error: | |
| ModuleNotFoundError: No module named 'requests' | |
| FIX:<|im_end|> | |
| <|im_start|>assistant | |
| pip install requests<|im_end|> | |
| ``` | |
| ## Training | |
| > "Trained on a MacBook Air. No rented A100s." | |
| | Property | Value | | |
| |---|---| | |
| | Base model | `Qwen/Qwen2.5-Coder-7B-Instruct` | | |
| | Fine-tune method | LoRA via MLX on Apple Silicon | | |
| | LoRA rank / scale | 8 / 20.0 | | |
| | Layers trained | 28 | | |
| | Training iterations | 500 | | |
| | Learning rate | 1e-5 | | |
| | Training examples | **6,719** error/fix pairs across 15 categories | | |
| | Export | Merged weights β Q4_K_M GGUF for Ollama | | |
| ## Files | |
| | File | Description | | |
| |---|---| | |
| | `YOLO-Coder-8B-Q4_K_M.gguf` | Q4_K_M quantized GGUF (~4.4GB) β use this with Ollama | | |
| | `safetensors/` | fp16 safetensors β for further fine-tuning | | |
| ## 1.5B vs 8B | |
| | | [YOLO-Coder-1.5B](https://huggingface.co/erdemozkan/YOLO-Coder-1.5B) | YOLO-Coder-8B | | |
| |---|---|---| | |
| | Size | ~941MB | ~4.4GB | | |
| | RAM needed | ~2GB | ~6GB | | |
| | Speed | <1s on Apple Silicon | 1β3s on Apple Silicon | | |
| | Raw accuracy | 42.2% | 59.2% | | |
| | PipelineΓ3 accuracy | 71.1% | **77.1%** | | |
| | Best for | Speed, low-RAM machines | Hard errors, best accuracy | | |
| ## Limitations | |
| - Single-command output only β not designed for multi-step fixes without a wrapper | |
| - Complex or highly novel errors may produce suboptimal output | |
| - Not a general-purpose coding assistant | |
| ## License | |
| MIT | |