hn.today

Lowvram: A CLI tool to run large AI models in low VRAM GPUs

soarhen.com6 points0 comments
Screenshot of Lowvram: A CLI tool to run large AI models in low VRAM GPUs

Lowvram is a Linux command-line tool for attempting to run CUDA applications whose memory requirements exceed a GPU’s physical VRAM, without modifying the applications themselves. It was developed after YuE2, a music-generation model requiring 24 GB of VRAM, proved incompatible with a system using a 6 GB RTX 3060. Rather than patching YuE2’s code for CPU offloading, the tool intercepts CUDA memory-allocation calls and substitutes managed-memory allocation. The NVIDIA driver can then keep active data in VRAM and move less-used pages to system RAM as needed. A wrapper or LD_PRELOAD activates the hooks before the target program starts, while the application continues to use ordinary device pointers.

The approach prioritizes whether a workload can run over peak speed. In the reported YuE2 test, lowvram achieved 43.1 tokens per second, close to a 45.3-token-per-second reference run using only the autoregressive portion of the model; standard execution could not load the model, and Accelerate managed 1.9 tokens per second. The tool also allowed Llama-TTS to run a Qwen3-TTS model that otherwise failed with an out-of-memory error. These results depend on moving data over PCIe, so performance can suffer when the working set exceeds VRAM. Managed allocations may also consume substantial system RAM, and the Linux-specific setup requires familiarity with CUDA.

Read on soarhen.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

Now Anthropic is blocking Russian users

Now Anthropic is blocking Russian users

Anthropic is accused of charging Russian Claude users before identity checks, then cutting off access after verification and retaining biometric data. Critics say account bans can affect linked GitHub projects and Russian citizens living abroad, and accuse the company of failing to answer public questions. (twitter.com)

The End of AI Frontiers

The End of AI Frontiers

Microsoft Research’s AI Frontiers group brought together about 50 researchers to develop agent systems and foundational AI advances. After the team joined Microsoft AI in September, its research-first approach clashed with leadership’s emphasis on scaling. (hunch.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.