Codex Claude Opus 4.8 commited on
Commit
c1939e1
·
1 Parent(s): f4b9db0

ZeroGPU: move models to CUDA inside @gpu calls, not in the main process

Browse files

ZeroGPU forbids real CUDA init outside an @gpu allocation. load() now keeps
models on CPU (no .cuda(), no device_map=auto, no pipe.to('cuda')); the move to
CUDA happens inside _minicpm_generate/_nemotron_generate/_run_art_pipe.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

3 files changed +17 -4
Files changed (3)
art.py+2-1
local_llm.py+7-3
tests/test_local_llm.py+8