Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
weight-edit
browser-automation
conversational
8-bit precision
modelopt
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
Simplify the browser comparison and label the original and edited weights
Browse files- .gitattributes +1 -0
- README.md +1 -1
- benchmark/browser-speedups-poster.jpg +3 -0
- benchmark/browser-speedups.mp4 +2 -2
- benchmark/speedups-chapters.json +8 -4
- benchmark/speedups-film-receipts.zip +2 -2
- benchmark/speedups-timings.json +2 -2
.gitattributes
CHANGED
|
@@ -36,3 +36,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
benchmark/browser-benchmark-in-order.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 38 |
benchmark/browser-speedups.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
benchmark/browser-benchmark-in-order.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 38 |
benchmark/browser-speedups.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
benchmark/browser-speedups-poster.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -13,7 +13,7 @@ tags:
|
|
| 13 |
<!-- ordered-browser-release -->
|
| 14 |
**8.95脳 on a completed-order lookup.** Stock took 45.89s on an M5 Max MacBook Pro. The edited weights took 5.13s. Both returned $65.32. Reversing the run order gave 8.00脳. This task was used to develop the edit. [Mac checkpoint](https://huggingface.co/husky8/Inkling-2-Fast-Computer-Use/tree/686faa4d1748f0120008ec007dc97677678e1643).
|
| 15 |
|
| 16 |
-
[Watch the 13 completed tasks](https://huggingface.co/husky8/Inkling-2-Fast-Computer-Use/resolve/main/benchmark/browser-speedups.mp4) 路 [Chapter timings](https://huggingface.co/husky8/Inkling-2-Fast-Computer-Use/blob/main/benchmark/speedups-timings.json) 路 [Full evaluation, including failed runs](https://github.com/jtc268/inkling-2-fast-computer-use/blob/
|
| 17 |
|
| 18 |
The film uses one passing stock-versus-edit pair per task, across several edited checkpoints. Mean time was 21.74s for stock and 9.64s for the edits (2.25脳). Each excerpt plays at 1脳.
|
| 19 |
|
|
|
|
| 13 |
<!-- ordered-browser-release -->
|
| 14 |
**8.95脳 on a completed-order lookup.** Stock took 45.89s on an M5 Max MacBook Pro. The edited weights took 5.13s. Both returned $65.32. Reversing the run order gave 8.00脳. This task was used to develop the edit. [Mac checkpoint](https://huggingface.co/husky8/Inkling-2-Fast-Computer-Use/tree/686faa4d1748f0120008ec007dc97677678e1643).
|
| 15 |
|
| 16 |
+
[Watch the 13 completed tasks](https://huggingface.co/husky8/Inkling-2-Fast-Computer-Use/resolve/main/benchmark/browser-speedups.mp4) 路 [Chapter timings](https://huggingface.co/husky8/Inkling-2-Fast-Computer-Use/blob/main/benchmark/speedups-timings.json) 路 [Full evaluation, including failed runs](https://github.com/jtc268/inkling-2-fast-computer-use/blob/e4556a637c12c5aac99da3085cbb7b1f4aa2dcfb/benchmark/WEBARENA-ORDER-CHECKPOINTS.md).
|
| 17 |
|
| 18 |
The film uses one passing stock-versus-edit pair per task, across several edited checkpoints. Mean time was 21.74s for stock and 9.64s for the edits (2.25脳). Each excerpt plays at 1脳.
|
| 19 |
|
benchmark/browser-speedups-poster.jpg
ADDED
|
Git LFS Details
|
benchmark/browser-speedups.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d862281189ed3908e56a2ed99a0ba6461d16b90f888590b4609151ad9ac6a6c4
|
| 3 |
+
size 2407679
|
benchmark/speedups-chapters.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
-
"sha256": "
|
| 3 |
"fps": 20,
|
| 4 |
"resolution": [
|
| 5 |
-
|
| 6 |
-
|
| 7 |
],
|
| 8 |
"duration_s": 68.0,
|
| 9 |
"task_count": 13,
|
|
@@ -582,5 +582,9 @@
|
|
| 582 |
}
|
| 583 |
]
|
| 584 |
},
|
| 585 |
-
"embedded_chapters": 15
|
|
|
|
|
|
|
|
|
|
|
|
|
| 586 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"sha256": "d862281189ed3908e56a2ed99a0ba6461d16b90f888590b4609151ad9ac6a6c4",
|
| 3 |
"fps": 20,
|
| 4 |
"resolution": [
|
| 5 |
+
1600,
|
| 6 |
+
720
|
| 7 |
],
|
| 8 |
"duration_s": 68.0,
|
| 9 |
"task_count": 13,
|
|
|
|
| 582 |
}
|
| 583 |
]
|
| 584 |
},
|
| 585 |
+
"embedded_chapters": 15,
|
| 586 |
+
"display_labels": [
|
| 587 |
+
"Original weights",
|
| 588 |
+
"Edited weights"
|
| 589 |
+
]
|
| 590 |
}
|
benchmark/speedups-film-receipts.zip
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48f1fd8b3e9967989a12dee47e7eff9e00431e7414fe77343288aff975b223e2
|
| 3 |
+
size 47788
|
benchmark/speedups-timings.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
"mean_edit_s": 9.64190112815525,
|
| 6 |
"time_speedup": 2.254330695514631,
|
| 7 |
"time_saved_pct": 55.640935822341085,
|
| 8 |
-
"film_sha256": "
|
| 9 |
"duration_s": 68.0,
|
| 10 |
"release_checkpoint_sha256": "bbc639c4b54b0b748b011b9289512ccdce4c95298a4c19056d1b73a2a654e1d1",
|
| 11 |
"expanded_rtx": {
|
|
@@ -413,5 +413,5 @@
|
|
| 413 |
}
|
| 414 |
}
|
| 415 |
],
|
| 416 |
-
"all_run_evidence": "https://github.com/jtc268/inkling-2-fast-computer-use/blob/
|
| 417 |
}
|
|
|
|
| 5 |
"mean_edit_s": 9.64190112815525,
|
| 6 |
"time_speedup": 2.254330695514631,
|
| 7 |
"time_saved_pct": 55.640935822341085,
|
| 8 |
+
"film_sha256": "d862281189ed3908e56a2ed99a0ba6461d16b90f888590b4609151ad9ac6a6c4",
|
| 9 |
"duration_s": 68.0,
|
| 10 |
"release_checkpoint_sha256": "bbc639c4b54b0b748b011b9289512ccdce4c95298a4c19056d1b73a2a654e1d1",
|
| 11 |
"expanded_rtx": {
|
|
|
|
| 413 |
}
|
| 414 |
}
|
| 415 |
],
|
| 416 |
+
"all_run_evidence": "https://github.com/jtc268/inkling-2-fast-computer-use/blob/e4556a637c12c5aac99da3085cbb7b1f4aa2dcfb/benchmark/WEBARENA-ORDER-CHECKPOINTS.md"
|
| 417 |
}
|