NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Linux] Brev deploy: vLLM exits - wrong HF model id, no HF_TOKEN, missing --trust-remote-code

Open zNeill opened this issue 8 months ago • 2 comments

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'.
Expected:

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.
Environment:

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.
After these changes, redeploy completes and curl http://localhost:8000/health on the VM returns 200. Example log (ValidationError after fixing 404):
(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]

zNeill avatar Mar 26 '26 21:03 zNeill

I'll work on this issue. Assigning to myself.

nvshaxie avatar Mar 30 '26 05:03 nvshaxie

Verified on NemoClaw v0.0.37, issue does not exist. Closing the bug.

PrachiShevate-nv avatar May 08 '26 20:05 PrachiShevate-nv