Expand description
el-engine-candle — inference engine adapter over Candle (ADR-002),
implementing el_runtime::InferenceEngine / RuntimeAcl.
Consumers supply their own model file; see CandleEngine::from_path and
CandleEngine::from_bytes. For tests that need a working engine without
a model asset, use CandleEngine::toy.
Expected GGUF tensor names:
token_embd.weight— embedding table[vocab, dim]output.weightorlm_head.weight— lm-head[vocab, dim](standard Llama layout)
Float logits are quantised to integer milli-logits at the ACL boundary, so
Candle’s Tensor/Device types never cross into the domain.
Structs§
- Candle
Engine - Candle-backed inference engine.
- Local
LlmProvider - Wraps a
CandleEnginebehind theLlmProvidertrait using a byte-level tokenizer. A production build would swap in a HuggingFace tokenizer loaded from the model file. - Qwen
Chat Provider - A real local chat backend: a Qwen2 GGUF model + its tokenizer, driven
through
el_runtime::InferenceSession. - Qwen
Engine - A real Qwen2 transformer
InferenceEngine.