[CI] Reuse loaded config for cached tokenizer (#49509)

Signed-off-by: Andreas Karatzas <Andreas.Karatzas@amd.com>
This commit is contained in:
Andreas Karatzas
2026-07-24 12:32:40 -07:00
committed by GitHub
parent 8c13ee5735
commit 9863102ed9
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -109,6 +109,8 @@ def test_cached_tokenizer_from_config_registers_local_config(tmp_path: Path):
try:
def fake_from_pretrained(path_or_repo_id: str, *args, **kwargs):
passed_config = kwargs.pop("config")
assert isinstance(passed_config, Qwen3_5MoeConfig)
loaded_config = AutoConfig.from_pretrained(
path_or_repo_id,
trust_remote_code=False,