Views
No views yet
finished.hobby-rs) to run it on a laptop CPU.SCREEN:\n[ControlType] "Name" (state) …, give it the 12-action schema, and it returns a grounded action as JSON. Powers the Computer panel in the hobby-chat app.| Component | Value |
|---|---|
| Total parameters | ~500M (only a fraction is active per token) |
| Hidden size / layers | 768 / 16 (first FFN dense, the rest MoE) |
| Routed experts / active | 36 / top-6 (+ 1 always-on shared expert) |
| Attention | GQA, 12 query / 3 KV heads, decoupled head-dim 128, per-head QK-norm |
| Router | sigmoid gating, DeepSeek-V3 aux-loss-free load balancing, no top-k renorm |
| Positional | RoPE (θ up to 1e6 for the 8k-context checkpoints) |
| Tokenizer | GPT-2 byte-level BPE (50,304 vocab, sentinel-padded) |
| Optimizer | Muon on the 2-D + per-expert matrices, AdamW on everything else |
param-hallucination
is the rate of invented element names/arguments — strict tree-grounding in the data drives it to 0.| Split | JSON-parse | Name-F1 | Value-acc | Exact-match | Param-halluc |
|---|---|---|---|---|---|
| Planning (multi-step goals) | 96.5% | 94.7% | — | 82.6% | 0.0% |
| Grounding (real app trees) | ~96% | 95.5% | 91% | 78.4% | 0.0% |
| Grounding (synthetic screens) | 100% | 90.7% | 88.6% | 72.5% | 0.0% |
wait(60) vs the reference wait(7)).How these were measured. All language-model scores are 0-shot through our own port of EleutherAI'slm-evaluation-harness(a customMoELMWrapperthat runs log-likelihood scoring over the HobbyLM MoE + GPT-2 tokenizer). Reference models in the comparison table were run through the identical harness and task set, so the numbers are apples-to-apples with ours — they are not copied from other model cards. We validated the harness against published cards (e.g. TinyLlama 52.75 vs card 52.99). These are small research models: read the numbers in context, not as leaderboard claims.
transformers AutoModel for it, so load it with
the small reference implementation from the GitHub repo:1# HobbyLM is a CUSTOM sparse-MoE architecture, so load it with the reference implementation —
2# NOT transformers.AutoModelForCausalLM (there is no AutoModel mapping for this arch).
3# pip install torch safetensors tiktoken huggingface_hub
4# git clone https://github.com/harishsg993010/HobbyLM && cd HobbyLM
5
6import json, torch, tiktoken
7from huggingface_hub import hf_hub_download
8from safetensors.torch import load_file
9from hobbylm.config import ModelConfig
10from hobbylm.model import MoETransformer
11from hobbylm.generate import generate
12
13repo = "rootxhacker/HobbyLM-Computer-Use"
14cfg = ModelConfig(**{k: v for k, v in json.load(open(hf_hub_download(repo, "config.json"))).items() if k != "preset"})
15device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
16cfg.expert_backend = "grouped" if device.type == "cuda" else "bmm"
17
18model = MoETransformer(cfg).to(device).eval()
19model.load_state_dict(load_file(hf_hub_download(repo, "model.safetensors")))
20
21enc = tiktoken.get_encoding("gpt2")
22prompt = "USER: What is 7 plus 2?\nASSISTANT:"
23ids = torch.tensor([enc.encode_ordinary(prompt)], device=device)
24out = generate(model, ids, max_new_tokens=64, temperature=0.7, top_k=0, device=device,
25 repetition_penalty=1.3) # temperature=0.0 for greedy
26print(enc.decode(out[0].tolist()))For GUI / tool use, the real prompt format isTOOLS: [<schema>]\nSCREEN:\n[ControlType] "Name" (state) …\nUSER: <instruction>\nASSISTANT:and the model replies with a JSON action. The end-to-end agent loop lives inagents/in the repo.
hobbylm) live in rootxhacker/HobbyLM-gguf. They load
directly in the from-scratch hobby-rs CPU engine — stock llama.cpp won't load them without registering
the hobbylm architecture first.hobby-rs --model HobbyLM-Computer-Use.gguf --prompt "..." --n 64finish).