Image-Text-to-Text
Transformers
Safetensors
English
qwen2_5_vl
remote-sensing
change-detection
image-captioning
conversational
text-generation-inference
Instructions to use BiliSakura/RSCCM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BiliSakura/RSCCM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="BiliSakura/RSCCM") 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("BiliSakura/RSCCM") model = AutoModelForMultimodalLM.from_pretrained("BiliSakura/RSCCM", 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 BiliSakura/RSCCM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BiliSakura/RSCCM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BiliSakura/RSCCM", "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/BiliSakura/RSCCM
- SGLang
How to use BiliSakura/RSCCM 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 "BiliSakura/RSCCM" \ --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": "BiliSakura/RSCCM", "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 "BiliSakura/RSCCM" \ --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": "BiliSakura/RSCCM", "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 BiliSakura/RSCCM with Docker Model Runner:
docker model run hf.co/BiliSakura/RSCCM
Commit History
-
Update README.md
Verified signaturef6e0bf0
-
Improve model card: Add pipeline tag, library name, paper, code, and project page links (#1)
Verified signature- Improve model card: Add pipeline tag, library name, paper, code, and project page links (ef6a2ddc5fd9f43a0c90b149e30444c9c7242637) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>fd844b5
-
Upload model-00004-of-00004.safetensors with huggingface_hub
Verified signaturedfdbb34 -
Upload model-00003-of-00004.safetensors with huggingface_hub
Verified signature116fb32 -
Upload model-00002-of-00004.safetensors with huggingface_hub
Verified signature70f620e -
Upload model-00001-of-00004.safetensors with huggingface_hub
Verified signature30fb7a6 -
Delete .\model-00002-of-00004.safetensors with huggingface_hub
Verified signature625b029 -
Delete .\model-00001-of-00004.safetensors with huggingface_hub
Verified signaturecb8d912 -
Upload .\model-00002-of-00004.safetensors with huggingface_hub
Verified signaturefdef0af -
Upload .\model-00001-of-00004.safetensors with huggingface_hub
Verified signaturef4530ce -
update
3829d82 -
update
29575b7 -
update
429e1c3 -
initial commit
Verified signature221fc42