Skip to main content

Crate cherenkov

Crate cherenkov 

Source
Expand description

Standalone qwen4-exp text inference on Apple Silicon.

ModulesΒ§

config
Server configuration: built-ins, one TOML file, then explicit CLI overrides.
control
Local control: one bounded JSON exchange per connection, authenticated by UID.
download
Pinned Hugging Face downloads. The Hub client handles retries, locking and Xet transfers.
kernels πŸ”’
Metal translation units shared by the engine and GPU tests.
metal πŸ”’
model
Hardware-independent checkpoint inspection and preparation requirements.
nn πŸ”’
Small CPU math helpers for the f32 reference path.
options
prefix_cache πŸ”’
Bounded LRU checkpoints of complete hybrid-model sequence state.
prompt πŸ”’
Checkpoint-owned Jinja formatting, compiled once when the tokenizer loads.
quant πŸ”’
MLX affine quantization, CPU side. Layout (bits=4, group_size=64):
qwen4_exp
qwen4-exp (model_type qwen4_exp_text): 48-layer hybrid of Gated DeltaNet and sparse attention, 512-expert MoE per layer, four-stream gated residual (β€œhyper connections”), a hashed n-gram embedding injected at one layer, and a one-layer MTP head. 125B parameters, 6B active.
runner
CLI generation, prompt processing and shared decode entry points.
sampling
Request-owned sampling state. GPU logits are borrowed after synchronization.
server
Server startup and shared job ownership. One worker owns the loaded GPU.
storage
XDG locations and the durable model layout. Resolving paths never creates files.
tensors πŸ”’
tok πŸ”’
units πŸ”’
Byte units used by memory limits, storage sizes and progress reporting.