You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All use the `ONECOMP_` prefix. HPC defaults live in `backend/app/core/config.py`.
237
+
`ONECOMP_*` settings default in `backend/app/core/config.py`. Other variables
238
+
below are read directly from the process environment.
239
+
240
+
### `LOCAL_MODEL_ROOT` (local model directory)
241
+
242
+
Set this **before starting both the Celery worker and the API** when jobs use
243
+
short local directory names (e.g. `gemma-2-2b-it`) rather than a Hugging Face
244
+
repo id (`org/model`). The server maps `model_name` to
245
+
`{LOCAL_MODEL_ROOT}/<model_name>` for job validation and quantization.
246
+
247
+
| Variable | Default | Description |
248
+
|---|---|---|
249
+
|`LOCAL_MODEL_ROOT`|`/models`| Root directory of pre-downloaded models on shared storage |
250
+
251
+
Example (run from `backend/`; models live in `backend/models/`):
252
+
253
+
```bash
254
+
export LOCAL_MODEL_ROOT="$(pwd)/models"
255
+
```
256
+
257
+
Use the **same value** in Terminal A (worker) and Terminal B (API). If only
258
+
one process has it, jobs may pass validation but fail during quantization with
259
+
“not a local folder” / Hugging Face Hub errors.
260
+
261
+
After changing `LOCAL_MODEL_ROOT`, restart **both** processes (step **3**).
262
+
263
+
### `ONECOMP_*` (application settings)
234
264
235
265
| Variable | Default (HPC) | Description |
236
266
|---|---|---|
@@ -261,6 +291,7 @@ works but the CUDA toolkit is not installed.
261
291
pkill -f start_worker.py
262
292
cd backend &&. .venv/bin/activate
263
293
export ONECOMP_DEVICE=cuda
294
+
export LOCAL_MODEL_ROOT="$(pwd)/models"
264
295
export VLLM_USE_FLASHINFER_SAMPLER=0
265
296
nohup uv run python start_worker.py > /tmp/worker.log 2>&1&
266
297
```
@@ -273,7 +304,9 @@ does not propagate to the worker.
273
304
```bash
274
305
pkill -f start_worker.py
275
306
cd backend &&. .venv/bin/activate
276
-
ONECOMP_DEVICE=cuda nohup uv run python start_worker.py > /tmp/worker.log 2>&1&
307
+
export ONECOMP_DEVICE=cuda
308
+
export LOCAL_MODEL_ROOT="$(pwd)/models"
309
+
nohup uv run python start_worker.py > /tmp/worker.log 2>&1&
277
310
```
278
311
279
312
---
@@ -310,6 +343,7 @@ See [troubleshooting in docs/setup-hpc.md](docs/setup-hpc.md#5-troubleshooting)
310
343
| SSH tunnel established but API unreachable | Point `LocalForward` at the GPU node name |
311
344
| Chat is slow / keeps polling |`ONECOMP_DEVICE=cuda`, then Stop → Deploy |
312
345
| Deploy fails: `Could not find nvcc`|`VLLM_USE_FLASHINFER_SAMPLER=0` on the **worker**, restart worker, Stop → Deploy ([#10](docs/setup-hpc.md#10-vllm-deploy-fails--could-not-find-nvcc)) |
346
+
| Local model name fails / “not a local folder” on HF | Set the same `LOCAL_MODEL_ROOT` on **worker and API**, restart both; model dir must be `{LOCAL_MODEL_ROOT}/<name>/`|
0 commit comments