Views
No views yet
read, bash, edit, and write.| Metric | Base Needle | This fine-tune |
|---|---|---|
| Exact match | 27.5% | 80.0% |
| Tool-call F1 | 28.95% | 80.0% |
| Tool-name F1 | 88.0% | 100.0% |
| JSON parse rate | 82.5% | 100.0% |
| Argument accuracy | 32.35% | 80.0% |
read 8/10, bash 2/10, edit 0/10, write 1/10 to read 9/10, bash 8/10, edit 9/10, write 6/10.metrics.json for machine-readable results.Cactus-Compute/needlebash: 450; read, edit, write: 350 each)3e-5, Muon 0.02hf download theabbie/needle-pi-coding-agent --local-dir needle-pi-coding-agent1import json
2from needle import SimpleAttentionNetwork, generate, get_tokenizer, load_checkpoint
3
4params, config = load_checkpoint("needle-pi-coding-agent/needle-pi-coding-agent.pkl")
5model = SimpleAttentionNetwork(config)
6
7tools = json.loads(open("needle-pi-coding-agent/training/pi_tools.json").read())
8result = generate(
9 model,
10 params,
11 get_tokenizer(),
12 query="Run bash command: curl -s https://api.ipify.org",
13 tools=json.dumps(tools, separators=(",", ":")),
14 stream=False,
15)
16print(result)
17# [{"name":"bash","arguments":{"command":"curl -s https://api.ipify.org"}}]integration/pi_tool_router.py accepts this JSON on standard input:{"intent":"Run bash command: curl -s https://api.ipify.org","tools":[...]}needle-pi-coding-agent.pkl: best native Needle/JAX checkpointconfig.json and tokenizer/: architecture and tokenizer filestraining/pi_tools_1500.jsonl: full 1,500-example training corpustraining/pi_tools.json: flattened schemas for Pi's built-in toolstraining/generate_pi_dataset.py: resumable, atomically persisted generatortraining/codex_client.py: clean Codex CLI text-generation adaptertraining/pi_tools_1500.progress.json: final generation manifestintegration/pi_tool_router.py: minimal stdin/stdout router used by the Pi provider prototypeedits array with oldText and newText values.