SAVRN
Search Contact SAVRN

Open-weight model · Text generation

antcoder-fixer-7b

by Deep Das Tornado9991/antcoder-fixer-7b

Engineered by Deep Das • Part of the AntCoder Multi-Agent Coding Suite AntCoder-Fixer-7B is a specialized LoRA adapter fine-tuned on Qwen/Qwen2.5-Coder-7B-Instruct.

Parameters
Context
Weights161.5 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads

Model Card

By Deep Das, published under apache-2.0, revision 8bcf8bf83406.

Engineered by Deep Das • Part of the AntCoder Multi-Agent Coding Suite AntCoder-Fixer-7B is a specialized LoRA adapter fine-tuned on Qwen/Qwen2.5-Coder-7B-Instruct. It solves the single hardest problem in autonomous coding agents: hallucinatory patching and compile loops. Unlike generalist models that attempt to rewrite entire 500-line source files (frequently breaking unrelated functions or losing imports), AntCoder-Fixer acts as a surgical precision tool: 1. It ingests the exact TypeScript compiler diagnostic (e.g. TS2339: Property 'user' does not exist on type 'Session'). 2. It ingests the local 20-line source context window. 3. It emits a minimal, standard Git Unified Diff patch (…

Read Deep Das's full model card

Compiler-Diagnostic-to-Git Unified Diff Patch LoRA
Engineered by Deep Das • Part of the AntCoder Multi-Agent Coding Suite


Overview

AntCoder-Fixer-7B is a specialized LoRA adapter fine-tuned on Qwen/Qwen2.5-Coder-7B-Instruct. It solves the single hardest problem in autonomous coding agents: hallucinatory patching and compile loops.

Unlike generalist models that attempt to rewrite entire 500-line source files (frequently breaking unrelated functions or losing imports), AntCoder-Fixer acts as a surgical precision tool: 1. It ingests the exact TypeScript compiler diagnostic (e.g. TS2339: Property 'user' does not exist on type 'Session'). 2. It ingests the local 20-line source context window. 3. It emits a minimal, standard Git Unified Diff patch (--- a/file.ts\n+++ b/file.ts\n@@ ... @@) that applies cleanly via git apply and resolves the compiler error in a single pass.

100% Ground-Truth Synthetic Methodology

The training dataset for AntCoder-Fixer contains zero hallucinated errors. Every sample was generated using an automated AST mutation and compiler verification pipeline: - Codebases like hono, trpc, and zod were systematically mutated (e.g. Broken Imports, Type Swaps, Missing Awaits, Parameter Mismatches). - Every error was confirmed by the official TypeScript compiler (tsc). - The ground-truth patch was verified by executing git apply followed by re-running tsc until exit code 0 was achieved.


Benchmark Evaluation (Held-Out Test Set)

The model is evaluated against the held-out AntCoder Compiler Diagnostic Benchmark (500 unseen production compiler diagnostics from fixer_test.jsonl).

Evaluation Metrics:

  1. Single-Pass Compiler Fix Rate (tsc Exit 0): Percentage of live compiler diagnostics resolved in a single patch generation pass.
  2. Clean git apply Patch Rate: Strict compliance with Git Unified Diff syntax without syntax artifacts.
  3. Patch Minimality & Surgical Accuracy: Minimizing changed lines to avoid destructive whole-file rewrites.

(Empirical evaluation across the held-out test split is actively running; verified numbers will be published upon completion).


Quickstart with Transformers & PEFT

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model_id = "Qwen/Qwen2.5-Coder-7B-Instruct"
adapter_id = "Tornado9991/antcoder-fixer-7b"

tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
    base_model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# Load ApexCoder Fixer Adapter
model = PeftModel.from_pretrained(base_model, adapter_id)

prompt = """A compiler diagnostic was caught during verification:
File: src/server.ts
Line: 42
Diagnostic: TS2339: Property 'userId' does not exist on type 'RequestSession'. Did you mean 'accountId'?

Source context:
40: export async function handleAuth(req: Request) {
41:   const session = await getSession(req);
42:   return session.userId;
43: }

Generate a minimal git unified diff to fix this error.
"""

messages = [
    {"role": "system", "content": "You are ApexFixer. Generate minimal, syntactically correct git unified diffs that resolve compiler diagnostics."},
    {"role": "user", "content": prompt}
]

inputs = tokenizer(tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True), return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.1)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))

Training Details

  • Base Model: Qwen/Qwen2.5-Coder-7B-Instruct
  • LoRA Rank ($r$): 16, Alpha ($\alpha$): 32
  • Target Modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
  • Dataset: 5,000 AST-mutated, compiler-verified Unified Diff pairs.
  • Context Length: 2,048 tokens.

Citation & Author

Developed by Deep Das as part of the ApexCoder Autonomous Engineering project.

@misc{das2026apexcoderfixer,
  author = {Das, Deep},
  title = {ApexCoder-Fixer: Compiler-Grounded Unified Diff Synthesis for Sub-8B Models},
  year = {2026},
  publisher = {Hugging Face},
  journal = {Hugging Face Model Hub}
}

Identity and Version

Repository
Tornado9991/antcoder-fixer-7b
Publisher
Deep Das
Task
Text generation
Modality
Text
Library
peft
Parameters
Not stated by the source
Languages
en
Revision
8bcf8bf834066c641e7e7c7ec13be15cd06ef0c6
First published
2026-09-18
Last updated
2026-09-18

Files and Weights

7 files, 173.0 MB in total. The weights are 1 file totalling 161.5 MB in safetensors.

Weights1 file · 161.5 MB
Configuration1 file · 1.2 KB
Tokenizer2 files · 11.4 MB
Documentation1 file · 4.7 KB
Other1 file · 2.5 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
adapter_model.safetensorsWeights161.5 MB 7eb21a1ceaea
adapter_config.jsonConfiguration1.2 KB
README.mdDocumentation4.7 KB
chat_template.jinjaOther2.5 KB
.gitattributesRepository1.6 KB
tokenizer.jsonTokenizer11.4 MB 3fd169731d2c
tokenizer_config.jsonTokenizer690 B

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
161.5 MB
Download from Deep Das

Released by Deep Das through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published161.5 MB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About antcoder-fixer-7b

Can I use antcoder-fixer-7b commercially?

Yes. antcoder-fixer-7b is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Fine-tune Qwen3 (14B) for free using our Google Colab notebook! - Read our Blog about Qwen3 support: unsloth.ai/blog/qwen3 - View the rest of our notebooks in our docs here. Qwen3-Coder is available in multiple sizes. Today, we're excited to introduce Qwen3-Coder-30B-A3B-Instruct. This streamlined model maintains impressive performance and efficiency, featuring the following key enhancements: - Significant Performance among open models on Agentic Coding, Agentic Browser-Use, and other foundational coding tasks. - Long-context Capabilities with native support for 256K tokens, extendable up to 1M tokens using Yarn, optimized for repository-scale understanding. - Agentic Coding supporting for…

Open weights apache-2.0 transformers

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp