Repository navigation
Description
Description
https://docs.google.com/document/d/14bIihtww1Jtzz9eU-FdmFixKRFO9WI_OuGw9yrEP9Cw/edit?pli=1&tab=t.0
3.1 - #4
Description
Summary:
On Brev deploy, vLLM fails to start: scripts use the NIM model id nvidia/nemotron-3-nano-30b-a3b, which returns 404 on Hugging Face; deploy does not pass HF_TOKEN to the VM for gated models; and vLLM is started without --trust-remote-code, so the Nemotron 3 Nano model (which uses custom code) triggers a ValidationError. As a result, curl http://localhost:8000/health on the VM fails and the vllm-local provider is unusable until the three fixes below are applied.
http://localhost:8000/health'`."="" id="markdown-section-f3ed2e62-8fec-49ae-8c5d-fde1886c4075-9">
Steps to reproduce:
-
Set HF_TOKEN (and optionally NVIDIA_API_KEY) and run nemoclaw deploy (e.g. nemoclaw deploy my-nemoclaw-test).
-
Wait for setup; observe log: [brev] Starting vLLM with nvidia/nemotron-3-nano-30b-a3b... then [brev] vLLM exited. Check /tmp/vllm-server.log.
-
On the VM run: tail -120 /tmp/vllm-server.log.
-
From host run: ssh 'curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8000/health'.
vLLM starts, loads the model, and serves on port 8000; health check returns 200.
Actual:
vLLM exits during startup. Log shows either (1) 404 / Repository Not Found for nvidia/nemotron-3-nano-30b-a3b, or (2) ValidationError: “The repository nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8 contains custom code... Please pass the argument trust_remote_code=True”. Health check returns 000 (connection refused).
Cause:
-
Wrong Hugging Face model id: Scripts use nvidia/nemotron-3-nano-30b-a3b (NIM/catalog id). That path does not exist on Hugging Face (404). The correct HF repo id is nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8 (or -BF16).
-
No HF token on VM: Deploy does not write HF_TOKEN / HUGGING_FACE_HUB_TOKEN to the VM .env or export it before starting vLLM, so gated models return 401.
-
Missing --trust-remote-code: The Nemotron 3 Nano HF repo uses custom code. vLLM requires --trust-remote-code; without it, vLLM raises a ValidationError and exits.
Brev VM (Ubuntu 22.04), OpenShell 0.0.4, vLLM 0.17.1. Repo: openshell-openclaw-plugin — scripts/brev-setup.sh, scripts/setup-spark.sh, bin/nemoclaw.js.
Fix :
- In brev-setup.sh and setup-spark.sh: set VLLM_MODEL="${VLLM_MODEL:-nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8}".
- In bin/nemoclaw.js: add HF_TOKEN / HUGGING_FACE_HUB_TOKEN to the VM .env when set (or from credential helper).
- In both setup scripts: add --trust-remote-code to the vllm.entrypoints.openai.api_server invocation.
(APIServer pid=110313) INFO ... model nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8 (APIServer pid=110313) pydantic_core._pydantic_core.ValidationError: 1 validation error for ModelConfig Value error, The repository nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8 contains custom code which must be executed to correctly load the model... Please pass the argument `trust_remote_code=True` to allow custom code to be run.
Steps to reproduce
No steps provided.
[NVB# 5982625]
[NVB#5982625]
Activity
nvshaxie commentedon Mar 30, 2026
I'll work on this issue. Assigning to myself.
[-][NeMoClaw][Linux] Brev deploy: vLLM exits - wrong HF model id, no HF_TOKEN, missing --trust-remote-code[/-][+][Linux] Brev deploy: vLLM exits - wrong HF model id, no HF_TOKEN, missing --trust-remote-code[/+]feat(install): restore local inference setup for Ollama and vLLM
fix(deploy): correct vLLM HF model id and pass HF_TOKEN to VM (#2729)
PrachiShevate-nv commentedon May 8, 2026
Verified on NemoClaw v0.0.37, issue does not exist. Closing the bug.