Cambrian-S-7B is a spatially-grounded multimodal large language model that excels at spatial reasoning in video understanding. It achieves state-of-the-art performance on visual-spatial benchmarks while maintaining competitive performance on general video understanding tasks.
1from cambrian.model.builder import load_pretrained_model
2from cambrian.mm_utils import process_images, tokenizer_image_token
3from cambrian.conversation import conv_templates
4
5model_path = "nyu-visionx/Cambrian-S-7B"
6tokenizer, model, image_processor, _ = load_pretrained_model(model_path, None, "cambrian-s-7b", device_map="cuda")
7
8# Process image/video
9conv = conv_templates["qwen_2"].copy()
10conv.append_message(conv.roles[0], "<image>\nWhat objects are in this scene?")
11conv.append_message(conv.roles[1], None)
12prompt = conv.get_prompt()
13
14# Generate
15output_ids = model.generate(input_ids, images=image_tensor, image_sizes=image_sizes)
1@article{yang2025cambrian,
2 title={Cambrian-S: Towards Spatial Supersensing in Video},
3 author={Yang, Shusheng and Yang, Jihan and Huang, Pinzhi and Brown, Ellis and others},
4 journal={arXiv preprint arXiv:2025},
5 year={2025}
6}