Image-Text-to-Text
Transformers
Safetensors
English
muse_glimmer
text-generation
causal-lm
instruction-tuning
chat
rag
code-generation
summarization
extraction
synthetic-data
Generated from Trainer
conversational
Instructions to use aisquared/bolt-instruct-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aisquared/bolt-instruct-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="aisquared/bolt-instruct-v2") 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("aisquared/bolt-instruct-v2") model = AutoModelForMultimodalLM.from_pretrained("aisquared/bolt-instruct-v2", 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 aisquared/bolt-instruct-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aisquared/bolt-instruct-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aisquared/bolt-instruct-v2", "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/aisquared/bolt-instruct-v2
- SGLang
How to use aisquared/bolt-instruct-v2 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 "aisquared/bolt-instruct-v2" \ --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": "aisquared/bolt-instruct-v2", "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 "aisquared/bolt-instruct-v2" \ --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": "aisquared/bolt-instruct-v2", "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 aisquared/bolt-instruct-v2 with Docker Model Runner:
docker model run hf.co/aisquared/bolt-instruct-v2
Update README.md
#1
by iansotnek - opened
README.md
CHANGED
|
@@ -62,6 +62,14 @@ Key design goals:
|
|
| 62 |
Bolt Instruct V2 is a LoRA supervised fine-tune, trained to combine concise reasoning with precise tool use. The goal was to reduce unnecessary deliberation while preserving the ability to make tool calls. We chose supervised fine-tuning because we could demonstrate the behaviour we wanted directly: brief reasoning followed by the appropriate tool calls, including grouped calls for parallel execution.
|
| 63 |
The training corpus contains 7,646 multi-step agentic sessions, filtered to include tool schemas, at least one reasoning block, and a genuine user request. Reasoning before tool calls had a median length of 29 tokens, and 91% of tool calls were preceded by reasoning. The corpus also included 14,204 turns with multiple tool calls, representing 17.4% of tool-calling turns and occurring in 47% of sessions. Sessions contained a median of 13 tool calls, with 63% containing at least 10. Together, these examples demonstrated concise reasoning, parallel tool calling, and sustained multi-step tool use.
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
---
|
| 66 |
|
| 67 |
# Intended Use
|
|
@@ -109,13 +117,15 @@ print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
|
|
| 109 |
|
| 110 |
We evaluated Bolt Instruct V2 on raw performance on general-purpose and agentic tasks, as well as reasoning efficiency and time to complete a given task.
|
| 111 |
|
| 112 |
-
|
| 113 |
### Evaluation results for aisquared/bolt-instruct-v2:
|
| 114 |
|
| 115 |
Measured with the sampling configuration published for Muse Glimmer
|
| 116 |
**temperature 1.0 / top_p 0.95 / top_k 64**, high reasoning strength
|
| 117 |
served with vLLM (`--generation-config auto`).
|
| 118 |
|
|
|
|
|
|
|
|
|
|
| 119 |
### Efficiency — per task
|
| 120 |
|
| 121 |
| Metric | Benchmark | Muse Glimmer 30B(High) | **Bolt Instruct V2** | Gemma 4 31B (think on) |
|
|
@@ -128,7 +138,6 @@ served with vLLM (`--generation-config auto`).
|
|
| 128 |
| | AutomationBench | 9,910 | **5,988** | 14,839 |
|
| 129 |
| **Latency** | BFCL (mean) | 19.76 s | **12.60 s** | 7.47 s |
|
| 130 |
| | τ²-bench | 64.9 s | **51.4 s** | 129.8 s |
|
| 131 |
-
| | AutomationBench | 371.4 s | **342.1 s** | 1,079.8 s |
|
| 132 |
|
| 133 |
### Agentic — multi-turn
|
| 134 |
|
|
@@ -136,7 +145,6 @@ served with vLLM (`--generation-config auto`).
|
|
| 136 |
|---|---|---|---|
|
| 137 |
| τ²-bench @ temperature 0 | 85.37 | 76.83 | 84.15 |
|
| 138 |
| τ²-bench @ published sampling ¹ | 34.45 | 30.64 | 85.21 |
|
| 139 |
-
| AutomationBench ² | 45.38 | 27.70 | 48.89 |
|
| 140 |
|
| 141 |
### Agentic — single-turn tool calling
|
| 142 |
|
|
@@ -159,7 +167,7 @@ served with vLLM (`--generation-config auto`).
|
|
| 159 |
|
| 160 |
|
| 161 |
Reasoning-token reduction versus Muse Glimmer 30B: **49.8%** (BFCL),
|
| 162 |
-
**42.2%** (τ²-bench)
|
| 163 |
|
| 164 |
|
| 165 |
**Reproduction.** τ²-bench and AutomationBench under their official
|
|
|
|
| 62 |
Bolt Instruct V2 is a LoRA supervised fine-tune, trained to combine concise reasoning with precise tool use. The goal was to reduce unnecessary deliberation while preserving the ability to make tool calls. We chose supervised fine-tuning because we could demonstrate the behaviour we wanted directly: brief reasoning followed by the appropriate tool calls, including grouped calls for parallel execution.
|
| 63 |
The training corpus contains 7,646 multi-step agentic sessions, filtered to include tool schemas, at least one reasoning block, and a genuine user request. Reasoning before tool calls had a median length of 29 tokens, and 91% of tool calls were preceded by reasoning. The corpus also included 14,204 turns with multiple tool calls, representing 17.4% of tool-calling turns and occurring in 47% of sessions. Sessions contained a median of 13 tool calls, with 63% containing at least 10. Together, these examples demonstrated concise reasoning, parallel tool calling, and sustained multi-step tool use.
|
| 64 |
|
| 65 |
+
### Training Data
|
| 66 |
+
|
| 67 |
+
bolt-instruct-v2 was trained on a collected and generated set of data without commercial or other usage restrictions.
|
| 68 |
+
|
| 69 |
+
### Training Hardware
|
| 70 |
+
|
| 71 |
+
bolt-instruct-v2 was trained for 18 hours on a 2xH200 cluster.
|
| 72 |
+
|
| 73 |
---
|
| 74 |
|
| 75 |
# Intended Use
|
|
|
|
| 117 |
|
| 118 |
We evaluated Bolt Instruct V2 on raw performance on general-purpose and agentic tasks, as well as reasoning efficiency and time to complete a given task.
|
| 119 |
|
|
|
|
| 120 |
### Evaluation results for aisquared/bolt-instruct-v2:
|
| 121 |
|
| 122 |
Measured with the sampling configuration published for Muse Glimmer
|
| 123 |
**temperature 1.0 / top_p 0.95 / top_k 64**, high reasoning strength
|
| 124 |
served with vLLM (`--generation-config auto`).
|
| 125 |
|
| 126 |
+

|
| 127 |
+
|
| 128 |
+
|
| 129 |
### Efficiency — per task
|
| 130 |
|
| 131 |
| Metric | Benchmark | Muse Glimmer 30B(High) | **Bolt Instruct V2** | Gemma 4 31B (think on) |
|
|
|
|
| 138 |
| | AutomationBench | 9,910 | **5,988** | 14,839 |
|
| 139 |
| **Latency** | BFCL (mean) | 19.76 s | **12.60 s** | 7.47 s |
|
| 140 |
| | τ²-bench | 64.9 s | **51.4 s** | 129.8 s |
|
|
|
|
| 141 |
|
| 142 |
### Agentic — multi-turn
|
| 143 |
|
|
|
|
| 145 |
|---|---|---|---|
|
| 146 |
| τ²-bench @ temperature 0 | 85.37 | 76.83 | 84.15 |
|
| 147 |
| τ²-bench @ published sampling ¹ | 34.45 | 30.64 | 85.21 |
|
|
|
|
| 148 |
|
| 149 |
### Agentic — single-turn tool calling
|
| 150 |
|
|
|
|
| 167 |
|
| 168 |
|
| 169 |
Reasoning-token reduction versus Muse Glimmer 30B: **49.8%** (BFCL),
|
| 170 |
+
**42.2%** (τ²-bench).
|
| 171 |
|
| 172 |
|
| 173 |
**Reproduction.** τ²-bench and AutomationBench under their official
|