CoolFace
Modelpublic

rk500/Born-9B-Qwen3.5-9B-Preview

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
0likes7downloads
Model Card

Born-9B Qwen3.5-9B Preview

Born-9B Preview is a PEFT LoRA adapter for Qwen/Qwen3.5-9B. It is trained for coding-agent behavior: concise planning, concrete code or patches, explicit checks, and a final user-facing result.

This release is the promoted Born-9B v2 adapter. Later recovery, hotfix, and preview-recovery experiments are documented in the project repo, but they are not promoted because they did not beat this adapter on the same local held-out gate.

Release Artifact

  • Hugging Face model ID: rk500/Born-9B-Qwen3.5-9B-Preview
  • Adapter type: PEFT LoRA adapter, not a merged full model.
  • Base model: Qwen/Qwen3.5-9B
  • Local project artifact: checkpoints/born-9b-v2-generated-expanded-lora
  • Training route: continuation from checkpoints/born-9b-v1-teichai-quick-lora, not a fresh adapter from base.
  • Intended use: coding-agent SFT behavior, repository repair planning, data-science debugging, tool-use closure, and explicit verification steps.
  • Not intended as: an official SWE-bench leaderboard claim, a general chatbot replacement, or a raw hidden chain-of-thought model.

Response Contract

Born-9B Preview was trained toward this visible response shape:

text
Plan:
- short concrete plan

Patch or Code:
<code, patch, commands, or exact action payload>

Checks:
- exact tests/checks to run

Result:
brief final user-facing result

The training target excludes raw hidden reasoning tags. Rows containing <think>, <thinking>, <reasoning>, or similar hidden-trace markers were filtered or sanitized before inclusion. The desired behavior is compact visible rationale: state invariants and decision rules, then produce the implementation and checks.

What Was Trained

The promoted v2 package is born9b_v2_generated_expanded.

Final mix report:

  • Total validated SFT rows: 7,097
  • Train / validation split: 6,672 / 425
  • Estimated tokens: 9.11M
  • Validation rejects: 0
  • Hidden tag rows in final validation: 0
  • Targeted curriculum rows: 85
  • Eval-derived DPO pairs available for analysis: 14
  • Duplicate prompts removed during v2 merge: 1,438
  • Max sequence length used for training: 4096

The v2 run intentionally mixed benchmark-style coding tasks, repair tasks, agent/tool traces, high-quality reasoning final answers, and a limited Irish-language supplement. The goal was not to maximize generic text volume; it was to push the model toward closure on coding-agent tasks.

Dataset Sources Used

The table below lists the sources recorded in the final v2 mix report. Row counts are the rows that survived into the v2 generated-expanded SFT mix after import, normalization, and deduplication.

Source keyRowsPurpose
bigcodebench845BigCodeBench-style code generation and library/tool-use coverage.
ds1000724Data-science and notebook-style debugging tasks.
mbppplus355MBPP+ style exact-function programming tasks.
swebench_verified312SWE-style issue resolution prompts and repair planning.
born9b_coding_workshop_openrouter326Synthetic coding-workshop rows from OpenRouter teacher lanes.
born9b_coding_workshop_openrouter_qwen_fallback234OpenRouter fallback synthetic rows for coding closure.
humanevalplus154HumanEval+ style exact-code tasks.
claw_eval_general140Agentic task-planning examples inspired by Claw-style evaluation.
claw_eval_multiturn24Multi-turn agentic planning rows.
repoexec173Repository-context execution and repair rows.
born9b_bigcodebench_self_seed30Locally generated BigCodeBench-style self-seed rows.
self_seed_expanded170Local deterministic coding and repair templates.
self_seed24Early local proof rows.
mbpp1Legacy MBPP-style seed row.
swebench_lite2Early SWE-style seed rows.
claw_eval2Early Claw-style seed rows.
born9b_coding_workshop_crof179CrofAI-generated coding workshop rows.
born9b_v2_crof_kimi_eval_expansion41Kimi K2.6 eval-expansion rows.
born9b_v2_crof_greg_eval_expansion12Crof greg eval-expansion rows.
born9b_v2_openrouter_eval_expansion6Small OpenRouter eval-expansion rows.
born9b_visible_thinking_style_openrouter405Visible decision-rule and closure style rows.
born9b_irish_synthetic_openrouter1,339Irish-language synthetic rows for secondary language coverage.
teichai_claude45_opus_high_reasoning249Sanitized TeichAI Claude 4.5 Opus high-reasoning final answers.
claude_opus_reasoning204Sanitized Claude Opus 4.6/4.7 reasoning final answers.
opus46_reasoning_filtered198Filtered Opus 4.6 reasoning final answers.
tachibana4_deepseek_v4_pro258DeepSeek V4 Pro agentic/coding seed data.
hermes_agent_kimi159Hermes/Kimi agent traces converted to visible action-result supervision.
hermes_agent_filtered57Filtered Hermes agent traces.
hermes_agent_glm5167Hermes/GLM-5.1 agent traces.
codex_thinking201CodeX-2M-Thinking coding-reasoning rows after sanitization.
deepseek_v4_distill80DeepSeek V4 distillation rows after hidden-tag removal.
agenttrove_code1Open-thoughts AgentTrove code/tool sample.
qwen_webworld30Qwen WebWorldData small web-agent/world-model sample.
codex_swebenchpro10Codex SWE-bench Pro trace sample after review and formatting.
born9b_v2_eval_curriculum85Targeted v2 curriculum rows derived from known local eval failure modes.

External Dataset Names

The imported Hugging Face sources documented for the v1/v2 build include:

  • angrygiraffe/claude-opus-4.6-4.7-reasoning-8.7k
  • nohurry/Opus-4.6-Reasoning-3000x-filtered
  • sequelbox/Tachibana4-DeepSeek-V4-Pro
  • lambda/hermes-agent-reasoning-traces
  • Modotte/CodeX-2M-Thinking
  • Jackrong/DeepSeek-V4-Distill-8000x
  • DJLougen/hermes-agent-traces-filtered
  • open-thoughts/AgentTrove
  • Qwen/WebWorldData
  • Inferact/codex_swebenchpro_traces
  • TeichAI/claude-4.5-opus-high-reasoning-250x

These datasets were not imported as raw hidden chain-of-thought. The importer kept final answers, observable actions, code, patches, checks, and results. Rows were normalized into the Born response contract where possible.

Teacher And Synthetic Generation Sources

Teacher-generated and synthetic rows were produced across several provider lanes. The recorded teacher pool includes:

  • CrofAI: kimi-k2.6, mimo-v2.5-pro, deepseek-v4-pro, and attempted greg lanes.
  • OpenRouter: inclusionai/ring-2.6-1t, deepseek/deepseek-v4-flash, deepseek/deepseek-v4-pro, openrouter/owl-alpha, qwen/qwen3.6-plus, minimax variants, Arcee Trinity, Gemma, and Qwen thinking variants where available during the run.
  • Local/self generation: deterministic BigCodeBench-style rows, exact-code closure rows, data-science repair rows, agentic closure rows, and tool-use closure rows.

Provider rows were filtered for the expected section markers, minimum response quality, duplicate prompts, and hidden-tag leakage. Some generated lanes were rejected or stopped when schema compliance was poor.

Task Mix

Final v2 row counts by task kind:

Task kindRows
codegen_tooluse890
codegen_data_science725
codegen_exact525
code_repair380
agent_trace284
agentic_code_reasoning_sft258
irish_language_instruction278
irish_language_dialogue223
agent_plan207
claude_reasoning_sft204
code_reasoning_sft201
opus46_filtered_reasoning_sft198
repoexec_context173
irish_language_grammar206
irish_language_translation190
irish_language_culture173
irish_language_public_service172
data_science_debug137
test_design138
repo_agent_workflow120
library_tooluse114
exact_algorithm108
refactor_minimal_patch104
reasoning_sft80
exact_algorithm_with_proof_sketch72
long_context_refactor67
api_integration_debug57
api_integration_incident57
agentic_tool_plan50
repo_repair_invariants49
bigcodebench_self_seed30
web_agent_world_model30
agent_plan_multiturn25
v2_exact_python_closure25
failing_test_to_patch24
test_selection_and_minimal_fix24
v2_data_science_repair20
v2_agentic_closure20
v2_tooluse_closure20
codex_swe_agent_trace10

Minor legacy task kinds with one or two rows are retained in the project reports but are not a meaningful part of the final behavior.

Training Configuration

Born-9B Preview v2 was trained with QLoRA SFT:

  • Model: Qwen/Qwen3.5-9B
  • Starting adapter: checkpoints/born-9b-v1-teichai-quick-lora
  • Output adapter: checkpoints/born-9b-v2-generated-expanded-lora
  • Quantization: 4-bit NF4
  • Torch dtype: bfloat16
  • Max sequence length: 4096
  • LoRA rank: 32
  • LoRA alpha: 64
  • LoRA dropout: 0.05
  • Target modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
  • Epochs: 0.45
  • Optimizer steps: 188
  • Learning rate: 1.2e-5
  • Scheduler: cosine
  • Warmup ratio: 0.04
  • Effective batch size: 16
  • Weight decay: 0.01
  • Max grad norm: 0.3
  • Eval every 75 optimizer steps
  • Training GPU: NVIDIA A40 on RunPod

Final training telemetry:

  • Final train loss: 0.5978
  • Final eval loss: 0.7479
  • Final mean token accuracy: 0.8087
  • Final epoch: 0.4508
  • Completed steps: 188 / 188

Evaluation Snapshot

Fixed Local Born Self Eval

This is a project-local 25-task gate covering exact Python, repair, data science, agentic planning, and tool-use. It is not a public leaderboard.

ModelWeighted scorePassedExact PythonRepairData ScienceAgenticTool Use
Qwen/Qwen3.5-9B base0.851122 / 250.40000.95260.97960.97580.9475
Born-9B v1 TeichAI0.896622 / 250.80000.98110.89800.90640.8976
Born-9B Preview v20.924423 / 250.80001.00000.97450.97000.8776

The v2 release is promoted because it beats the base model and all later local recovery attempts on this same weighted gate.

SWE-bench Verified Proxy Sample

This is a 25-task issue-resolution proxy sample derived from SWE-bench Verified. It is not the official SWE-bench Docker harness.

ModelScorePassed
Qwen/Qwen3.5-9B base0.756119 / 25
Born-9B Preview v2 initial run0.855922 / 25
Born-9B Preview v2 fresh A40 rerun0.911723 / 25

HumanEval And MBPP Executable Slice

This is a fresh post-release A40 run over the first 25 local HumanEval rows and first 25 local MBPP rows. It executes Python assertions. It is still a small slice, not the full HumanEval/MBPP benchmark.

ModelHumanEvalMBPPCombined
Qwen/Qwen3.5-9B base0.84, 21 / 250.68, 17 / 250.76, 38 / 50
Born-9B Preview v20.68, 17 / 250.76, 19 / 250.72, 36 / 50

This is an honest regression on the combined exact-code slice: Born improves the MBPP sample but loses more on HumanEval. Treat exact-code improvement as future work, not a preview claim.

Later Attempts Not Promoted

CandidateResultDecision
Born-9B v2-recovery0.9119, 24 / 25Preserved, not promoted because weighted score is below v2.
Born-9B preview recovery0.8703 partial, 19 / 22Trained cleanly but could not beat v2; not promoted.
v2.2 / v2.3 hotfixesTargeted exact-code smoke stayed failedRejected.
v4 DPO recovery0.8291, 18 / 25Rejected.

Known Limitations

  • This is a LoRA adapter, so users need the Qwen/Qwen3.5-9B base model at inference time.
  • Evaluation is local and project-specific unless otherwise stated.
  • The SWE-bench result is a proxy sample, not the official Docker-based SWE-bench score.
  • The fresh HumanEval/MBPP executable slice trails base Qwen overall, so Born-9B Preview should not be marketed as a general exact-code benchmark win.
  • Tool-use score remains below base Qwen on the local suite, even though the total weighted score improves.
  • One known exact-code weakness in v2 is chunking strings as string slices instead of lists of characters.
  • Some public benchmark-style rows contributed to training-family coverage, so do not interpret training-adjacent probes as clean leaderboard evidence.
  • The model is optimized for coding-agent closure, not broad open-domain chat.

Loading

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

base_id = "Qwen/Qwen3.5-9B"
adapter_id = "rk500/Born-9B-Qwen3.5-9B-Preview"

tok = AutoTokenizer.from_pretrained(base_id, use_fast=True)
if tok.pad_token is None:
    tok.pad_token = tok.eos_token

quant = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,
    bnb_4bit_use_double_quant=True,
)

base = AutoModelForCausalLM.from_pretrained(
    base_id,
    device_map="auto",
    torch_dtype=torch.bfloat16,
    quantization_config=quant,
)
model = PeftModel.from_pretrained(base, adapter_id)
model.eval()

Example generation:

python
messages = [
    {
        "role": "system",
        "content": (
            "You are Born-9B, a coding agent. Answer with Plan, Patch or Code, "
            "Checks, and Result. Be concise and complete."
        ),
    },
    {"role": "user", "content": "Fix this Python function and include tests: ..."},
]

text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(text, return_tensors="pt").to(model.device)

with torch.no_grad():
    out = model.generate(
        **inputs,
        max_new_tokens=900,
        do_sample=False,
        pad_token_id=tok.eos_token_id,
    )

print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Suggested Inference Prompt

text
You are Born-9B, a coding agent.
Answer with:
Plan:
- short concrete plan

Patch or Code:
the code, patch, or exact actions

Checks:
- exact tests/checks

Result:
final user-facing result

Do not expose hidden chain-of-thought. Be concise and complete.

Provenance Files In Project Repo

Key local files used to build and verify this release:

  • configs/distill-v2-generated-expanded.yaml
  • configs/lora-v2-eval-expanded.yaml
  • reports/born9b_v2_generated_expanded_mix_report.json
  • reports/born9b_v2_generated_expanded_validation.json
  • reports/born9b_v2_generated_local_born_self_25_report_corrected_2026_05_16.json
  • reports/qwen35_base_local_born_self_25_report_corrected_2026_05_16.json
  • reports/born9b_v2_swebench_verified_proxy_25_report.json
  • reports/qwen35_base_swebench_verified_proxy_25_report.json
  • docs/born-9b-v2-generation-log-2026-05-15.md
  • docs/born-9b-v2-runpod-training-status-2026-05-15.md
  • docs/hf-reasoning-agent-datasets-2026-05-14.md
  • docs/born-9b-preview-crof-recovery-2026-05-17.md

License

This adapter is released under Apache-2.0. The Qwen/Qwen3.5-9B model page lists Apache-2.0 at release time; users must comply with the base model license and with the licenses of any datasets they separately use for further training.

Citation

If you reference this preview artifact, cite it as:

bibtex
@misc{born9b_qwen35_preview_2026,
  title        = {Born-9B Qwen3.5-9B Preview},
  author       = {LeemerLabs / Repath Khan},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/rk500/Born-9B-Qwen3.5-9B-Preview}},
  note         = {PEFT LoRA adapter for Qwen/Qwen3.5-9B}
}