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
Delete files val_metrics.json with huggingface_hub
Browse files- val_metrics.json +0 -1
val_metrics.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"loss_epoch": 0.6494418150690255, "full_acc_epoch": 0.2880499260455419, "position_1_acc_epoch": 0.7636317396783602, "position_2_acc_epoch": 0.5795673951572201, "position_3_acc_epoch": 0.465089248630573, "position_4_acc_epoch": 0.3844518659985145, "position_5_acc_epoch": 0.325237197280683, "position_6_acc_epoch": 0.28050262045323016, "position_7_acc_epoch": 0.245874403825344, "position_8_acc_epoch": 0.21834002940699176, "position_9_acc_epoch": 0.19582654946838823, "position_10_acc_epoch": 0.1770292267376639, "position_11_acc_epoch": 0.16078702983976664, "position_12_acc_epoch": 0.1465143133835578, "position_13_acc_epoch": 0.13400720667933239, "position_14_acc_epoch": 0.122419147282442, "position_15_acc_epoch": 0.11162199546255169, "eal_epoch": 3.8727365939336806}
|
|
|
|
|
|