Expand description
§flodl-hf
HuggingFace integration for flodl: safetensors I/O, hub downloads, tokenizers, and pre-built transformer architectures.
This crate is a sibling to flodl and depends on it for tensor, module,
and named-parameter primitives. Transformer building blocks come from
flodl::nn.
§Scope
safetensors_io— load/save named tensor dicts from safetensors files.hub— download models from the HuggingFace Hub with local caching.tokenizer— wrappers over the HuggingFacetokenizerscrate.models— pre-built architectures (BERT first, LLaMA next).path— dotted-path builder for HF-compatible module naming.task_heads— sharedtask_heads::Answer/task_heads::TokenPredictionoutput types + internal helpers reused by every*For*task head.export— write a HF-compatible directory (model.safetensors+config.json) from a trained flodl graph.
Modules§
- export
- HuggingFace-compatible export: write a trained flodl model as a
directory HF Python can load with
AutoModel.from_pretrained. - hub
- HuggingFace Hub download and local cache integration.
- models
- Pre-built transformer architectures compatible with HuggingFace checkpoints.
- path
- Path-building helpers for HuggingFace-compatible module naming.
- safetensors_
io - Safetensors format I/O and load-time validation.
- task_
heads - Shared task-head types and helpers.
- tokenizer
- Wrappers over the HuggingFace
tokenizerscrate for flodl pipelines.