b70-optimization-lab

Agent Notes

This repository is a reproducible lab notebook and deployment guide for Intel XPU local AI work across multiple B70 model efforts: MiniMax, Qwen, Gemma, and future lanes.

First Read

Read these in order before changing runtime behavior:

  1. CURRENT.md
  2. Current lane HANDOFF.md and result packet linked from CURRENT.md
  3. README.md
  4. docs/current-reproducibility-map.md
  5. docs/model-optimization-guide.md
  6. AGENT_HANDOFF.md
  7. docs/model-effort-index.md
  8. docs/local-ops.md
  9. docs/localmaxxing.md
  10. A model packet, for example results/gemma4-26b-a4b-q8-b70/HANDOFF.md, results/gemma4-26b-a4b-q8-b70/README.md and results/gemma4-26b-a4b-q8-b70/reproduce.md.

The model weights, secrets, and full raw /mnt/fast-ai/bench-results tree are not in GitHub. The repo does include scripts, patch artifacts, summarized results, payloads, and notes needed to rebuild or review the work.

Use these common folders consistently:

Local Secrets

Never print, paste, or commit local credentials. The Hugging Face access token for model downloads is stored outside the repo at:

/home/steve/.config/huggingface/token

Scripts that need faster Hugging Face downloads should read this file into HF_TOKEN locally. The token file is covered by repo and global Git ignores.

LocalMaxxing credential guidance is in docs/localmaxxing.md; the key itself is outside Git at /home/steve/.config/localmaxxing/api_key or supplied as LMX_API_KEY. Never print or commit it.

The local sudo password file is /home/steve/SUDOPASSWORD.txt; local privileged operations guidance is in docs/local-ops.md. Use it only for local driver, runtime, service, or recovery tasks that truly require sudo. Never print or commit the password or a copy of the file.

Live State Authority

CURRENT.md is the sole cross-repository authority for the loaded service, active optimization lane, protected work, and immediate next actions. Detailed evidence remains in the lane handoff and result packet linked from that file.

Do not infer what is live from a deployable recipe, old handoff, service unit, historical note, or result packet. Verify Git status, relevant processes, and the actual endpoint before operational changes. Preserve any paths marked active or protected in CURRENT.md; do not disturb shared runtime trees or GPU work merely because another lane has a runnable recipe.

Quality Rules

Never promote a speed or context result unless quality is labeled and tested.

Use exact-token, semantic, arithmetic, and practical task gates where relevant. Compressed KV modes such as FP8 KV or TurboQuant must be labeled separately from the FP16-family baseline.

For Gemma/Qwen speculative-decoding results, diagnostic sweeps may use synthetic or repetitive prompts, but promotion and LocalMaxxing submissions now require the fixed realistic final gate:

The current Gemma 4 26B A4B Q8 one-B70 realistic-suite best is:

The previous Gemma 4 26B A4B Q8 one-B70 diagnostic best is:

Working Rules

Cross-Agent Delegation

When Claude/OpenCode is orchestrating work, prefer delegating concrete research, audit, patch, and validation tasks to Codex/GPT through the CLI. GPT token use is less constrained here, so Claude/OpenCode should manage/review and ask Codex to do bulky searches, source reading, and iteration-heavy implementation where practical.

Useful forms:

codex --cd /home/steve/llm-optimizations
codex exec --cd /home/steve/llm-optimizations "audit the Gemma docs and propose focused cleanup"
codex review --cd /home/steve/llm-optimizations
codex resume --last

Codex should use subagents whenever reasonable and available, especially for parallel source audits, independent review of risky changes, log/result classification, and research synthesis. The main Codex agent still owns final edits, verification, and safety around active experiment processes.