How to use from
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 "VINHYU/OpenSpatial-InternVL3-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": "VINHYU/OpenSpatial-InternVL3-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 "VINHYU/OpenSpatial-InternVL3-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": "VINHYU/OpenSpatial-InternVL3-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"
						}
					}
				]
			}
		]
	}'
Quick Links

OpenSpatial-InternVL3-8B

OpenSpatial-InternVL3-8B is an OpenSpatial model fine-tuned for spatial understanding and reasoning. This repository contains full, inference-ready model weights.

Loading

Use transformers the version recommended by InternVL3 for this checkpoint.

from transformers import AutoModel, AutoTokenizer

model_id = "VINHYU/OpenSpatial-InternVL3-8B"
model = AutoModel.from_pretrained(
    model_id,
    torch_dtype="auto",
    low_cpu_mem_usage=True,
    trust_remote_code=True,
).eval().cuda()
tokenizer = AutoTokenizer.from_pretrained(
    model_id, trust_remote_code=True, use_fast=False
)

Please refer to the OpenSpatial repository and the base model repository for full usage instructions, limitations, and license terms.

Downloads last month
20
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for VINHYU/OpenSpatial-InternVL3-8B

Collection including VINHYU/OpenSpatial-InternVL3-8B

Paper for VINHYU/OpenSpatial-InternVL3-8B