I setup a new environment, pip installed timesfm and it automatically installed huggingface_hub==1.0.1. Which gave me the following error below. Switching back to huggingface_hub==0.36.0 resolved the issue.
Traceback:
---- > 3 model = timesfm. TimesFM_2p5_200M_torch. from_pretrained("google/timesfm-2.0-500m-pytorch", torch_compile=True)
File path_to_env\.nox\dev\Lib\site-packages\huggingface_hub\utils\_validators.py:89, in valida
validate_repo_id(arg_value)
87 kwargs = smoothly_deprecate_legacy_arguments(fn_name=fn ._ name_, kwargs=kwargs)
--- > 89 return fn(*args, ** kwargs)
File path_to_env\.nox\dev\Lib\site-packages\huggingface_hub\hub_mixin.py:559, in ModelHubMixir
if cls ._ hub_mixin_inject_config and "config" not in model_kwargs:
model_kwargs["config"] = config
-- > 559 instance = cls ._ from_pretrained(
model_id=str(model_id),
revision=revision,
cache_dir=cache_dir,
force_download=force_download,
local_files_only=local_files_only,
token=token,
** model_kwargs,
569 # Implicitly set the config as instance attribute if not already set by the class
570 # This way `config' will be available when calling `save_pretrained' or `push_to_hub'.
571 if config is not None and (getattr(instance, "_hub_mixin_config", None) in (None, {})):
TypeError: TimesFM_2p5_200M_torch. from_pretrained() missing 2 required keyword-only arguments: 'proxies' and 'resume_download'```
I setup a new environment, pip installed timesfm and it automatically installed huggingface_hub==1.0.1. Which gave me the following error below. Switching back to huggingface_hub==0.36.0 resolved the issue.
Traceback: