Published June 5, 2026 | Version v1

Bragi-LLM: An 805 MB Hybrid Code-Generation System Reaches 92% MBPP via LLM-Symbolic Engine Routing

Authors/Creators

  • 1. Independent Researcher, Taiwan

Description

Bragi-LLM is a sub-gigabyte (805 MB total) Python code-generation system that reaches 92% pass rate on the MBPP test split under 100-problem sustained evaluation (single-shot, greedy decoding, no retry).

It places within 2 absolute points of Qwen2.5-Coder-7B fp16 (94%, 14 GB, 17x the footprint), and 27 absolute points above the same 1.5B-Q3 backbone evaluated standalone (65%).

The system combines (i) a 786 MB Q3_K_M quantised Qwen2.5-Coder-1.5B-Instruct backbone with imatrix calibration, (ii) a 15 KB hand-engineered symbolic engine library of 50 unit-tested helpers covering rare formulas, and (iii) a 6 KB keyword-based intercept router that detects formula-class problems and routes them directly to the engine library, bypassing the LLM.

The dominant failure mode of the small backbone is rare-formula recall under quantisation noise, not reasoning capacity. Externalising this knowledge into a static library, then routing matched problems around the LLM, recovers the capability gap at near-zero deployment cost. The full stack runs on commodity CPU hardware with no API dependency and no recurring fees.

All artefacts under MIT License: Bragi-LLM (backbone + library + router + harness), Demeter-CodeBuilder (integration with the Code Tree IDE).

Notes (English)

© Copyright 2026 Chen, Ho Yiing (ORCID: 0009-0006-6816-9891), Independent researcher, charenix.com. All rights reserved by the author. This work is licensed under the Creative Commons Attribution 4.0 International License.

Files

CITATIONS_VERIFIED.md

Files (75.6 kB)

Name Size
md5:4ddeb0ae469a70f5fc621e97cc733a73
1.5 kB Preview Download
md5:b5edcc7daaaf6d4c8cb18b39aa83b2fb
74.1 kB Preview Download

Additional details