Instructions to use pei2333/SuperGlance-9B-Stage2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pei2333/SuperGlance-9B-Stage2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="pei2333/SuperGlance-9B-Stage2") 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("pei2333/SuperGlance-9B-Stage2") model = AutoModelForMultimodalLM.from_pretrained("pei2333/SuperGlance-9B-Stage2", 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 pei2333/SuperGlance-9B-Stage2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pei2333/SuperGlance-9B-Stage2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pei2333/SuperGlance-9B-Stage2", "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/pei2333/SuperGlance-9B-Stage2
- SGLang
How to use pei2333/SuperGlance-9B-Stage2 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 "pei2333/SuperGlance-9B-Stage2" \ --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": "pei2333/SuperGlance-9B-Stage2", "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 "pei2333/SuperGlance-9B-Stage2" \ --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": "pei2333/SuperGlance-9B-Stage2", "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 pei2333/SuperGlance-9B-Stage2 with Docker Model Runner:
docker model run hf.co/pei2333/SuperGlance-9B-Stage2
SuperGlance-9B-Stage2
Paper: arXiv:2611.19138 ยท PDF ยท Project page: guobapei.github.io/SuperGlance ยท Code: GuobaPei/SuperGlance
The release terms of this repository are not decided yet; see Licence below.
This is SuperGlance's stage-2 model and the start model of its driving stages (supervised training, its last phase and RL, which give SuperGlance-9B). It is Qwen/Qwen3.5-9B with two LoRA stages merged in. Each merge is Wโฒ = round_bf16(W + 2.0 ยท BยทA), and every other tensor is unchanged. It loads like the base model, with AutoModelForImageTextToText.
- Stage 1 drew 500,000 questions from a pool of 1,158,150 multiple-choice questions. The sources are:
- SAT, GQA, TallyQA, ChartQA, AI2D and TextVQA;
- OpenImages box choice and SpatialSense;
- 13 text QA datasets.
- Stage 2 drew 192,000 questions from a pool of 1,240,040: the stage-1 questions except
text_notaandopenimages_vertical(1,115,662), plus 124,378 DriveLM-nuScenes questions.
In both stages, each drawn question is shown in its stored option order and a shifted one.
The questions and their format are in the SuperGlance-QA dataset. The training code is in the SuperGlance code release.
Files
| file | content |
|---|---|
model.safetensors-*-of-00004.safetensors, model.safetensors.index.json, config.json, tokenizer and processor files |
the merged model (bf16) |
LICENSE-Qwen3.5-9B |
the base model's licence (Apache-2.0), kept as its terms require |
Licence
The release terms are pending:
- The base model, Qwen3.5-9B, is Apache-2.0.
- The training data's terms are listed per source in SuperGlance-QA. They include DriveLM-nuScenes, which is CC BY-NC-SA 4.0 plus the nuScenes terms of use.
- Downloads last month
- 63