Instructions to use naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B
- SGLang
How to use naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B 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 "naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B" \ --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": "naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B" \ --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": "naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B with Docker Model Runner:
docker model run hf.co/naver-hyperclovax/HyperCLOVAX-SEED-Vision-Instruct-3B
| { | |
| "anyres": true, | |
| "auto_map": { | |
| "AutoImageProcessor": "image_processing_hyperclovax.HCXImageProcessor", | |
| "AutoProcessor": "processing_hyperclovax.HCXProcessor" | |
| }, | |
| "crop_size": { | |
| "height": 378, | |
| "width": 378 | |
| }, | |
| "do_center_crop": true, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_class": "AutoImageProcessor", | |
| "image_processor_type": "HCXImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "num_queries_vis_abstractor_image": 81, | |
| "num_queries_vis_abstractor_video_slow": 81, | |
| "num_queries_vis_abstractor_video_fast": 9, | |
| "first_last_frames_slow_video": false, | |
| "pad_to_square": true, | |
| "patch_size": 14, | |
| "possible_resolutions": [ | |
| [ | |
| 378, | |
| 378 | |
| ], | |
| [ | |
| 378, | |
| 756 | |
| ], | |
| [ | |
| 378, | |
| 1134 | |
| ], | |
| [ | |
| 378, | |
| 1512 | |
| ], | |
| [ | |
| 378, | |
| 1890 | |
| ], | |
| [ | |
| 378, | |
| 2268 | |
| ], | |
| [ | |
| 378, | |
| 2646 | |
| ], | |
| [ | |
| 378, | |
| 3024 | |
| ], | |
| [ | |
| 378, | |
| 3402 | |
| ], | |
| [ | |
| 756, | |
| 378 | |
| ], | |
| [ | |
| 756, | |
| 756 | |
| ], | |
| [ | |
| 756, | |
| 1134 | |
| ], | |
| [ | |
| 756, | |
| 1512 | |
| ], | |
| [ | |
| 1134, | |
| 378 | |
| ], | |
| [ | |
| 1134, | |
| 756 | |
| ], | |
| [ | |
| 1134, | |
| 1134 | |
| ], | |
| [ | |
| 1512, | |
| 378 | |
| ], | |
| [ | |
| 1512, | |
| 756 | |
| ], | |
| [ | |
| 1890, | |
| 378 | |
| ], | |
| [ | |
| 2268, | |
| 378 | |
| ], | |
| [ | |
| 2646, | |
| 378 | |
| ], | |
| [ | |
| 3024, | |
| 378 | |
| ], | |
| [ | |
| 3402, | |
| 378 | |
| ] | |
| ], | |
| "processor_class": "HCXProcessor", | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 378 | |
| }, | |
| "unpad": true | |
| } | |