Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
chart
infographic
scene-graph
image2scenegraph
conversational
Instructions to use ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph") model = AutoModelForMultimodalLM.from_pretrained("ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph", "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/ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph
- SGLang
How to use ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph 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 "ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph" \ --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": "ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph", "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 "ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph" \ --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": "ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph", "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 ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph with Docker Model Runner:
docker model run hf.co/ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph
Download SHA256SUMS from ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph/resolve/main/SHA256SUMS
- Command line
-
hf download hf://ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph/SHA256SUMS
-
curl -L -o SHA256SUMS https://huggingface.co/ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph/resolve/main/SHA256SUMS
2 kB
| abe4ad1fe803bb42244df4c7631730d0adf79d110764b357b5f0eb16a161ae67 .gitattributes | |
| edc8cbcf5feea8a86eeb4001cec3609b9788e1b26d7d3cc52d72173849335544 INFERENCE.md | |
| cc97a2c4ff7723a1f25179dc7c18f676fa84191bbb36ea7d0061acaf3c102559 LICENSE | |
| 50cbab8a892c5f2993b8c7351a99182507472def3b1374558308605d99b86b32 LICENSE-QWEN-APACHE-2.0 | |
| 77a8b9edad50531d427f38ac66360e25411e0573abe63f502391829d694d195f NOTICE.md | |
| c36233861503baeac5c5ef541f3ea11e585dbe6e97311ab82c2ac22500754e40 OUTPUT_FORMAT.md | |
| e787ad2adc00735704c1935355403cfbaecb051924c69c58872de375ccf9be31 README.md | |
| 30f4be461845fd9c11ac640b5e1ea04b3c72f37523fd5888b353104b5a77cd4a assets/image2scenegraph-results.png | |
| a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715 chat_template.jinja | |
| 881208c0f3f48d8fe920b4caf1bac23b4e2d351557bf2c1314b2040ceb4c6bba config.json | |
| a50023c63e657eff70e2cfdd42f384eedd085ffa34898aa6d7e34cb16618bbc7 inference_spec.json | |
| 39c4d658c5e83be2ed19b25e80818f231eff2c147a88398fb6df239a9916326e model-00001-of-00002.safetensors | |
| 43a5930fa5f7af81ad51894836f71f124a4d4ef1a21cc3e8c6c75beb8cf14865 model-00002-of-00002.safetensors | |
| ad380c647e34236cf9f313ff673781e2fca1aaff85af6117727762224f019993 model.safetensors.index.json | |
| 27225450ac9c6529872ee1924fcb0962ff5634834f817040f444118116f4e516 preprocessor_config.json | |
| d89ef49ce9cd37fbf510158e13c1ef063d9286411c1ec9049932dbe0487143b1 processor_config.json | |
| 1f63e3f390653b01fa9cf10e32c73b390df1f21eed9ae43e817a4dcd61820f02 release_metadata.json | |
| 3906fb04e65a3815d7c4c4248b8ac0e8bfdacbc722ba44491be344ce225ec036 requirements-smoke.txt | |
| 2510f614f11d9df4393af8822b23386ea4a0ef5323365eb82096d8c3d8947da6 smoke/prediction.json | |
| bceee5f5cd9d33d5e9ead0095dfdfa572cbca752c9e35ee696dfcf4b5aad4334 smoke/prediction.raw.txt | |
| ceabb838b3eec7cb5c2666c2f144ae4032602e0cf8d6bf8451a83b91f40c2e3e smoke/validation.json | |
| 06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523 tokenizer.json | |
| 792fa3f0cb88b111e54ef3134c873531008c4df471d108da17903426e308aa7b tokenizer_config.json | |