Skip to content

Releases

QERLIO Runtime v0.3.1 (Audit Corrections & Full Cleanup)

Choose a tag to compare

@ZAQERIS ZAQERIS released this 24 Nov 21:50
9f6d27e

QERLIO v0.3.1 — Audit Corrections, Honest Registry & Full Cleanup Release

Audit Fixes & Cleanup (F1–F6 & C1–C14)

  • Honest tested Registry (F1, A5): Applied strict six-part criteria (T-A–T-F) to registry/model_architectures.json: 1 tested (seed_36b on official NousResearch/Hermes-4.3-36B-GGUF, hermes-4_3_36b-Q4_K_M.gguf, size 21,762,145,216 bytes, SHA-256 17823599694fa3503ef54bf748d5078c6ce881f4d01616cafa255dc05d215a08, 320/320 greedy tokens vs transformers 5.20.1), 183 experimental (qwen35, zaqeris_axiom, zqn_12b, and zaqeris_7b moved to experimental; ZAQERIS/ZAQERIS-7B trained from scratch, only the tokenizer is reused from Qwen2), 184 total.
  • Root Apache-2.0 LICENSE & Install Surface (F2, C5, A7): Added official LICENSE, added pyproject.toml and requirements.txt (version = "0.3.1"), updated CI to install .[dev], and documented installation/build steps in README.md.
  • Honest Local APIs & Telemetry (C2, C3): /v1/models and /api/tags list loaded models only (returning empty lists when no weights are loaded); core/compression/quant_matrix.py and /v1/telemetry/hud mark formula outputs explicitly as theoretical (measured=false), and host RAM/CPU figures default to null unless QERLIO_EXPOSE_HOST_METRICS=1 is set.
  • Honest Tests & ASan/UBSan Coverage (F4, F5, A3, A4): Relabeled tests/test_t4_to_t10_engine.py and tests/test_qwen35_engine.py explicitly as synthetic toy-GGUF checks, removed silent toy fallback from test_qwen35_engine.py, added opt-in tests/test_real_hermes_36b_optin.py (QERLIO_RUN_REAL_HERMES=1), and expanded tests/cpp_safety_test.cpp under CI ASan+UBSan (detect_leaks=1:halt_on_error=1) covering every .c file in core/inference/.
  • Docs, Governance, Naming & Links (C1, C4, C6–C12, C14): Fixed broken relative links in docs/models/HERMES_4_3_36B.md, aligned third_party/DEPENDENCY_INVENTORY.md and security/risk docs with the actual tree, added CODE_OF_CONDUCT.md and PR/issue templates, updated CONTRIBUTING.md, standardized ZAQERIS AI and ZAQERIS/ZAQERIS-7B naming, made .gitignore pure ASCII, documented v0.2.2 as 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.
  • qwen35 runs on the NumPy path and remains experimental; vision encoders, MoE execution, and all other 182 catalogued architectures have no local weight execution.
  • 36B CPU latency is non-interactive (2362.87s for 320 batched tokens; 10682.64s for the thinking=True run completed in two deterministic segments from a saved 160-token greedy prefix). Peak RSS memory is not 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.json

QERLIO v0.3.0 — Native GGUF Inference Engine

Choose a tag to compare

@ZAQERIS ZAQERIS released this 22 Nov 21:58
fea4e7a

Correction Notice (Added with Release v0.3.1):

  • The v0.3.0 release was merged, tagged, and published prior to management review.
  • See Release v0.3.1 for the corrected and cleaned release.
  • Corrections to v0.3.0 notes:
    1. The registry count is corrected from 5 tested to 1 tested (seed_36b) / 183 experimental (184 total): 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 the tested criteria.
    2. Pytest suites tests/test_t4_to_t10_engine.py and tests/test_qwen35_engine.py execute deterministic synthetic toy fixtures, not real multi-billion-parameter weights.
    3. v0.3.0 lacked root LICENSE, pyproject.toml, and CODE_OF_CONDUCT.md and had uncleaned /v1/models stubs and broken relative doc links; resolved in v0.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 for F32, 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, and IQ4_XS verified within < 1e-6 absolute 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 / gpt2 pre-tokenization, and exact encode/decode round-trip.
  • SeedOssForCausalLM & Qwen35ForCausalLM Native 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 for Q4_K, Q6_K, Q8_0, and F32, double-buffered sequential streaming (SequentialTensorStreamer), and batched SeedOssEngine.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, and qerlio hermes chat --model-path running the native engine with "simulated": false when 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; 21 gguf-py 0.19.0 dequant cases matched (max_abs_err=0.00e+00); 64/64 tokenizer cases matched tokenizers 0.23.3 with exact round-trip.
  • T4 & T5 (Logits & 64-Token Greedy vs transformers 5.20.1): Batched prefill in 47.87s; top-1 matched on 5/5 prompts, top-5 overlap 5/5, max top-20 logit diff 2.10e-05, and 320/320 greedy tokens matched identically (2362.87s). Single-pass C GEMM latency on 'The capital of France is': 50.75s (vs 419.43s NumPy-only path).
  • T6 (KV Cache Parity): Cached vs uncached recomputation matched with max_abs_diff=7.58e-05 and 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=True closed </think> with answer 4 and keep_cots verification, model-generated <tool_call> mapped to OpenAI tool_calls and Anthropic tool_use, plus context-overflow, KV budget, stop-sequence, and cancellation guards (active_sessions=0).
  • T10 & Automated Suite: All 184 pytest tests pass (0 failed, 0 skipped), and C++20 builds (ubuntu, windows, macos) + AddressSanitizer/UndefinedBehaviorSanitizer (including core/inference/native_gemm.c and tests/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). Zero torch, transformers, tokenizers, gguf, llama_cpp, vllm, sglang, onnxruntime, or psutil runtime dependencies inside core/inference/.
  • Offline reference generators live strictly under tests/reference/.

Known Limitations

  • CPU execution only; CUDA/Metal/Vulkan GPU acceleration is not implemented.
  • qwen35 still runs on the NumPy path (610.40s recorded on Qwen3.8-27B-UD-Q4_K_M.gguf); vision encoders and MoE architectures are not implemented.
  • 36B CPU inference latency is non-interactive (2362.87s for the 320-token batched run; hours for the full thinking run); peak memory was not measured.
  • The thinking=True greedy 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.json

QERLIO v0.2.1

Choose a tag to compare

@ZAQERIS ZAQERIS released this 20 Nov 15:12
786e4b7

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

Choose a tag to compare

@ZAQERIS ZAQERIS released this 20 Nov 12:39

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

Choose a tag to compare

@ZAQERIS ZAQERIS released this 19 Nov 14:38

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.