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
-
Update README.md
Verified signature8780468
-
Update config.json
Verified signature19a4045
-
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 README.md with huggingface_hub
Verified signaturee0543ce
-
Upload dataset/scaleup_utils.py with huggingface_hub
Verified signature12e6363 -
Upload dataset/scaleup_dataset.py with huggingface_hub
Verified signature26369cf -
Upload dataset/scaleup_api.py with huggingface_hub
Verified signature17b46bf -
Upload dataset/dataset_construction.sh with huggingface_hub
Verified signature06be361 -
Upload demo/upload_used_bundle_to_hf.py with huggingface_hub
Verified signature798996c -
Upload environment.yml with huggingface_hub
Verified signature5f75604 -
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 folder using huggingface_hub
Verified signature205434c -
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 folder using huggingface_hub
Verified signaturecdd6d76 -
Upload folder using huggingface_hub
Verified signaturee8e195f -
Upload ckpt/prism_ft_LoRA/pytorch_lora_weights.safetensors with huggingface_hub
Verified signaturea65485f -
Upload ckpt/pre_trained_LoRA/pytorch_lora_weights.safetensors with huggingface_hub
Verified signatureeab0494 -
Upload ckpt/trans_vae/0008000.pt with huggingface_hub
Verified signature86592d0 -
Upload environment.yml with huggingface_hub
Verified signature1cfe494 -
Upload tools/tools.py with huggingface_hub
Verified signature50acfb7 -
Upload tools/__init__.py with huggingface_hub
Verified signatured4bf927 -
Upload models/transp_vae.py with huggingface_hub
Verified signature5ac9237 -
Upload models/pipeline.py with huggingface_hub
Verified signature6e99a69 -
Upload models/mmdit.py with huggingface_hub
Verified signature2d767a5 -
Upload models/multiLayer_adapter.py with huggingface_hub
Verified signature696dd0c -
Upload models/__init__.py with huggingface_hub
Verified signature7da8645 -
Upload infer/infer.yaml with huggingface_hub
Verified signature84ea29f -
Upload infer/infer.py with huggingface_hub
Verified signatureb752efc -
Upload infer/common_infer.py with huggingface_hub
Verified signature2204787