1.76 GB model · Four coherent circuit paths · 2.06× faster decoding
Leona-Q 1.0 mini brings quantum-inspired tensor compression and learned quantum-circuit interference into a compact language model based on MiniCPM5-2B. MPO correction preserves structure lost during low-bit quantization. A four-path square circuit adds a learned interference-driven residual during inference.
量子inspiredなMPO圧縮と、4経路の量子干渉回路を組み合わせた小型LLM。圧縮したまま回路を推論に使い、独自の直接MPO計算で生成を高速化しています。
The quantum circuits run as classical statevector simulations; no quantum computer is required. This release uses a custom Linux/CUDA runtime.
The circuit can be switched on or off independently of MPO compression.
The following accuracy results evaluate the same Leona-Q 1.0 mini weights and circuit checkpoint using the earlier BF16 reconstruction runtime. They are reference model results; the new direct-MPO runtime has separate numerical validation below and has not yet repeated these task benchmarks.
| Model | Correct / 30 | Accuracy |
|---|---|---|
| Original MiniCPM5-2B | 28 / 30 | 93.33% |
| Leona-Q 1.0 mini (without circuit) | 23 / 30 | 76.67% |
| Leona-Q 1.0 mini | 26 / 30 | 86.67% |
One generated answer per question, thinking enabled, temperature 1, top-p 0.95, no top-k filtering; natural EOS or the 131,072-token context boundary. This is a single-sample comparison, not the official multi-sample leaderboard protocol. Leona-Q 1.0 mini answered three more questions correctly than the version without the circuit in this run.
| Benchmark | Original MiniCPM5-2B | Leona-Q 1.0 mini (without circuit) | Leona-Q 1.0 mini |
|---|---|---|---|
| ARC-Easy | 72.98 | 72.47 | 72.73 |
| ARC-Challenge | 43.86 | 43.94 | 44.11 |
| HellaSwag | 59.67 | 58.60 | 58.89 |
| PIQA | 73.07 | 72.80 | 73.18 |
| WinoGrande | 61.40 | 61.88 | 61.64 |
| BoolQ | 82.42 | 82.51 | 82.39 |
| MMLU | 59.92 | 56.96 | 56.99 |
Scores are percentages. MMLU uses 5-shot evaluation; other tasks use 0-shot. ARC, HellaSwag and PIQA report normalized accuracy; the others report accuracy. These are likelihood-based evaluations, not generated reasoning scores. Small task differences do not establish a statistically robust general improvement. Full protocols and counts are in evaluation details.
| Runtime, square enabled | 256-token context | 8,192-token context |
|---|---|---|
| Previous packed implementation | 29.30 tokens/s | 28.95 tokens/s |
| Optimized direct MPO | 60.32 tokens/s | 58.88 tokens/s |
| Speedup | 2.06× | 2.03× |
Measured on one A100 80 GB, batch 1, 256 forced decode steps and three measured repeats after warm-up; loading and prefill excluded. The speedup is relative to our previous packed runtime. With the circuit disabled, the optimized runtime reaches 62.76 / 61.10 tokens/s. Model files total 1,757,533,838 bytes; sampled process VRAM peaked at 2,852 MiB in these tests.
The optimized runtime passed all 292 numerical comparison steps at KL < 0.02, with top-1 agreement on 290/292 steps. This checks fidelity, not benchmark accuracy or identical free generation. Raw measurements.
Download the repository, install the Python dependencies, and build the pinned CUDA runtime. A100 is the tested platform; other GPU architectures need a compatible build and validation.
python -m pip install huggingface_hub
hf download LeonaQuantum/leonaq-1-mini --local-dir leonaq-1-mini
cd leonaq-1-mini
python -m pip install -r runtime/requirements.txt
python runtime/build.py --cuda-arch 80 --jobs 4
python runtime/generate.py --prompt "Explain quantum interference in simple terms." --max-new-tokens 256
Add --square off to disable the circuit, or --thinking to enable the base model's thinking template. Generation is greedy. Build prerequisites and technical details are in the runtime guide.
Loading format: the three files v8.packed, v8-carrier.gguf, and square.bin work together with the included runtime. The carrier is not a standalone GGUF; stock llama.cpp, Ollama, Transformers AutoModel and WebGPU cannot directly load this release.
Based on openbmb/MiniCPM5-2B, revision f97400052a43d642bbc6e9975e2397e3ae6a6b52. Model artifacts: Apache-2.0. Runtime: MIT. NOTICE · Checksums · Compression layout.
openbmb/MiniCPM5-2B