Update _utils.py
This commit is contained in:
parent
d53599209d
commit
f207f39d63
1 changed files with 2 additions and 1 deletions
|
|
@ -321,7 +321,8 @@ except Exception as error:
|
|||
)
|
||||
pass
|
||||
import xformers.ops.fmha as xformers
|
||||
xformers_attention = xformers.memory_efficient_attention
|
||||
# [TODO] Unsure why Xformers is also breaking as well
|
||||
xformers_attention = torch.compiler.disable(xformers.memory_efficient_attention)
|
||||
|
||||
# Check TRL version
|
||||
from trl import __version__ as trl_version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue