Expand description
Weirdnet local models.
catalog: pinned Gemma 4 E2B and E4B GGUF files (Hugging Face repo, file, size, SHA-256).storeanddownload: where model files live, and a consent-gated download that resumes a.partfile and checks size and SHA-256 before the file appears.hf: read a Hugging Face repo’s GGUF files, so any repo can become aModelSpec.prompt: render chat turns with the model’s own Jinja template, and the<tool_call>tag format for tools (prompt text and a streaming parser).worker: anEngineon its own thread, streaming text with cancel.llama(feature): the llama.cppEngine.agent(feature):weirdnet_agent::ModelBackendover the worker.
Nothing here knows an app: callers pass paths, consent and callbacks.
Re-exports§
pub use catalog::Device;pub use catalog::ModelSpec;pub use catalog::human;pub use download::Consent;pub use download::Progress;pub use download::download;pub use prompt::ChatMessage;pub use prompt::ChatRole;pub use store::ModelStore;pub use worker::Chunk;pub use worker::Engine;pub use worker::GenerateRequest;pub use worker::Generation;pub use worker::Stats;pub use worker::Worker;
Modules§
- catalog
- Which model files Weirdnet knows how to fetch.
- download
- Consent-gated download of one model file: resumes a
.part, checks the size and the SHA-256, and only then renames it into place. - hf
- Reading a Hugging Face repo’s GGUF files, so any repo can become a
ModelSpec. - prompt
- Chat prompts: the model’s own Jinja template, a Gemma-style fallback, and the
<tool_call>tag format for tools. - store
- Where model files live on disk, and which Hub they come from.
- worker
- Inference on a worker thread: callers submit a request and read streamed text, and can cancel.
Enums§
- Error
- Everything that can go wrong here.