Spaces:
Running on Zero
Running on Zero
Download space/zero_gpu.py from jeorgexyz/lua-agent-lab: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/spaces/jeorgexyz/lua-agent-lab/resolve/main/space/zero_gpu.py
- Command line
-
hf download hf://spaces/jeorgexyz/lua-agent-lab/space/zero_gpu.py
-
curl -L -o zero_gpu.py https://huggingface.co/spaces/jeorgexyz/lua-agent-lab/resolve/main/space/zero_gpu.py
427 Bytes
| """Optional free ZeroGPU hosting; CPU/Docker entry points stay independent.""" | |
| import spaces | |
| from space.models import tiny_weights | |
| from space.runtime import run_experiment | |
| # ZeroGPU emulates CUDA placement during startup, then materializes these | |
| # same tensors when a decorated function obtains a GPU. | |
| tiny_weights('cuda') | |
| def run_tiny(**kwargs): | |
| return run_experiment(**kwargs, device='cuda') | |