Skip to content
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

bitsandbytes, test existence of triton.ops.matmul_perf_model #1493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 10 additions & 1 deletion bitsandbytes/triton/int8_matmul_mixed_dequantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@

from bitsandbytes.triton.triton_utils import is_triton_available

if not is_triton_available():
use_triton = False
if is_triton_available():
import triton
try:
from triton.ops.matmul_perf_model import early_config_prune, estimate_matmul_time
use_triton = True
except ImportError:
print("bitsandbytes matmul_mixed warning, triton.ops.matmul_perf_model is not available anymore.")

if use_triton == False:

def int8_matmul_mixed_dequantize(a, b, state_x, state_w, bias):
return None
Expand Down
11 changes: 10 additions & 1 deletion bitsandbytes/triton/int8_matmul_rowwise_dequantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@

from bitsandbytes.triton.triton_utils import is_triton_available

if not is_triton_available():
use_triton = False
if is_triton_available():
import triton
try:
from triton.ops.matmul_perf_model import early_config_prune, estimate_matmul_time
use_triton = True
except ImportError:
print("bitsandbytes rowwise_dequantize warning, triton.ops.matmul_perf_model is not available anymore.")

if use_triton == False:

def int8_matmul_rowwise_dequantize(a, b, state_x, state_w, bias):
return None
Expand Down