Image-Text-to-Text
Transformers
Diffusers
Safetensors
qwen3_vl
vision-language-model
image-decomposition
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)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("SynLayers/Bbox-caption-8b") model = AutoModelForImageTextToText.from_pretrained("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?"} ] }, ] 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
Upload environment.yml with huggingface_hub
Browse files- environment.yml +151 -0
environment.yml
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.2.0=h1234567_1
|
| 14 |
+
- libstdcxx-ng=11.2.0=h1234567_1
|
| 15 |
+
- libuuid=1.41.5=h5eee18b_0
|
| 16 |
+
- libxcb=1.17.0=h9b100fa_0
|
| 17 |
+
- ncurses=6.5=h7934f7d_0
|
| 18 |
+
- openssl=3.0.17=h5eee18b_0
|
| 19 |
+
- pip=25.1=pyhc872135_2
|
| 20 |
+
- pthread-stubs=0.3=h0ce48e5_1
|
| 21 |
+
- python=3.10.18=h1a3bd86_0
|
| 22 |
+
- readline=8.3=hc2a1206_0
|
| 23 |
+
- sqlite=3.50.2=hb25bd0a_1
|
| 24 |
+
- tk=8.6.15=h54e0aa7_0
|
| 25 |
+
- xorg-libx11=1.8.12=h9b100fa_1
|
| 26 |
+
- xorg-libxau=1.0.12=h9b100fa_0
|
| 27 |
+
- xorg-libxdmcp=1.1.5=h9b100fa_0
|
| 28 |
+
- xorg-xorgproto=2024.1=h5eee18b_1
|
| 29 |
+
- xz=5.6.4=h5eee18b_1
|
| 30 |
+
- zlib=1.2.13=h5eee18b_1
|
| 31 |
+
- pip:
|
| 32 |
+
- absl-py==2.3.1
|
| 33 |
+
- accelerate==0.34.2
|
| 34 |
+
- addict==2.4.0
|
| 35 |
+
- aiohappyeyeballs==2.6.1
|
| 36 |
+
- aiohttp==3.12.15
|
| 37 |
+
- aiosignal==1.4.0
|
| 38 |
+
- annotated-types==0.7.0
|
| 39 |
+
- async-timeout==5.0.1
|
| 40 |
+
- attrs==25.3.0
|
| 41 |
+
- certifi==2025.8.3
|
| 42 |
+
- charset-normalizer==3.4.3
|
| 43 |
+
- click==8.2.1
|
| 44 |
+
- contourpy==1.3.2
|
| 45 |
+
- cycler==0.12.1
|
| 46 |
+
- datasets==2.20.0
|
| 47 |
+
- deepspeed==0.17.5
|
| 48 |
+
- diffusers==0.31.0
|
| 49 |
+
- dill==0.3.8
|
| 50 |
+
- docker-pycreds==0.4.0
|
| 51 |
+
- einops==0.8.0
|
| 52 |
+
- filelock==3.19.1
|
| 53 |
+
- fonttools==4.59.1
|
| 54 |
+
- frozenlist==1.7.0
|
| 55 |
+
- fsspec==2024.5.0
|
| 56 |
+
- gitdb==4.0.12
|
| 57 |
+
- gitpython==3.1.45
|
| 58 |
+
- grpcio==1.74.0
|
| 59 |
+
- hf-xet==1.1.8
|
| 60 |
+
- hjson==3.1.0
|
| 61 |
+
- huggingface-hub==0.34.4
|
| 62 |
+
- idna==3.10
|
| 63 |
+
- imageio==2.37.0
|
| 64 |
+
- importlib-metadata==8.7.0
|
| 65 |
+
- jinja2==3.1.6
|
| 66 |
+
- joblib==1.5.2
|
| 67 |
+
- kiwisolver==1.4.9
|
| 68 |
+
- lazy-loader==0.4
|
| 69 |
+
- markdown==3.9
|
| 70 |
+
- markdown-it-py==4.0.0
|
| 71 |
+
- markupsafe==3.0.2
|
| 72 |
+
- matplotlib==3.10.5
|
| 73 |
+
- mdurl==0.1.2
|
| 74 |
+
- mmengine==0.10.4
|
| 75 |
+
- mpmath==1.3.0
|
| 76 |
+
- msgpack==1.1.1
|
| 77 |
+
- multidict==6.6.4
|
| 78 |
+
- multiprocess==0.70.16
|
| 79 |
+
- networkx==3.4.2
|
| 80 |
+
- ninja==1.13.0
|
| 81 |
+
- numpy==2.2.6
|
| 82 |
+
- nvidia-cublas-cu12==12.1.3.1
|
| 83 |
+
- nvidia-cuda-cupti-cu12==12.1.105
|
| 84 |
+
- nvidia-cuda-nvrtc-cu12==12.1.105
|
| 85 |
+
- nvidia-cuda-runtime-cu12==12.1.105
|
| 86 |
+
- nvidia-cudnn-cu12==9.1.0.70
|
| 87 |
+
- nvidia-cufft-cu12==11.0.2.54
|
| 88 |
+
- nvidia-curand-cu12==10.3.2.106
|
| 89 |
+
- nvidia-cusolver-cu12==11.4.5.107
|
| 90 |
+
- nvidia-cusparse-cu12==12.1.0.106
|
| 91 |
+
- nvidia-ml-py==13.580.65
|
| 92 |
+
- nvidia-nccl-cu12==2.20.5
|
| 93 |
+
- nvidia-nvjitlink-cu12==12.9.86
|
| 94 |
+
- nvidia-nvtx-cu12==12.1.105
|
| 95 |
+
- opencv-python==4.12.0.88
|
| 96 |
+
- packaging==25.0
|
| 97 |
+
- pandas==2.3.2
|
| 98 |
+
- peft==0.12.0
|
| 99 |
+
- pillow==11.3.0
|
| 100 |
+
- platformdirs==4.3.8
|
| 101 |
+
- prodigyopt==1.0
|
| 102 |
+
- propcache==0.3.2
|
| 103 |
+
- protobuf==5.29.5
|
| 104 |
+
- psutil==7.0.0
|
| 105 |
+
- py-cpuinfo==9.0.0
|
| 106 |
+
- pyarrow==21.0.0
|
| 107 |
+
- pyarrow-hotfix==0.7
|
| 108 |
+
- pydantic==2.11.7
|
| 109 |
+
- pydantic-core==2.33.2
|
| 110 |
+
- pygments==2.19.2
|
| 111 |
+
- pyparsing==3.2.3
|
| 112 |
+
- python-dateutil==2.9.0.post0
|
| 113 |
+
- pytz==2025.2
|
| 114 |
+
- pyyaml==6.0.2
|
| 115 |
+
- regex==2025.7.34
|
| 116 |
+
- requests==2.32.5
|
| 117 |
+
- rich==14.1.0
|
| 118 |
+
- safetensors==0.6.2
|
| 119 |
+
- scikit-image==0.25.2
|
| 120 |
+
- scikit-learn==1.7.2
|
| 121 |
+
- scipy==1.15.3
|
| 122 |
+
- sentencepiece==0.2.0
|
| 123 |
+
- sentry-sdk==2.35.0
|
| 124 |
+
- setproctitle==1.3.6
|
| 125 |
+
- setuptools==78.1.1
|
| 126 |
+
- six==1.17.0
|
| 127 |
+
- smmap==5.0.2
|
| 128 |
+
- sympy==1.14.0
|
| 129 |
+
- tensorboard==2.20.0
|
| 130 |
+
- tensorboard-data-server==0.7.2
|
| 131 |
+
- termcolor==3.1.0
|
| 132 |
+
- threadpoolctl==3.6.0
|
| 133 |
+
- tifffile==2025.5.10
|
| 134 |
+
- tokenizers==0.19.1
|
| 135 |
+
- tomli==2.2.1
|
| 136 |
+
- torch==2.4.0
|
| 137 |
+
- torchvision==0.19.0
|
| 138 |
+
- tqdm==4.67.1
|
| 139 |
+
- transformers==4.44.0
|
| 140 |
+
- triton==3.0.0
|
| 141 |
+
- typing-extensions==4.14.1
|
| 142 |
+
- typing-inspection==0.4.1
|
| 143 |
+
- tzdata==2025.2
|
| 144 |
+
- urllib3==2.5.0
|
| 145 |
+
- wandb==0.17.7
|
| 146 |
+
- werkzeug==3.1.3
|
| 147 |
+
- wheel==0.45.1
|
| 148 |
+
- xxhash==3.5.0
|
| 149 |
+
- yapf==0.43.0
|
| 150 |
+
- yarl==1.20.1
|
| 151 |
+
- zipp==3.23.0
|