Expand description
Aria inference: bundle loader, family registry, Session.
Re-exports§
pub use multimodal::action_head;pub use multimodal::asr_transcribe_pcm16le;pub use multimodal::rag_pack_context;pub use multimodal::vision_encode;
Modules§
- fixture
- Synthetic tiny Aria bundles / QuantTensors for contract tests (mirrors model tiny layout).
- multimodal
- Stage C multimodal helpers: ASR stub + RAG pack.
Vision / VLA action require real bundle tensors — Session APIs return
Unsupportedrather than RGB mean-pool / fake linear stubs.
Structs§
- Bundle
- Bundle
Tokenizer - Chat
Turn - Engine
Profile - Family
- Runtime family handle used by Session.
- Generate
Opts - Generate
Profile - Generation
- Load
Profile - Model
Config - Quant
Tensor - Session
- Session
Builder
Enums§
- Arch
Class - Architecture class for graph / loader hooks.
- Compute
Pref - CLI / config preference for local GEMM.
- Engine
Error - Unified engine error (requirements §3.6).
- Family
Phase - Delivery phase for a registered family (requirements §1.1).
- Tensor
Data
Constants§
- FAMILY_
REGISTRY - Full registry mirroring model/requirements.md §1.1.
Functions§
- apply_
chat_ template - Render messages with a generation prompt for the next assistant turn.
- arch_
class_ representatives - Representative path per arch class for tiny E2E tests.
- confidence_
from_ logits - Optional confidence heuristic for hybrid: mean max-softmax over last logits proxy.
- decode_
placeholders - Fallback when no tokenizer sidecar: stable
<id>placeholders (legacy demos). - dequantize
- Rotated-space reconstruction (matches Python
dequantize). - effective_
rope_ theta - Qwen3 uses θ=1e6; Qwen3.5 gated attention uses θ=1e7 (
rope_parameters.rope_theta). Bundles that omitrope_thetahit serde default 10000 and produce empty / garbage completions (Hello →content: ""with a fullmax_tokensbudget). - encode_
naive - Fallback encode when no sidecar: map UTF-8 bytes into
[0, vocab). - family_
phase - graph_
hook - Graph hook id for an architecture class (stage B/C dispatch).
- infer_
family_ path - Map a bundle directory or
slug_q4/slug_q326_channelname onto a registry path. - load_
bundle - lookup_
family - require_
runnable - Any registered family that can run the shared text decoder (+ stage C extras).
- require_
stage_ a - Stage A only: gemma-4-e2b-it.
- require_
stage_ b - Stage B: text / MoE families (+ stage-A golden path).
- strip_
assistant_ visible - Drop Qwen3 thinking and ChatML specials from decoded assistant text.