Downloads · 30 days
75
13% of all-time downloads
psikosen/mini-swarm-browser-258m
mini-swarm-browser-258m is a text generation model from psikosen. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Mini-Swarm-Browser is an ultra-fast, cooperative multi-agent browser navigation model and architecture based on Canopy-R3 258M.
Downloads · 30 days
75
13% of all-time downloads
All-time downloads
581
Public
Parameters
296M
593 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors593 MB · 99%
From the Hugging Face model README
Mini-Swarm-Browser is an ultra-fast, cooperative multi-agent browser navigation model and architecture based on Canopy-R3 258M.
Instead of routing massive full-DOM trees and screenshots to a monolithic 14B–70B model, Mini-Swarm employs a collaborative swarm of specialized sub-agents that operate concurrently on distilled accessibility trees (AXTree) and Set-of-Marks tags (@e1, @e2), completing real browser actions in under 5 seconds on consumer hardware.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "psikosen/mini-swarm-browser-258m"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="auto",
)
prompt = "<|im_start|>user\nGoal: Click search button and type 'AI agents'\nElements: [@e1: search_input, @e2: search_btn]<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Clone the repo and run the interactive browser agent:
git clone https://huggingface.co/psikosen/mini-swarm-browser-258m
cd mini-swarm-browser-258m
# Launch live headed browser test
python test_interactive.py --workflow form
User Objective
│
▼
┌──────────────────────────────┐
│ Swarm Coordinator │
└──────────────┬───────────────┘
│
AXTree / SoM Tokens
│
┌───────┴───────────────┐
▼ ▼
┌──────────────┐ ┌──────────────────────────────┐
│ DOM Distiller│ │ Speculative Action Engine │
└──────────────┘ │ (Canopy-R3 258M Planner) │
└──────────────┬───────────────┘
│ Action Batch: [@e1, @e2]
▼
┌──────────────────────────────┐
│ Fast Verifier HUD │
└──────────────────────────────┘
Released under the Apache 2.0 License.