Fix typing for safetensors_load_strategy (#24641)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -519,7 +519,7 @@ def np_cache_weights_iterator(
|
||||
def safetensors_weights_iterator(
|
||||
hf_weights_files: list[str],
|
||||
use_tqdm_on_load: bool,
|
||||
safetensors_load_strategy: Optional[str] = "lazy",
|
||||
safetensors_load_strategy: str = "lazy",
|
||||
) -> Generator[tuple[str, torch.Tensor], None, None]:
|
||||
"""Iterate over the weights in the model safetensor files."""
|
||||
loading_desc = "Loading safetensors checkpoint shards"
|
||||
|
||||
Reference in New Issue
Block a user