[test] support slow skip and device skip in Uts (#9484)
This commit is contained in:
@@ -16,7 +16,7 @@ import os
|
||||
|
||||
import pytest
|
||||
|
||||
from llamafactory.train.test_utils import compare_model, load_infer_model, load_reference_model, patch_valuehead_model
|
||||
from llamafactory.train.test_utils import compare_model, load_infer_model, load_reference_model
|
||||
|
||||
|
||||
TINY_LLAMA3 = os.getenv("TINY_LLAMA3", "llamafactory/tiny-random-Llama-3")
|
||||
@@ -30,11 +30,6 @@ INFER_ARGS = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def fix_valuehead_cpu_loading():
|
||||
patch_valuehead_model()
|
||||
|
||||
|
||||
def test_base():
|
||||
model = load_infer_model(**INFER_ARGS)
|
||||
ref_model = load_reference_model(TINY_LLAMA3)
|
||||
|
||||
Reference in New Issue
Block a user