ferrotensor-cli-0.2.0 is not a library.
ferrotensor-cli
The ferrotensor-cli command line for Ferrotensor: LoRA fine-tuning
(train), evaluation (eval) and sampling (generate, alias infer) for
small Llama-style models such as SmolLM2 and TinyLlama, on any GPU wgpu
supports (Metal, Vulkan, DX12).
Install it from crates.io (the binary is called ferrotensor), or run it from
a checkout with cargo run -p ferrotensor-cli --release --:
# LoRA SFT with response-only loss and the ChatML template
# Sample from the fine-tuned adapter (rank/alpha/targets are read from the file)
# Held-out loss and perplexity
A full walkthrough with measured numbers is in docs/examples/lora-sft.md.
- SFT data:
.jsonl(one object per line) or a.jsonarray of{"prompt": ..., "response": ...}objects, optional"system". - Pretraining data (
--task pretrain):.txtlines, a.jsonarray of strings or token ids, or packed little-endianu32tokens in.bin. - Outputs in
--out:lora_adapters.safetensors(+.state.jsonfor--resume),metrics.jsonl(one line per logged step / eval) andtraining_state.json(read byferrotensor-cli monitor). ferrotensor-cli demo(or--demo) plays a simulated training UI; it does not train anything.