runtime error

Exit code: 1. Reason: lorence2.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. modeling_florence2.py: 0%| | 0.00/127k [00:00<?, ?B/s] modeling_florence2.py: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 127k/127k [00:00<00:00, 92.6MB/s] A new version of the following files was downloaded from https://huggingface.co/microsoft/Florence-2-base: - modeling_florence2.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. /usr/local/lib/python3.10/site-packages/timm/models/layers/__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning) pytorch_model.bin: 0%| | 0.00/464M [00:00<?, ?B/s] pytorch_model.bin: 30%|β–ˆβ–ˆβ–ˆ | 139M/464M [00:01<00:02, 132MB/s] pytorch_model.bin: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰| 464M/464M [00:01<00:00, 304MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 21, in <module> florence_model = AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-base', trust_remote_code=True).to(device).eval() File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 564, in from_pretrained return model_class.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 279, in _wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4333, in from_pretrained model_init_context = cls.get_init_context(is_quantized, _is_ds_init_called) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3736, in get_init_context init_contexts = [no_init_weights(), init_empty_weights()] NameError: name 'init_empty_weights' is not defined

Container logs:

Fetching error logs...