mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-17 04:10:36 +08:00
[test] add npu test yaml and add ascend a3 docker file (#9547)
Co-authored-by: jiaqiw09 <jiaqiw960714@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ INFER_ARGS = {
|
||||
|
||||
OS_NAME = os.getenv("OS_NAME", "")
|
||||
|
||||
|
||||
@pytest.mark.runs_on(["cpu"])
|
||||
@pytest.mark.parametrize(
|
||||
"stage,dataset",
|
||||
[
|
||||
@@ -65,6 +65,7 @@ def test_run_exp(stage: str, dataset: str):
|
||||
assert os.path.exists(output_dir)
|
||||
|
||||
|
||||
@pytest.mark.runs_on(["cpu"])
|
||||
def test_export():
|
||||
export_dir = os.path.join("output", "llama3_export")
|
||||
export_model({"export_dir": export_dir, **INFER_ARGS})
|
||||
|
||||
Reference in New Issue
Block a user