Repository navigation
Releases
Releases · ZAQERIS/QERLIO
QERLIO Runtime v0.3.1 (Audit Corrections & Full Cleanup)
QERLIO v0.3.1 — Audit Corrections, Honest Registry & Full Cleanup Release
Audit Fixes & Cleanup (F1–F6 & C1–C14)
- Honest
testedRegistry (F1,A5): Applied strict six-part criteria (T-A–T-F) toregistry/model_architectures.json:1tested (seed_36bon officialNousResearch/Hermes-4.3-36B-GGUF,hermes-4_3_36b-Q4_K_M.gguf, size21,762,145,216bytes, SHA-25617823599694fa3503ef54bf748d5078c6ce881f4d01616cafa255dc05d215a08, 320/320 greedy tokens vstransformers 5.20.1),183experimental (qwen35,zaqeris_axiom,zqn_12b, andzaqeris_7bmoved toexperimental;ZAQERIS/ZAQERIS-7Btrained from scratch, only the tokenizer is reused from Qwen2),184total. - Root Apache-2.0
LICENSE& Install Surface (F2,C5,A7): Added officialLICENSE, addedpyproject.tomlandrequirements.txt(version = "0.3.1"), updated CI to install.[dev], and documented installation/build steps inREADME.md. - Honest Local APIs & Telemetry (
C2,C3):/v1/modelsand/api/tagslist loaded models only (returning empty lists when no weights are loaded);core/compression/quant_matrix.pyand/v1/telemetry/hudmark formula outputs explicitly as theoretical (measured=false), and host RAM/CPU figures default tonullunlessQERLIO_EXPOSE_HOST_METRICS=1is set. - Honest Tests & ASan/UBSan Coverage (
F4,F5,A3,A4): Relabeledtests/test_t4_to_t10_engine.pyandtests/test_qwen35_engine.pyexplicitly as synthetic toy-GGUF checks, removed silent toy fallback fromtest_qwen35_engine.py, added opt-intests/test_real_hermes_36b_optin.py(QERLIO_RUN_REAL_HERMES=1), and expandedtests/cpp_safety_test.cppunder CI ASan+UBSan (detect_leaks=1:halt_on_error=1) covering every.cfile incore/inference/. - Docs, Governance, Naming & Links (
C1,C4,C6–C12,C14): Fixed broken relative links indocs/models/HERMES_4_3_36B.md, alignedthird_party/DEPENDENCY_INVENTORY.mdand security/risk docs with the actual tree, addedCODE_OF_CONDUCT.mdand PR/issue templates, updatedCONTRIBUTING.md, standardizedZAQERIS AIandZAQERIS/ZAQERIS-7Bnaming, made.gitignorepure ASCII, documentedv0.2.2as git-tag-only, reinforced inline archive notices across Phase 0/1 docs, and deleted already-merged leftover branches.
Known Limitations
- CPU execution only; CUDA, Metal, and Vulkan GPU backends are not implemented.
qwen35runs on the NumPy path and remainsexperimental; vision encoders, MoE execution, and all other 182 catalogued architectures have no local weight execution.- 36B CPU latency is non-interactive (
2362.87sfor 320 batched tokens;10682.64sfor thethinking=Truerun completed in two deterministic segments from a saved 160-token greedy prefix). Peak RSS memory isnot measured.
Reproduce
pip install -e ".[dev]"
python -m pytest tests/ -v
QERLIO_RUN_REAL_HERMES=1 python -m pytest tests/test_real_hermes_36b_optin.py -v
python scripts/verify_hermes_36b_real.py --model-path models/hermes-4_3_36b-Q4_K_M.gguf --reference-fixture tests/fixtures/hermes_4_3_36b_transformers_reference.jsonQERLIO v0.3.0 — Native GGUF Inference Engine
Correction Notice (Added with Release v0.3.1):
- The
v0.3.0release was merged, tagged, and published prior to management review.- See Release v0.3.1 for the corrected and cleaned release.
- Corrections to
v0.3.0notes:
- The registry count is corrected from
5 testedto1 tested(seed_36b) /183 experimental(184total):qwen35(prior 4-token run used an unofficial UD quant) and ZAQERIS catalog entries (zaqeris_axiom,zqn_12b,zaqeris_7b, lacking official>= 64-token runs) do not meet thetestedcriteria.- Pytest suites
tests/test_t4_to_t10_engine.pyandtests/test_qwen35_engine.pyexecute deterministic synthetic toy fixtures, not real multi-billion-parameter weights.v0.3.0lacked rootLICENSE,pyproject.toml, andCODE_OF_CONDUCT.mdand had uncleaned/v1/modelsstubs and broken relative doc links; resolved inv0.3.1.
QERLIO v0.3.0 — From-Scratch Native GGUF Inference Engine (seed_oss + qwen35)
What's New
- From-Scratch GGUF v2/v3 Loader (
core/inference/gguf_loader.py): Binary GGUF header/metadata/tensor parser, alignment handling, memory-mapped tensor access, row-level dequantized lookup (get_tensor_rows_f32), and corrupt/truncated file rejection. - 16 GGML Dequantization Kernels (
core/inference/dequant.py): Native decoders forF32,F16,BF16,Q4_0,Q4_1,Q5_0,Q5_1,Q8_0,Q2_K,Q3_K,Q4_K,Q5_K,Q6_K,IQ4_NL,IQ3_S, andIQ4_XSverified within< 1e-6absolute error. - Native Byte-Level BPE Tokenizer (
core/inference/tokenizer.py): Reads vocabulary, merges, and special/control tokens directly from GGUF metadata with NFC normalization,seed-coder/qwen35/gpt2pre-tokenization, and exact encode/decode round-trip. SeedOssForCausalLM&Qwen35ForCausalLMNative Engines (core/inference/seed_oss_model.py,core/inference/qwen35_model.py): From-scratch execution for Hermes 4.3 36B (seed_oss: RMSNorm, half-split RoPE, GQA with QKV biases,post_attention_norm, SwiGLU MLP, dynamic GGUF config) and hybrid Qwen3.5/Qwen3.8 (qwen35: Gated DeltaNet + Gated Full-Attention +Qwen35HybridCache), with KV cache, sampling, stop sequences, and cancellation.- From-Scratch C11 SIMD Quantized GEMM & Streaming (
include/qerlio/native_gemm.h,core/inference/native_gemm.c,core/inference/native_gemm.py): AVX2+FMA+F16C kernels with portable scalar fallback forQ4_K,Q6_K,Q8_0, andF32, double-buffered sequential streaming (SequentialTensorStreamer), and batchedSeedOssEngine.forward_batch(). - Live Local API Gateway & CLI (
server/local_api/server.py,tools/qerlio_cli.py):/v1/models/load,/v1/models/unload,/v1/chat/completions,/v1/messages, andqerlio hermes chat --model-pathrunning the native engine with"simulated": falsewhen a GGUF model is loaded.
Verified Results (NousResearch/Hermes-4.3-36B-GGUF)
Verified on the official models/hermes-4_3_36b-Q4_K_M.gguf checkpoint (21,762,145,216 bytes, SHA-256 17823599694fa3503ef54bf748d5078c6ce881f4d01616cafa255dc05d215a08):
- T1–T3 (Loader / Dequant / Tokenizer): 27 KVs and 771 tensors matched
tests/fixtures/hermes_4_3_36b_q4_k_m_metadata.json; 21gguf-py 0.19.0dequant cases matched (max_abs_err=0.00e+00); 64/64 tokenizer cases matchedtokenizers 0.23.3with exact round-trip. - T4 & T5 (Logits & 64-Token Greedy vs
transformers 5.20.1): Batched prefill in47.87s; top-1 matched on 5/5 prompts, top-5 overlap 5/5, max top-20 logit diff2.10e-05, and320/320greedy tokens matched identically (2362.87s). Single-pass C GEMM latency on'The capital of France is':50.75s(vs419.43sNumPy-only path). - T6 (KV Cache Parity): Cached vs uncached recomputation matched with
max_abs_diff=7.58e-05and identical top-1 token (1371). - T7–T9 (Chat, Thinking, Tools & Robustness): Two-turn chat (
'The capital of France is Paris.','The Seine River flows through Paris.'),thinking=Trueclosed</think>with answer4andkeep_cotsverification, model-generated<tool_call>mapped to OpenAItool_callsand Anthropictool_use, plus context-overflow, KV budget, stop-sequence, and cancellation guards (active_sessions=0). - T10 & Automated Suite: All
184pytest tests pass (0failed,0skipped), and C++20 builds (ubuntu,windows,macos) +AddressSanitizer/UndefinedBehaviorSanitizer(includingcore/inference/native_gemm.candtests/cpp_safety_test.cpp) pass in GitHub Actions CI.
Runtime Dependencies
core/inference/: Python standard library + NumPy + optional from-scratch C11 shared library (native_gemm.c, C standard library only). Zerotorch,transformers,tokenizers,gguf,llama_cpp,vllm,sglang,onnxruntime, orpsutilruntime dependencies insidecore/inference/.- Offline reference generators live strictly under
tests/reference/.
Known Limitations
- CPU execution only; CUDA/Metal/Vulkan GPU acceleration is not implemented.
qwen35still runs on the NumPy path (610.40srecorded onQwen3.8-27B-UD-Q4_K_M.gguf); vision encoders and MoE architectures are not implemented.- 36B CPU inference latency is non-interactive (
2362.87sfor the 320-token batched run; hours for the full thinking run); peak memory was not measured. - The
thinking=Truegreedy verification output was completed in two deterministic segments from an exact saved 160-token prefix.
Reproduce
python -m pytest
python tools/qerlio_cli.py hermes download --quant Q4_K_M --output-dir models
python scripts/verify_hermes_36b_real.py --model-path models/hermes-4_3_36b-Q4_K_M.gguf --reference-fixture tests/fixtures/hermes_4_3_36b_transformers_reference.jsonQERLIO v0.2.1
182 supported architectures: 3 tested end-to-end (AXIOM, ZQN-12B, ZAQERIS-7B) and 179 experimental (implemented in the runtime, not yet fully validated). Unmeasured performance numbers were removed; telemetry now shows "no live measurement" until a real run is recorded. Open, local-first, made in Egypt.
QERLIO v0.2.0: 200 Model Architectures & Sandboxed Agent Mode
QERLIO Runtime v0.2.0 Release
Key Highlights
- 200 Validated Model Architectures: Full registry in
egistry/model_architectures.json covering 10 major families: ZAQERIS Native, Dense Transformers, Mixture of Experts, Reasoning & Dialectic, Code Specialists, State Space Models (Mamba/SSM), Vision-Language (VLM), Embeddings & Rerankers, Speech & Audio, and Edge/Micro LLMs. - Sandboxed Agent Mode: Multi-turn ReAct execution loop supporting native tool-calling schemas for ZAQERIS-7B (<tool_call>), ZQN-12B (<call name=... args=.../>), and OpenAI/Anthropic schemas.
- Built-in Safe Tools: AST-verified Calculator, Isolated Python Evaluator, Workspace-bounded File Search, and Synthetic Web Search.
- Universal Multi-API Gateway: Updated OpenAI (/v1/chat/completions), Anthropic (/v1/messages), and Ollama (/api/generate, /api/chat) endpoints with native function/tool calling support.
- Interactive Developer HUD: Live Architecture Explorer and Agent Studio served on \http://127.0.0.1:8787\.
- 43 Automated Tests: 100% test pass rate across all modules.
v0.1.0 — Initial Public Release
QERLIO Runtime v0.1.0 — Initial Public Release
Highlights:
- Universal Multi-Protocol API Gateway: Drop-in compatibility with OpenAI, Anthropic Claude, and Ollama APIs.
- Adaptive Thermal & Power Scheduler: Real-time throttling to protect battery health and prevent overheating.
- Pre-flight Memory Planner: Context budgeting with automated down-stepping to prevent OOM terminations.
- Sink-Aware KV Cache Pruner: Enables 16k-32k context on constrained devices with up to 87.5% memory savings.
- Universal Quantization Matrix: Support for 28 compression schemes across GGUF, k-quants, i-quants (sub-3bit), ZAQERIS RVQ (M3-GPTQ), and FP8.
- Developer Telemetry HUD: Dark-mode real-time dashboard served directly at http://localhost:8787.
- 100% Automated Test Coverage: 29 of 29 tests passing.