Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deploy/compose/docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ services:
ports:
- "${LLM_NIM_PORT:-8000}:8000"
environment:
# NIM containers require NGC_API_KEY for startup/model download auth.
# Fall back to NVIDIA_API_KEY for older .env files created by the setup notebook.
- NGC_API_KEY=${NGC_API_KEY:-${NVIDIA_API_KEY:-}}
- NVIDIA_API_KEY=${NVIDIA_API_KEY:-}
- CUDA_VISIBLE_DEVICES=0,1,2,3
- NVIDIA_VISIBLE_DEVICES=all
Expand Down
24 changes: 22 additions & 2 deletions notebooks/setup/complete_setup_guide.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2464,6 +2464,9 @@
" ports:\n",
" - \"${{LLM_NIM_PORT:-8000}}:8000\"\n",
" environment:\n",
" # NIM containers require NGC_API_KEY for startup/model download auth.\n",
" # Fall back to NVIDIA_API_KEY for older .env files created by this notebook.\n",
" - NGC_API_KEY=${{NGC_API_KEY:-${{NVIDIA_API_KEY:-}}}}\n",
" - NVIDIA_API_KEY=${{NVIDIA_API_KEY:-}}\n",
" - CUDA_VISIBLE_DEVICES={cuda_visible_devices}\n",
" - NVIDIA_VISIBLE_DEVICES=all\n",
Expand Down Expand Up @@ -2698,14 +2701,31 @@
" content,\n",
" flags=re.MULTILINE\n",
" )\n",
" # API key optional for local\n",
" # API key optional for local. NIM containers read NGC_API_KEY for\n",
" # startup/model download auth; keep NVIDIA_API_KEY populated for clients\n",
" # and older code paths.\n",
" if strategy_info.get(\"api_key\"):\n",
" local_api_key = strategy_info[\"api_key\"]\n",
" content = re.sub(\n",
" r'^NVIDIA_API_KEY=.*$',\n",
" f'NVIDIA_API_KEY={strategy_info[\"api_key\"]}',\n",
" f'NVIDIA_API_KEY={local_api_key}',\n",
" content,\n",
" flags=re.MULTILINE\n",
" )\n",
" if re.search(r'^NGC_API_KEY=.*$', content, flags=re.MULTILINE):\n",
" content = re.sub(\n",
" r'^NGC_API_KEY=.*$',\n",
" f'NGC_API_KEY={local_api_key}',\n",
" content,\n",
" flags=re.MULTILINE\n",
" )\n",
" else:\n",
" content = re.sub(\n",
" r'^(NVIDIA_API_KEY=.*)$',\n",
" rf'\\1\\nNGC_API_KEY={local_api_key}',\n",
" content,\n",
" flags=re.MULTILINE\n",
" )\n",
" print(\"\\n✅ Configuration updated for LOCAL installation\")\n",
" print(\" LLM_NIM_URL=http://localhost:8000/v1\")\n",
" print(\" LLM_MODEL=nvidia/llama-3.3-nemotron-super-49b-v1.5\")\n",
Expand Down