Image-Text-to-Text
Transformers
Safetensors
PEFT
lora
vision
safety
drone
pixtral
unsloth
conversational
Instructions to use BenBarr/helpstral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BenBarr/helpstral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="BenBarr/helpstral") 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)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BenBarr/helpstral", device_map="auto") - PEFT
How to use BenBarr/helpstral with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BenBarr/helpstral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BenBarr/helpstral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BenBarr/helpstral", "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/BenBarr/helpstral
- SGLang
How to use BenBarr/helpstral 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 "BenBarr/helpstral" \ --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": "BenBarr/helpstral", "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 "BenBarr/helpstral" \ --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": "BenBarr/helpstral", "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" } } ] } ] }' - Unsloth Desktop
- Docker Model Runner
How to use BenBarr/helpstral with Docker Model Runner:
docker model run hf.co/BenBarr/helpstral
Download tokenizer.json from BenBarr/helpstral: direct link, hf CLI and curl.
- Browser
- Download file 17.1 MB
-
https://huggingface.co/BenBarr/helpstral/resolve/main/tokenizer.json
- Command line
-
hf download hf://BenBarr/helpstral/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/BenBarr/helpstral/resolve/main/tokenizer.json
17.1 MB
- Xet hash:
- f9060b98d63313929e41d1c9761527ef3848743ad6833a0d50f203d883dc6dc3
- Size of remote file:
- 17.1 MB
- SHA256:
- 84f33e6f52b2833e8cc17229af8eea363f640a898f19a48184a2c7f6f5a88337
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.