Image-Text-to-Text
Transformers
Safetensors
internvl
llama-factory
full
Generated from Trainer
conversational
Instructions to use rsoohyun213/InternVL3-2b_full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rsoohyun213/InternVL3-2b_full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="rsoohyun213/InternVL3-2b_full") 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("rsoohyun213/InternVL3-2b_full") model = AutoModelForImageTextToText.from_pretrained("rsoohyun213/InternVL3-2b_full") 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 rsoohyun213/InternVL3-2b_full with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rsoohyun213/InternVL3-2b_full" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rsoohyun213/InternVL3-2b_full", "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/rsoohyun213/InternVL3-2b_full
- SGLang
How to use rsoohyun213/InternVL3-2b_full 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 "rsoohyun213/InternVL3-2b_full" \ --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": "rsoohyun213/InternVL3-2b_full", "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 "rsoohyun213/InternVL3-2b_full" \ --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": "rsoohyun213/InternVL3-2b_full", "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 rsoohyun213/InternVL3-2b_full with Docker Model Runner:
docker model run hf.co/rsoohyun213/InternVL3-2b_full
Ctrl+K
- checkpoint-100
- checkpoint-150
- checkpoint-200
- checkpoint-250
- checkpoint-300
- checkpoint-350
- checkpoint-400
- checkpoint-450
- checkpoint-50
- checkpoint-500
- checkpoint-550
- checkpoint-600
- checkpoint-650
- checkpoint-700
- checkpoint-750
- checkpoint-800
- checkpoint-850
- checkpoint-900
- checkpoint-938
- 1.57 kB
- 1.38 kB
- 204 Bytes
- 481 Bytes
- 2.85 kB
- 142 Bytes
- 3.71 GB xet
- 1.31 kB
- 11.4 MB xet
- 844 Bytes
- 204 Bytes
- 191 kB
- 172 kB
- 7.38 kB xet
- 29.5 kB