mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-23 07:52:06 +00:00
fix: fix triton OutOfResources import
This commit is contained in:
parent
5c9ef069ed
commit
28fcdcca6d
@ -90,7 +90,7 @@ class Autotuner(triton.KernelInterface):
|
|||||||
return triton.testing.do_bench(
|
return triton.testing.do_bench(
|
||||||
kernel_call, percentiles=(0.5, 0.2, 0.8), rep=40
|
kernel_call, percentiles=(0.5, 0.2, 0.8), rep=40
|
||||||
)
|
)
|
||||||
except triton.compiler.OutOfResources:
|
except triton.OutOfResources:
|
||||||
return (float("inf"), float("inf"), float("inf"))
|
return (float("inf"), float("inf"), float("inf"))
|
||||||
|
|
||||||
def run(self, *args, **kwargs):
|
def run(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user