Skip to content

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

Closed

Description

@zNeill

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]

Activity

  1. added
    NV QA
    on Mar 26, 2026
  2. nvshaxie commented on Mar 30, 2026

    @nvshaxie
    Contributor

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

  3. added
    platform: brev
    on Apr 20, 2026
  4. changed the title [-][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[/+] on Apr 22, 2026
  5. added
    platform: ubuntu
    on Apr 22, 2026
  6. PrachiShevate-nv commented on May 8, 2026

    @PrachiShevate-nv

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

  7. added
    area: providers
    and removed on Jun 3, 2026
  8. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAarea: providersplatform: brevplatform: ubuntu

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions