Skip to content

Jev directory

Laya Candle

A pure-Rust port of Laya that answers typed questions — choice, score or yes/no — about any text in one batched forward pass, loading checkpoints from the Hugging Face Hub via candle and returning calibrated labels, scores and probabilities with no Python.
Stars
10
Language
Rust
License
APACHE-2.0
Reading time
2 min
Published by
Community
Author
trystan-sa
Last verified
Oct 2026

Highlights

  • Choice, score and noul questions are answered in a single batched forward pass; cost scales with input, not output.
  • Loads Laya checkpoints directly from the Hugging Face Hub via candle, or from a local directory or JSON schema.
  • Agent is immutable and predict takes &self, so one checkpoint behind an Arc serves every worker of a service.
  • below_confidence(0.85) lists answers to escalate; nothing is generated, so answers never need parsing.
  • Rust 1.88+ with a C compiler required; Apache-2.0, published on crates.io as version 0.1.

Quickstart

rust
[dependencies]
laya-candle = "0.1"
serde_json = "1"

Watch out

Grounded on a truncated README and GitHub metadata captured 2026-10-15; the README's middleware example is cut mid-code, so the Arc pattern is described from the visible portion. The crate is a library only, with no CLI, and the digest carries no accuracy or latency benchmarks.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai