Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -23,6 +23,29 @@ Codex coding surface, and computer-use / productivity tools), including parallel
|
|
| 23 |
- `model.safetensors` / `pytorch_model.bin` — decoder weights
|
| 24 |
- `agent_heads.bin` — trained tool-selection + pointer heads (optional)
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
## Load (pure PyTorch, no transformers)
|
| 27 |
```python
|
| 28 |
import json, torch
|
|
@@ -36,4 +59,5 @@ from safetensors.torch import load_file
|
|
| 36 |
model.load_state_dict(load_file(hf_hub_download("danelcsb/localagent-ultra-tiny-1m", "model.safetensors")))
|
| 37 |
model.eval()
|
| 38 |
```
|
| 39 |
-
See the LocalAgent repo for the grounded decoder / agent runtime
|
|
|
|
|
|
| 23 |
- `model.safetensors` / `pytorch_model.bin` — decoder weights
|
| 24 |
- `agent_heads.bin` — trained tool-selection + pointer heads (optional)
|
| 25 |
|
| 26 |
+
## What it can do (use cases)
|
| 27 |
+
One byte-level model that turns a natural-language turn into a grounded tool call — across an
|
| 28 |
+
assistant, a coding agent, computer-use/productivity apps, and **parallel two-call** turns:
|
| 29 |
+
|
| 30 |
+
| you say | it calls |
|
| 31 |
+
|---|---|
|
| 32 |
+
| "What's the weather in Cusco?" | `get_weather(city="Cusco")` |
|
| 33 |
+
| "What is 19 * 19 * 5?" | `calculator(expression="19*19*5")` |
|
| 34 |
+
| "Open the file bin/run.sh." | `read_file(path="bin/run.sh")` |
|
| 35 |
+
| "Grep for 'TODO'." | `grep_search(pattern="TODO")` |
|
| 36 |
+
| "Run the tests." | `run_tests()` |
|
| 37 |
+
| "Commit with message 'fix bug'." | `git_commit(message="fix bug")` |
|
| 38 |
+
| "Send an email to Greta." | `send_email(recipient="Greta")` |
|
| 39 |
+
| "Go to figma.com." | `open_url(url="figma.com")` |
|
| 40 |
+
| "Send a Slack message saying 'ship it'." | `slack_send(message="ship it")` |
|
| 41 |
+
| "Create a Jira ticket titled 'broken link'." | `jira_issue(summary="broken link")` |
|
| 42 |
+
| "Compose an email to Judy **and** search for how tall is Everest." | `send_email(recipient="Judy")` + `web_search(query="how tall is Everest")` |
|
| 43 |
+
|
| 44 |
+
Multi-turn coding (grounds a follow-up arg from a tool response):
|
| 45 |
+
`read_file(tests/test_api.py)` → result → `run_tests()` → "FAILED…" → fix.
|
| 46 |
+
At catalog scale (100s–1000s of tools) selection is done by **retrieval** (top-k) instead of a
|
| 47 |
+
fixed head. See the [LocalAgent repo](https://github.com/sangbumchoi/localagent).
|
| 48 |
+
|
| 49 |
## Load (pure PyTorch, no transformers)
|
| 50 |
```python
|
| 51 |
import json, torch
|
|
|
|
| 59 |
model.load_state_dict(load_file(hf_hub_download("danelcsb/localagent-ultra-tiny-1m", "model.safetensors")))
|
| 60 |
model.eval()
|
| 61 |
```
|
| 62 |
+
See the LocalAgent repo for the grounded decoder / agent runtime (tool head, pointer head,
|
| 63 |
+
retrieval, parallel-call decode).
|