A PyTorch-to-ONNX port of Cactus-Compute/needle3 (Apache-2.0), exported in float16 for running on-device with ONNX Runtime (WebGPU in the browser, CPU natively). This repository holds only exported graphs, weights and the tokenizer vocabulary — no code.
| File | What it is |
|---|---|
prefill.onnx |
Prompt pass: input_ids → last-position logits and every state_out.* |
decode_step.onnx |
One-token step: input_ids, position, every state_in.* → logits, state_out.* |
weights.bin |
The single copy of the weights; both graphs reference it as ONNX external data |
tokenizer_vocab.json |
SentencePiece pieces, scores and types of the Needle 3 tokenizer |
Load both graphs with the weights supplied as external data named weights.bin, e.g. in
onnxruntime-web: externalData: [{ path: 'weights.bin', data: weightsBuffer }].
All inputs are int64.
Checked against the vendor's JAX model run in float32 on checkpoints/needle3.safetensors,
on 10 prompts (tool calls, free-text arguments, non-ASCII, a tool-result follow-up, a
1,219-token prompt):
Agreement of the resulting tool calls with the official 2-bit needle3.cact runtime:
3 of 10 (that runtime is heavily quantized, so differences are expected).
weights.bin 255 MBprefill.onnx 2 MBdecode_step.onnx 2 MBCactus-Compute/needle3