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
Run this model with HF Jobs
Run aisquared/bolt-instruct-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/aisquared/bolt-instruct-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aisquared/bolt-instruct-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/aisquared/bolt-instruct-v2. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/aisquared/bolt-instruct-v2. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
Browse files19 unmodified lines20212223242526272829303132333435363738394041424344454647489 unmodified lines58596061626364656667686970717273747511 unmodified lines8788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616719 unmodified lines# Bolt Instruct V2Bolt Instruct V2 is a fine-tune of Muse-Glimmer designed optimized for **concise reasoning, accurate tool selection, and efficient execution of tool-based workflows**.---# Model OverviewBolt Instruct V2 provide **strong instruction-following capabilities** across diverse tasks with robust long-context support.Key design goals:- Strong instruction adherence- High-quality structured outputs (JSON, extraction)- RAG-grounded responses- Long-context support (65k tokens for 7B and 32B)- Balanced chat, reasoning, and coding performance---# Model Details- **Type:** Causal LM (instruction-tuned)- **Max context:** 65,536 tokens (7B and 32B), 4,096 tokens (1B)- **Training context:** 32k (7B), 16k (32B), 4k (1B)### Capabilities9 unmodified lines# Training- **Method:** Supervised Fine-Tuning (SFT)- **Dataset size:** ~125k conversations- **Eval set:** ~10k examples- **Data mix:** public + synthetic + internal tasks### Training Approach- 7B / 32B → QLoRA (4-bit)### Hardware- 1× A100 80GB GPU---11 unmodified lines# Usage```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizermodel_name = "aisquared/bolt-instruct-7b"tokenizer = AutoTokenizer.from_pretrained(model_name)model = AutoModelForCausalLM.from_pretrained(model_name)```---# EvaluationTo evaluate these models, we ran a subset of tasks using the [Eleuther AI Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness). Below are the metrics for each model.## Language Model Evaluation Harness### Evaluation results for aisquared/bolt-instruct-32b:| Tasks |Version| Filter |n-shot| Metric | |Value | |Stderr||----------------------------------------------------------|------:|----------------|-----:|-----------|---|-----:|---|-----:||arc_challenge | 1|none | 0|acc |↑ |0.5776|± |0.0144|| | |none | 0|acc_norm |↑ |0.6007|± |0.0143||arc_easy | 1|none | 0|acc |↑ |0.8333|± |0.0076|| | |none | 0|acc_norm |↑ |0.8228|± |0.0078||bbh | 3|get-answer | |exact_match|↑ |0.3087|± |0.0048|| - bbh_cot_fewshot_boolean_expressions | 4|get-answer | 3|exact_match|↑ |0.5760|± |0.0313|| - bbh_cot_fewshot_causal_judgement | 4|get-answer | 3|exact_match|↑ |0.5882|± |0.0361|| - bbh_cot_fewshot_date_understanding | 4|get-answer | 3|exact_match|↑ |0.6640|± |0.0299|| - bbh_cot_fewshot_disambiguation_qa | 4|get-answer | 3|exact_match|↑ |0.1920|± |0.0250|| - bbh_cot_fewshot_dyck_languages | 4|get-answer | 3|exact_match|↑ |0.0000|± |0.0000|| - bbh_cot_fewshot_formal_fallacies | 4|get-answer | 3|exact_match|↑ |0.0480|± |0.0135|| - bbh_cot_fewshot_geometric_shapes | 4|get-answer | 3|exact_match|↑ |0.2760|± |0.0283|| - bbh_cot_fewshot_hyperbaton | 4|get-answer | 3|exact_match|↑ |0.3200|± |0.0296|| - bbh_cot_fewshot_logical_deduction_five_objects | 4|get-answer | 3|exact_match|↑ |0.0000|± |0.0000|| - bbh_cot_fewshot_logical_deduction_seven_objects | 4|get-answer | 3|exact_match|↑ |0.0000|± |0.0000|| - bbh_cot_fewshot_logical_deduction_three_objects | 4|get-answer | 3|exact_match|↑ |0.5400|± |0.0316|| - bbh_cot_fewshot_movie_recommendation | 4|get-answer | 3|exact_match|↑ |0.6000|± |0.0310|| - bbh_cot_fewshot_multistep_arithmetic_two | 4|get-answer | 3|exact_match|↑ |0.0000|± |0.0000|| - bbh_cot_fewshot_navigate | 4|get-answer | 3|exact_match|↑ |0.0160|± |0.0080|| - bbh_cot_fewshot_object_counting | 4|get-answer | 3|exact_match|↑ |0.5120|± |0.0317|| - bbh_cot_fewshot_penguins_in_a_table | 4|get-answer | 3|exact_match|↑ |0.2945|± |0.0379|| - bbh_cot_fewshot_reasoning_about_colored_objects | 4|get-answer | 3|exact_match|↑ |0.2280|± |0.0266|| - bbh_cot_fewshot_ruin_names | 4|get-answer | 3|exact_match|↑ |0.5120|± |0.0317|| - bbh_cot_fewshot_salient_translation_error_detection | 4|get-answer | 3|exact_match|↑ |0.5440|± |0.0316|| - bbh_cot_fewshot_snarks | 4|get-answer | 3|exact_match|↑ |0.7079|± |0.0342|| - bbh_cot_fewshot_sports_understanding | 4|get-answer | 3|exact_match|↑ |0.4880|± |0.0317|| - bbh_cot_fewshot_temporal_sequences | 4|get-answer | 3|exact_match|↑ |0.3120|± |0.0294|| - bbh_cot_fewshot_tracking_shuffled_objects_five_objects | 4|get-answer | 3|exact_match|↑ |0.0000|± |0.0000|| - bbh_cot_fewshot_tracking_shuffled_objects_seven_objects| 4|get-answer | 3|exact_match|↑ |0.0000|± |0.0000|| - bbh_cot_fewshot_tracking_shuffled_objects_three_objects| 4|get-answer | 3|exact_match|↑ |0.6280|± |0.0306|| - bbh_cot_fewshot_web_of_lies | 4|get-answer | 3|exact_match|↑ |0.4400|± |0.0315|| - bbh_cot_fewshot_word_sorting | 4|get-answer | 3|exact_match|↑ |0.0280|± |0.0105||gsm8k | 3|flexible-extract| 5|exact_match|↑ |0.8795|± |0.0090|| | |strict-match | 5|exact_match|↑ |0.7801|± |0.0114||hellaswag | 1|none | 0|acc |↑ |0.5407|± |0.0050|| | |none | 0|acc_norm |↑ |0.6763|± |0.0047||mmlu_pro | 2|custom-extract | |exact_match|↑ |0.6340|± |0.0042|| - biology | 3|custom-extract | 5|exact_match|↑ |0.8117|± |0.0146|| - business | 3|custom-extract | 5|exact_match|↑ |0.6907|± |0.0165|| - chemistry | 3|custom-extract | 5|exact_match|↑ |0.6431|± |0.0142|| - computer_science | 3|custom-extract | 5|exact_match|↑ |0.6951|± |0.0228|| - economics | 3|custom-extract | 5|exact_match|↑ |0.7405|± |0.0151|| - engineering | 3|custom-extract | 5|exact_match|↑ |0.3447|± |0.0153|| - health | 3|custom-extract | 5|exact_match|↑ |0.6540|± |0.0166|| - history | 3|custom-extract | 5|exact_match|↑ |0.5512|± |0.0255|| - law | 3|custom-extract | 5|exact_match|↑ |0.3860|± |0.0147|| - math | 3|custom-extract | 5|exact_match|↑ |0.7979|± |0.0109|| - other | 3|custom-extract | 5|exact_match|↑ |0.6028|± |0.0161|| - philosophy | 3|custom-extract | 5|exact_match|↑ |0.5912|± |0.0220|| - physics | 3|custom-extract | 5|exact_match|↑ |0.6551|± |0.0132|| - psychology | 3|custom-extract | 5|exact_match|↑ |0.7243|± |0.0158||truthfulqa_mc2 | 3|none | 0|acc |↑ |0.6906|± |0.0153||winogrande | 1|none | 0|acc |↑ |0.6630|± |0.0133|---# Limitations19 unmodified lines2021222324252627282930313233343536373839404142434445469 unmodified lines565758596061626364656611 unmodified lines7879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711819 unmodified lines# Bolt Instruct V2Bolt Instruct V2 is a fine-tune of [meta-models/Muse-Glimmer-30B](https://huggingface.co/meta-models/Muse-Glimmer-30B/blob/main/README.md) designed optimized for **concise reasoning, accurate tool selection, and efficient execution of tool-based workflows**.---# Model OverviewBolt Instruct V2 provide **strong instruction-following capabilities** across **multi-turn agentic workflows** while reducing cost and latency as compared to other leading ~30B models.Key design goals:- Strong instruction adherence- Multi-turn agentic coding & automated task completion- Concise reasoning---# Model Details- **Type:** Dense Causal Transformer w/ merged LoRA adapter- **Max context:** 131,072+- **Supported modalities:** Text, Image### Capabilities9 unmodified lines# Training### Training ApproachBolt 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.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.---11 unmodified lines# Usage```pythonfrom transformers import AutoProcessor, AutoModelForMultimodalLMprocessor = 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]:]))```---# EvaluationWe 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.### Evaluation results for aisquared/bolt-instruct-v2:TODO: replace with table & figures from Prajwal---# Limitations
README.md+37-86