Preserve revision pins in secondary artifact loaders (#51446)

Signed-off-by: Clinton Thomas <1033162+KernelClint@users.noreply.github.com>
Co-authored-by: Lucas Bourtoule <35483370+dhalf@users.noreply.github.com>
This commit is contained in:
Clinton Thomas
2026-08-11 04:33:10 +00:00
committed by GitHub
co-authored by Lucas Bourtoule
parent adc1200597
commit 90fd4a333f
11 changed files with 226 additions and 13 deletions
+2
View File
@@ -1071,6 +1071,7 @@ def try_get_generation_config(
model: str,
trust_remote_code: bool,
revision: str | None = None,
code_revision: str | None = None,
config_format: str | ConfigFormat = "auto",
hf_token: bool | str | None = None,
) -> GenerationConfig | None:
@@ -1086,6 +1087,7 @@ def try_get_generation_config(
model,
trust_remote_code=trust_remote_code,
revision=revision,
code_revision=code_revision,
config_format=config_format,
token=hf_token,
)