Image-Text-to-Text
Transformers
Safetensors
qwen3_5
robotics
vision-language-model
manipulation
conversational
Instructions to use Hugo-AGI/nanoAstra with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hugo-AGI/nanoAstra with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Hugo-AGI/nanoAstra") 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("Hugo-AGI/nanoAstra") model = AutoModelForMultimodalLM.from_pretrained("Hugo-AGI/nanoAstra", 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 Hugo-AGI/nanoAstra with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hugo-AGI/nanoAstra" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hugo-AGI/nanoAstra", "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/Hugo-AGI/nanoAstra
- SGLang
How to use Hugo-AGI/nanoAstra 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 "Hugo-AGI/nanoAstra" \ --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": "Hugo-AGI/nanoAstra", "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 "Hugo-AGI/nanoAstra" \ --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": "Hugo-AGI/nanoAstra", "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 Hugo-AGI/nanoAstra with Docker Model Runner:
docker model run hf.co/Hugo-AGI/nanoAstra
|
Download README.md from Hugo-AGI/nanoAstra: direct link, hf CLI and curl.
- Browser
- Download file 2.2 kB
-
https://huggingface.co/Hugo-AGI/nanoAstra/resolve/main/README.md
- Command line
-
hf download hf://Hugo-AGI/nanoAstra/README.md
-
curl -L -o README.md https://huggingface.co/Hugo-AGI/nanoAstra/resolve/main/README.md
2.2 kB
| license: apache-2.0 | |
| base_model: Qwen/Qwen3.5-9B | |
| pipeline_tag: image-text-to-text | |
| library_name: transformers | |
| tags: | |
| - robotics | |
| - vision-language-model | |
| - manipulation | |
| # nanoAstra-9B | |
| nanoAstra-9B is a vision-language model for robot manipulation that acts through its native text interface, with no | |
| separate action head. At each decision point, it writes the task progress and the next semantic steps, built from | |
| reusable, parameterized action primitives such as `move x +5.0` or `gripper open`. | |
| - Paper: [A Glimpse of Training VLMs as Foundation Models for Robotic Manipulation](https://arxiv.org/abs/2611.29338) | |
| - Project page: <https://nanoastra.github.io> | |
| - Code: <https://github.com/Hugo-AGI/nanoAstra> | |
| nanoAstra-9B is initialized from Qwen3.5-9B and trained on more than 5,000 hours of robot data together with general | |
| VQA data. On RoboTwin 2.0's randomized benchmark, it achieves a 17.8% zero-shot success rate. | |
| ## Use | |
| Serve the weights with vLLM and run the closed loop from the code repository: | |
| ```bash | |
| git clone --recurse-submodules https://github.com/Hugo-AGI/nanoAstra.git && cd nanoAstra | |
| bash scripts/serve.sh Hugo-AGI/nanoAstra | |
| python scripts/eval_robotwin.py --task place_empty_cup --output results/streaming/place_empty_cup | |
| ``` | |
| The model expects the robot system prompt, the camera images and the robot state in the format built by | |
| `nanoastra/prompt.py`, with thinking switched off (`chat_template_kwargs: {"enable_thinking": false}`), and | |
| replies with one JSON object: | |
| ```json | |
| {"progress": "Grasp the cup.", "steps": [{"left": ["move x +5.0", "move z -2.0"], "right": ["wait"]}]} | |
| ``` | |
| Without the robot system prompt, the same model answers in free-form language. | |
| ## Citation | |
| ```bibtex | |
| @article{guo2026glimpse, | |
| title = {A Glimpse of Training VLMs as Foundation Models for Robotic Manipulation}, | |
| author = {Guo, Meng-Hao and Zhang, Yi and Mo, Zhe-Han and Wang, Han-Zheng and | |
| Wang, Jia-Jun and Chen, Xin-Sheng and Song, Jiaxi and Deng, Yi-Xuan and | |
| Li, Jia-Ning and Chu, Xuanyu and Zhang, Hengrui and Gao, Huan-ang and | |
| Rao, Yongming and Hu, Shi-Min}, | |
| journal = {arXiv preprint arXiv:2611.29338}, | |
| year = {2026} | |
| } | |
| ``` | |