Skip to content

Commit

Permalink
fallback nf to tir implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiWang1999 committed Dec 17, 2024
1 parent 6d1a7e4 commit e729caa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bitblas/ops/general_matmul/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,14 @@ def __init__(
self.bit = bit

# This is a hack to support the int4 and uint4
# legalize the backend (hacky implementation)
# TODO(lei): In future release we should remove
# by implementing all the operators in the tl backend.
if config.A_dtype in ["int4", "uint4"]:
backend = "tl"
if source_format in ["nf"]:
backend = "tir"

super().__init__(name, config, target, backend)

if source_format == "int" and self.with_zeros:
Expand Down

0 comments on commit e729caa

Please sign in to comment.