Spaces:
Runtime error
Runtime error
File size: 389 Bytes
68964c2 |
1 2 3 4 5 6 7 8 9 |
import warnings
def custom_warning_filter(message, category, filename, lineno, file=None, line=None):
if "Torch was not compiled with flash attention" in str(message):
return # Suppress this specific warning
warnings.defaultaction(message, category, filename, lineno, file, line)
def custom_warning():
warnings.showwarning = custom_warning_filter # Apply the filter |