Skip to content

blazr 0.3.0

Choose a tag to compare

@github-actions github-actions released this 12 Oct 02:04
· 27 commits to main since this release

Added

  • tests/arch_reference.rs — greedy decode of real checkpoints against transformers on CPU in F32. It covers Llama, Qwen2, Gemma 2, GPT-NeoX, Falcon, Mixtral, Qwen2-MoE, DBRX and Cohere. Each test reads its own BLAZR_TEST_*_MODEL variable and skips when unset.

Changed

  • Dependencies — boostr 0.8, splintr 0.22, and voxr and voxr-narrate 0.6. blazr::boostr re-exports boostr 0.8.

Fixed

  • Checkpoint tokenizer — a SafeTensors checkpoint now runs with its own tokenizer.json. Qwen2, Phi-3, Gemma and StarCoder2 failed to load before: their padded embedding size matched no bundled vocabulary. A tokenizer.json that does not load is an error. The bundled vocabulary serves only a checkpoint without one.
  • Non-Llama tensor layouts — the SafeTensors loaders call boostr's restructure_hf_checkpoint. GPT-NeoX, Falcon, DBRX, Phi-3, StarCoder2, Mixtral and Qwen2-MoE checkpoints failed with a missing tensor before.
  • Architecture detection — tensor-name detection runs only when config.json describes no model. A Falcon or DBRX checkpoint failed with No layers detected in checkpoint before.
  • Paged attention — Executor::new refuses paged attention for an ALiBi or softcapped model. The paged kernel applied neither, and the output was wrong.
  • SafeTensorsBytes — tokenizer_json is now the tokenizer, not only its BOS rule.

Documentation

  • Android — examples/capi/README.md gives the x86_64 emulator build, link and run steps, including -Wl,-z,max-page-size=16384 for 16 KB pages. The emulator run passes on CPU and on wgpu through the host GPU. No aarch64 hardware or physical device has run blazr.

Archives

Archive Platform
blazr-linux-x64.tar.gz Linux x86_64, CPU
blazr-linux-x64-gpu.tar.gz Linux x86_64, CPU and Vulkan
blazr-linux-arm64.tar.gz Linux aarch64, CPU
blazr-macos-arm64.tar.gz macOS on Apple silicon, Metal
blazr-windows-x64.zip Windows x86_64, CPU
blazr-windows-x64-gpu.zip Windows x86_64, CPU and DX12
blazr-android-arm64.tar.gz Android arm64, static library
blazr-ios-arm64.tar.gz iOS arm64, static library

Full diff: v0.2.0...v0.3.0