Instructions to use husky8/Inkling-2-Mini-Fast-Browser-Use with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use husky8/Inkling-2-Mini-Fast-Browser-Use with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="husky8/Inkling-2-Mini-Fast-Browser-Use") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("husky8/Inkling-2-Mini-Fast-Browser-Use") model = AutoModelForMultimodalLM.from_pretrained("husky8/Inkling-2-Mini-Fast-Browser-Use", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use husky8/Inkling-2-Mini-Fast-Browser-Use with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "husky8/Inkling-2-Mini-Fast-Browser-Use" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "husky8/Inkling-2-Mini-Fast-Browser-Use", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/husky8/Inkling-2-Mini-Fast-Browser-Use
- SGLang
How to use husky8/Inkling-2-Mini-Fast-Browser-Use with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "husky8/Inkling-2-Mini-Fast-Browser-Use" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "husky8/Inkling-2-Mini-Fast-Browser-Use", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "husky8/Inkling-2-Mini-Fast-Browser-Use" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "husky8/Inkling-2-Mini-Fast-Browser-Use", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use husky8/Inkling-2-Mini-Fast-Browser-Use with Docker Model Runner:
docker model run hf.co/husky8/Inkling-2-Mini-Fast-Browser-Use
Download README.md from husky8/Inkling-2-Mini-Fast-Browser-Use: direct link, hf CLI and curl.
- Browser
- Download file 5.08 kB
-
https://huggingface.co/husky8/Inkling-2-Mini-Fast-Browser-Use/resolve/main/README.md
- Command line
-
hf download hf://husky8/Inkling-2-Mini-Fast-Browser-Use/README.md
-
curl -L -o README.md https://huggingface.co/husky8/Inkling-2-Mini-Fast-Browser-Use/resolve/main/README.md
license: apache-2.0
base_model: thinkingmachines/Inkling-2-Mini
pipeline_tag: image-text-to-text
library_name: transformers
tags:
- weight-edit
- browser-automation
Browser task speedups
Best verified speedup for each of the 11 selected Mac tasks across released checkpoints. Both models passed each run shown. Edited times link to the exact weights. Filmed timings
| Task | Original Inkling 2 Mini | Edited Inkling 2 Mini | Speedup |
|---|---|---|---|
| Latest completed order total 路 WebArena 190 | 45.89 s | 5.13 s | 8.95脳 |
| Latest canceled order total 路 WebArena 188 | 45.75 s | 6.44 s | 7.10脳 |
| Complete an autocomplete field 路 MiniWoB++ seed 103 | 19.86 s | 3.84 s | 5.18脳 |
| Reply to an email 路 MiniWoB++ seed 104 | 26.01 s | 5.98 s | 4.35脳 |
| Search for Xbox 路 WebArena 275 | 20.43 s | 4.96 s | 4.12脳 |
| Fill a form, set quantity and add a dress to the cart | 25.52 s | 6.35 s | 4.02脳 |
| Fill and submit a form | 11.19 s | 2.79 s | 4.02脳 |
| Search for green tea bags 路 WebArena 278 | 24.29 s | 6.12 s | 3.97脳 |
| Search for iPhone 13 batteries 路 WebArena 277 | 19.38 s | 5.88 s | 3.30脳 |
| Search for a USB Wi-Fi adapter 路 WebArena 274 | 14.46 s | 4.65 s | 3.11脳 |
| Search for Switch accessories 路 WebArena 276 | 14.39 s | 5.15 s | 2.79脳 |
On the completed-order lookup, inference fell from 43.03 s to 2.84 s. The original model generated 1,509 thinking tokens. The edit generated zero. Both made the same clicks and returned $65.32.
Weight-space programming. We edited Inkling 2 Mini鈥檚 output matrix (model.llm.unembed.weight) without training. The order checkpoints swap the answer-text and thinking rows (200004 and 200008) and adjust the click-command and end-of-generation rows (34 and 200006). The completed-order edit changed 9,192 BF16 values. The autocomplete and email runs used the two-row swap available on main. Weight audit
Method. All 11 featured tasks ran on an M5 Max MacBook Pro with MLX. Both models read visible text and numbered controls in Brave. Each pair used the same task, initial page, prompt, greedy decoding, reasoning effort (none) and cursor timing. Task time includes inference and browser actions after warmup. We developed the order edits on order-lookup tasks. WebArena runs 路 MiniWoB++ runs 路 Search runs 路 Reproduction instructions
Both checkpoints peaked at 20.8 GiB of active MLX memory during a separate replay of the filmed order lookup on the 128 GiB Mac. Memory measurements
Base model by Thinking Machines Lab. Inkling 2 Mini 路 Apache 2.0 and modification notice