The demo is not working anymore

#3
by oupelaye - opened

Hi!

The demo is not working anymore.

Here is the Runtime Error :

/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(
Traceback (most recent call last):
  File "/home/user/app/app.py", line 61, in <module>
    model = PatchFusion.from_pretrained(model_name).to(DEVICE).eval()
  File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/huggingface_hub/hub_mixin.py", line 277, in from_pretrained
    instance = cls._from_pretrained(
  File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/huggingface_hub/hub_mixin.py", line 485, in _from_pretrained
    model = cls(**model_kwargs)
TypeError: PatchFusion.__init__() missing 1 required positional argument: 'config'

Here is the Containers Logs :

===== Application Startup at 2024-04-01 21:53:39 =====

/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(

Thanks!

Owner

Hi, sometimes, this demo breaks down by no reason... It seems everything works well after I restart it now

Thanks for the quick reply :-)
Looks like there is a new error today.

Owner

: (
Still don't know the reason, but I'm restarting it

zhyever changed discussion status to closed

Sign up or log in to comment