Henry Ndubuaku commited on
Upload README.md with huggingface_hub
Browse files8 unmodified lines9101112131415162 unmodified lines19202122232425267 unmodified lines3435363738394042 unmodified lines8384858687885 unmodified lines9495969798991001011021031041051061071081091108 unmodified lines- on-device- jax- flaxdatasets:- Cactus-Compute/tool-calls---# Needle2 unmodified linesDistilled from Gemini 3.1 Flash Lite. Runs at 6000 tok/s prefill and 1200 tok/s decode on [Cactus](https://github.com/cactus-compute/cactus).## Model Details| | ||---|---|| Parameters | 26M |7 unmodified lines| Pretraining | 200B tokens on 16x TPU v6e (27hrs) || Post-training | 2B tokens of function call data (45mins) |## ArchitectureNo feedforward layers. Each encoder block is gated self-attention; each decoder block is gated self-attention + gated cross-attention. The only nonlinearities are softmax and sigmoid.42 unmodified linespython -m src.training.finetune data.jsonl --checkpoint checkpoints/needle.pkl```## File FormatThe checkpoint is a Python pickle containing:5 unmodified lines}```Load with:```pythonimport picklewith open("needle.pkl", "rb") as f:data = pickle.load(f)```## Training DataPost-trained on [Cactus-Compute/tool-calls](https://huggingface.co/datasets/Cactus-Compute/tool-calls), a synthesized dataset of 2M+ function calling examples spanning 15 tool categories (timers, messaging, media, navigation, smart home, fitness, etc.).## LicenseMIT8 unmodified lines910111213142 unmodified lines1718192021227 unmodified lines30313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798042 unmodified lines1231241251261271281291301311321331345 unmodified lines1401411421431441458 unmodified lines- on-device- jax- flax---# Needle2 unmodified linesDistilled from Gemini 3.1 Flash Lite. Runs at 6000 tok/s prefill and 1200 tok/s decode on [Cactus](https://github.com/cactus-compute/cactus).| | ||---|---|| Parameters | 26M |7 unmodified lines| Pretraining | 200B tokens on 16x TPU v6e (27hrs) || Post-training | 2B tokens of function call data (45mins) |```d=512, 8H/4KV, BPE=8192βββββββββββββββββ Tool Call βββββββββ¬ββββββββββ΄ββββββββββββ Softmax ββββββββ¬βββββββββββββ΄βββββββ Linear (T)β <- tiedβββββββ¬βββββββββββββ΄βββββββ ZCRMSNorm ββββββββ¬ββββββββββββββββ΄ββββββββββ Decoder x 8 ββββββββββββββββββββββ ZCRMSNorm ββββ Masked Self ββββ Attn + RoPE ββββ Gated Residualββββββββββββββββββββ€βββββββββββββββββ ββ ZCRMSNorm βββ Encoder x 12 ββββββββββββββββββββββ>Cross Attn βββ β ββ Gated Residualβββ ββββββββββββ β ββββββββββββββββββββ βZCRMSNorm β β ββββββββββ¬ββββββββββ βSelf Attn β β βββββββ΄βββββββ β GQA+RoPE β β β Embedding β <- sharedβ βGated Res β β βββββββ¬βββββββ β β β βββββββββ΄ββββββββββ β (no FFN) β β β[EOS]<tool_call>ββ ββββββββββββ β β + answer ββ β ββββββββββββββββββββββββββ¬βββββββββββββββ΄ββββββββ Embedding βββββββ¬ββββββββββββββ΄ββββββββ Text ββ query ββββββββββββββ```No feedforward layers. Each encoder block is gated self-attention; each decoder block is gated self-attention + gated cross-attention. The only nonlinearities are softmax and sigmoid.42 unmodified linespython -m src.training.finetune data.jsonl --checkpoint checkpoints/needle.pkl```## Links- [Needle](https://github.com/cactus-compute/needle) - training, finetuning, and inference code- [Cactus](https://github.com/cactus-compute/cactus) - on-device runtime (6000 tok/s prefill, 1200 tok/s decode)- [Simple Attention Networks](https://github.com/cactus-compute/needle/blob/main/docs/simple_attention_networks.md) - architecture details## File FormatThe checkpoint is a Python pickle containing:5 unmodified lines}```## LicenseMIT
README.md+51-16