Skip to content

perf(cpu): bring up, benchmark, and profile Qwen3.5-2B on Raspberry Pi 5 - #65

Open
richiejp wants to merge 4 commits into
mudler:mainfrom
richiejp:row/BACKEND-CPU
Open

perf(cpu): bring up, benchmark, and profile Qwen3.5-2B on Raspberry Pi 5#65
richiejp wants to merge 4 commits into
mudler:mainfrom
richiejp:row/BACKEND-CPU

Conversation

@richiejp

@richiejp richiejp commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Row

BACKEND-CPU — one row per PR.

What changed

Claims the Raspberry Pi 5 Cortex-A76 lane. The draft will add the spike, PMU-backed recursive CPU kernel harness, runtime-gated Cortex-A76 implementations, and measured Qwen3.5-2B correctness/performance evidence.

Evidence

  • scripts/agent-preflight.sh passes (upstream baseline currently has six unrelated inherited failures, recorded on Ordino task t-83389f8c)
  • tests that cover this change: pending implementation
  • same-change doc obligations (docs/STATUS.md, docs/BENCHMARKS.md, and docs/FEATURES.md if a feature/model/backend/quant surface moved)

Speed claims

  • This PR makes NO speed claim. Pi measurements will remain evidence for operator review until serialized and accepted.

Honest gaps

The branch currently contains only the protocol claim commit. No implementation, Pi model run, correctness result, or performance result is claimed yet. vLLM will not run on the Pi; x86_64 supplies the vLLM/current-engine correctness oracle and same-file llama.cpp supplies the Pi performance floor.

FOLLOWING_AGENTS_PROTOCOL
Assisted-by: Codex:gpt-5 [Codex]
Pin the Q8_K_XL vehicle, observed Pi hardware and PMU surface, recursive optimization method, correctness gates, and same-file llama.cpp floor before implementation. Record Pi evidence as pending without changing the binding 20-core Arm result.

FOLLOWING_AGENTS_PROTOCOL

Assisted-by: Codex:gpt-5 [Codex]
Add a review-capped vt-op harness with deterministic quant GEMM fixtures, calibrated timing, cache-pressure profiles, JSON output, affinity and system metadata, plus grouped generic and Cortex-A76 perf_event_open counters. Keep unsupported and multiplexed events explicit and preserve the legacy quant benchmark.

CPU-gated with GCC warning-as-error, clang-format, CTest CLI/schema checks, deterministic checksums, and direct 1-thread and 4-thread PMU runs. Pi execution and every performance claim remain pending.

FOLLOWING_AGENTS_PROTOCOL

Assisted-by: Codex:gpt-5 [Codex]
Build ARM64 artifacts under buildx/QEMU, verify the exported binaries and exact Qwen3.5-2B tokens on Cortex-A76, and record the PMU-ranked portable baseline that selects Q8 SDOT as the first assembly candidate.

FOLLOWING_AGENTS_PROTOCOL

Assisted-by: Codex:gpt-5 [Codex]
@richiejp
richiejp marked this pull request as ready for review August 6, 2026 20:45
@richiejp richiejp changed the title perf(cpu): optimize Qwen3.5-2B for Raspberry Pi 5 Cortex-A76 perf(cpu): bring up, benchmark, and profile Qwen3.5-2B on Raspberry Pi 5 Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant