[v1] add batch generator (#9744)

This commit is contained in:
Yaowei Zheng
2026-01-10 04:24:09 +08:00
committed by GitHub
parent d7d734d54c
commit b2effbd77c
26 changed files with 604 additions and 850 deletions

View File

@@ -21,7 +21,7 @@ from llamafactory.v1.core.model_engine import ModelEngine
def test_init_on_meta():
_, model_args, *_ = get_args(
dict(
model="llamafactory/tiny-random-qwen2.5",
model="llamafactory/tiny-random-qwen3",
init_config={"name": "init_on_meta"},
)
)
@@ -32,7 +32,7 @@ def test_init_on_meta():
def test_init_on_rank0():
_, model_args, *_ = get_args(
dict(
model="llamafactory/tiny-random-qwen2.5",
model="llamafactory/tiny-random-qwen3",
init_config={"name": "init_on_rank0"},
)
)
@@ -46,7 +46,7 @@ def test_init_on_rank0():
def test_init_on_default():
_, model_args, *_ = get_args(
dict(
model="llamafactory/tiny-random-qwen2.5",
model="llamafactory/tiny-random-qwen3",
init_config={"name": "init_on_default"},
)
)