Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
vision-language-model
image-to-text
bounding-box-detection
synlayers
conversational
Instructions to use SynLayers/Bbox-caption-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SynLayers/Bbox-caption-8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="SynLayers/Bbox-caption-8b") 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("SynLayers/Bbox-caption-8b") model = AutoModelForMultimodalLM.from_pretrained("SynLayers/Bbox-caption-8b", 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 SynLayers/Bbox-caption-8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SynLayers/Bbox-caption-8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SynLayers/Bbox-caption-8b", "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/SynLayers/Bbox-caption-8b
- SGLang
How to use SynLayers/Bbox-caption-8b 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 "SynLayers/Bbox-caption-8b" \ --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": "SynLayers/Bbox-caption-8b", "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 "SynLayers/Bbox-caption-8b" \ --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": "SynLayers/Bbox-caption-8b", "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 SynLayers/Bbox-caption-8b with Docker Model Runner:
docker model run hf.co/SynLayers/Bbox-caption-8b
Commit History
-
Upload demo/infer/vlm_bbox_inference.py with huggingface_hub
Verified signatureab4b9b3 -
Upload demo/infer/run_caption_bbox_infer.py with huggingface_hub
Verified signaturea1286e3 -
Upload demo/infer/__init__.py with huggingface_hub
Verified signaturecc605e0 -
Upload demo/__init__.py with huggingface_hub
Verified signatureb020638 -
Delete folder demo with huggingface_hub
Verified signaturee3fbde7
-
Upload demo/requirements-hf-space.txt with huggingface_hub
Verified signaturec52d501 -
Upload demo/app.py with huggingface_hub
Verified signaturefbdaf23 -
Upload demo/requirements-hf-space.txt with huggingface_hub
Verified signature4980a79 -
Upload demo/app.py with huggingface_hub
Verified signature910df03
-
Upload demo/real_world_pipeline.py with huggingface_hub
Verified signatured811cae -
Upload demo/README.md with huggingface_hub
Verified signatureda959cf -
Upload demo/hf_repo_assets.py with huggingface_hub
Verified signature67ef049 -
Upload demo/upload_used_bundle_to_hf.py with huggingface_hub
Verified signaturee4f1016 -
Upload demo/real_world_pipeline.py with huggingface_hub
Verified signatureb9a8a58 -
Upload demo/README.md with huggingface_hub
Verified signature0047829 -
Upload demo/hf_repo_assets.py with huggingface_hub
Verified signatureb6a8276 -
Upload demo/app.py with huggingface_hub
Verified signaturee984584
-
Upload demo/upload_used_bundle_to_hf.py with huggingface_hub
Verified signature798996c -
Upload demo/upload_used_bundle_to_hf.py with huggingface_hub
Verified signature9079472 -
Upload demo/README.md with huggingface_hub
Verified signature0dd3d3d -
Upload demo/app.py with huggingface_hub
Verified signature82299c8 -
Upload demo/real_world_pipeline.py with huggingface_hub
Verified signature13e6351 -
Upload demo/publish_space.py with huggingface_hub
Verified signature499b2f6 -
Upload demo/README.md with huggingface_hub
Verified signature7be599a -
Upload demo/infer/run_caption_bbox_infer.py with huggingface_hub
Verified signature33ebab7 -
Upload demo/upload_used_bundle_to_hf.py with huggingface_hub
Verified signature1a12879 -
Upload demo/real_world_pipeline.py with huggingface_hub
Verified signature65cf82e -
Upload demo/publish_space.py with huggingface_hub
Verified signaturef87e805 -
Upload demo/README.md with huggingface_hub
Verified signaturea87a5ff -
Upload demo/hf_repo_assets.py with huggingface_hub
Verified signatured1077e4 -
Upload demo/infer/vlm_bbox_inference.py with huggingface_hub
Verified signature1240669 -
Upload demo/infer/run_caption_bbox_infer.py with huggingface_hub
Verified signature31de91e -
Upload demo/infer/__init__.py with huggingface_hub
Verified signaturee68d78e -
Upload demo/requirements-hf-space.txt with huggingface_hub
Verified signature6bcf842 -
Upload demo/real_world_pipeline.py with huggingface_hub
Verified signature1e1d6df -
Upload demo/README.md with huggingface_hub
Verified signature0203586 -
Upload demo/app.py with huggingface_hub
Verified signaturee763920 -
Upload demo/__init__.py with huggingface_hub
Verified signature6ace2a1