You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model_id=str(pretrained_model_name_or_path)
config_file: Optional[str] =Noneifos.path.isdir(model_id):
ifCONFIG_NAMEinos.listdir(model_id):
config_file=os.path.join(model_id, CONFIG_NAME)
else:
logger.warning(f"{CONFIG_NAME} not found in {Path(model_id).resolve()}")
else:
try:
config_file=hf_hub_download(
repo_id=model_id,
filename=CONFIG_NAME,
revision=revision,
cache_dir=cache_dir,
force_download=force_download,
proxies=proxies,
resume_download=resume_download,
token=token,
local_files_only=local_files_only,
)
exceptHfHubHTTPErrorase:
logger.info(f"{CONFIG_NAME} not found on the HuggingFace Hub: {str(e)}")
I had the same problem with you. I found that inside the huggingface_hub libraries (L438-459, hub_mixin.py), config_file is None after executing these lines. (And it didn't trigger the Except block as it raised an exception with type LocalEntryNotFoundError, but not HfHubHTTPError). Using a proxy may help.
TypeError: init() missing 1 required positional argument: 'config'
How should I solve this error?
The text was updated successfully, but these errors were encountered: