Instructions to use stanfordasl/nuscenes-full-reasoning-waypoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stanfordasl/nuscenes-full-reasoning-waypoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="stanfordasl/nuscenes-full-reasoning-waypoints") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("stanfordasl/nuscenes-full-reasoning-waypoints") model = AutoModelForMultimodalLM.from_pretrained("stanfordasl/nuscenes-full-reasoning-waypoints") 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 Settings
- vLLM
How to use stanfordasl/nuscenes-full-reasoning-waypoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stanfordasl/nuscenes-full-reasoning-waypoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stanfordasl/nuscenes-full-reasoning-waypoints", "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/stanfordasl/nuscenes-full-reasoning-waypoints
- SGLang
How to use stanfordasl/nuscenes-full-reasoning-waypoints 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 "stanfordasl/nuscenes-full-reasoning-waypoints" \ --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": "stanfordasl/nuscenes-full-reasoning-waypoints", "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 "stanfordasl/nuscenes-full-reasoning-waypoints" \ --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": "stanfordasl/nuscenes-full-reasoning-waypoints", "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 stanfordasl/nuscenes-full-reasoning-waypoints with Docker Model Runner:
docker model run hf.co/stanfordasl/nuscenes-full-reasoning-waypoints
nuScenes RnB-EnCoRe — Full Reasoning + Waypoints
Part of the RnB-EnCoRe-SelfDriving collection from the Stanford Autonomous Systems Lab.
- 📄 Paper: https://arxiv.org/abs/2602.08167
- 💻 Code / usage: https://github.com/rnb-encore/RnB-EnCoRe-SelfDriving
This is a Qwen3-VL-4B vision-language model fine-tuned on nuScenes driving data to produce a full natural-language reasoning trace followed by a future waypoint trajectory from multi-camera observations.
Related models in the collection:
- stanfordasl/nuscenes-rnbencore-reasoning-waypoints — reasoning + waypoints (iteration 1)
- stanfordasl/nuscenes-waypoints-model — waypoints only (no reasoning)
Model details
- Base model: Qwen/Qwen3-VL-4B-Instruct (
Qwen3VLForConditionalGeneration) - Architecture: hidden size 2560, 36 layers
- Modality: image/video + text → text
- Task: full driving-scene reasoning + future trajectory (waypoint) prediction on nuScenes
- Output: full chain-of-thought driving rationale followed by predicted waypoints
Training
- Fine-tuned on a nuScenes full-trace VQA-driver dataset (full reasoning + trajectory targets)
- Epochs: 30 (10,980 optimizer steps)
- Max sequence length: 6144
- Learning rate: 5e-5
Usage
For dataset preparation, prompting, inference, and evaluation, follow the instructions in the project repository: https://github.com/rnb-encore/RnB-EnCoRe-SelfDriving
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "stanfordasl/nuscenes-full-reasoning-waypoints"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
# Build a chat message with the driving camera image(s) + prompt,
# then processor.apply_chat_template(...) and model.generate(...).
# See the GitHub repo for the exact prompt format and post-processing.
Intended use & limitations
This model is a research artifact for autonomous-driving perception and planning experiments. It was trained on nuScenes and is not intended for deployment in real vehicles or safety-critical settings. Outputs may be inaccurate or unsafe; always validate in simulation before any downstream use.
Citation
If you use this model, please cite the RnB-EnCoRe self-driving work:
- Downloads last month
- 11
Model tree for stanfordasl/nuscenes-full-reasoning-waypoints
Base model
Qwen/Qwen3-VL-4B-Instruct