Skip to content

Add HELION_DEV_LOW_VRAM env var for low GPU memory machines #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025
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
7 changes: 4 additions & 3 deletions examples/jagged_mean.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from __future__ import annotations

import os

import torch

import helion
from helion._testing import run_example
import helion.language as hl
from helion.utils import get_gpu_memory_info

# TritonBench configuration - adjust based on available GPU memory
if get_gpu_memory_info()[0] < 16.0:
# TritonBench configuration - adjust based on HELION_DEV_LOW_VRAM environment variable
if os.environ.get("HELION_DEV_LOW_VRAM", "0") == "1":
# Low memory configuration
TRITONBENCH_ARGS = {"B": 32, "M": 8, "seqlen": 64}

Expand Down
35 changes: 0 additions & 35 deletions helion/utils.py

This file was deleted.

Loading