mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-14 19:06:26 +08:00
[breaking] support transformers 4.48 (#6628)
Former-commit-id: 15357cdad9
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
from transformers.utils import is_flash_attn_2_available, is_torch_sdpa_available
|
||||
|
||||
from llamafactory.extras.packages import is_transformers_version_greater_than
|
||||
from llamafactory.train.test_utils import load_infer_model
|
||||
|
||||
|
||||
@@ -27,6 +29,7 @@ INFER_ARGS = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.xfail(is_transformers_version_greater_than("4.48"), reason="Attention refactor.")
|
||||
def test_attention():
|
||||
attention_available = ["disabled"]
|
||||
if is_torch_sdpa_available():
|
||||
|
||||
Reference in New Issue
Block a user