Image-Text-to-Text
Transformers
Safetensors
English
text-generation
causal-lm
instruction-tuning
chat
rag
code-generation
summarization
extraction
synthetic-data
Generated from Trainer
conversational
custom_code
Instructions to use aisquared/bolt-instruct-v2-speculator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aisquared/bolt-instruct-v2-speculator 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-speculator", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("aisquared/bolt-instruct-v2-speculator", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aisquared/bolt-instruct-v2-speculator 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-speculator" # 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-speculator", "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-speculator
- SGLang
How to use aisquared/bolt-instruct-v2-speculator 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-speculator" \ --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-speculator", "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-speculator" \ --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-speculator", "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-speculator with Docker Model Runner:
docker model run hf.co/aisquared/bolt-instruct-v2-speculator
Commit History
6 days ago
-
Delete files *.pt with huggingface_hub
Verified signature14373f0 -
Delete files train_command.txt with huggingface_hub
Verified signature192cfd2 -
Delete files training_state.json with huggingface_hub
Verified signatured56f3de -
Delete files val_metrics.json with huggingface_hub
Verified signature8dc27dd
8 days ago
-
Upload folder using huggingface_hub
Verified signature87b1fc4 -
Upload folder using huggingface_hub
Verified signature2df5824
10 days ago
-
Delete files val_metrics.json with huggingface_hub
Verified signatureb84f5fa -
Delete files train_command.txt with huggingface_hub
Verified signature55b21ca -
Delete files training_state.json with huggingface_hub
Verified signatureab49dc6 -
Delete files *.pt with huggingface_hub
Verified signature99e6fc5 -
Update README.md
Verified signature1cc8016 -
Create README.md
Verified signature4435792 -
Upload folder using huggingface_hub
Verified signaturefa4c0e8
11 days ago
-
Update config.json
Verified signature4827362 -
Upload folder using huggingface_hub
Verified signatureff025c3 -
Upload folder using huggingface_hub
Verified signaturedef1fcb -
initial commit
Verified signature45ff658