Run locally error

#2
by Cherryblade29 - opened

Could you tell me how did you run it ? because i tried your code and downloaded the checkpoint from the repo but got this error :
[Running] python -u "/home/mohamed-lahmeri/Desktop/Univ/FD/memoire/English/Main.py"
2024-12-10 18:17:41.592546: I external/local_xla/xla/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-12-10 18:17:41.601929: I external/local_xla/xla/tsl/cuda/cudart_stub.cc:32] Could not find cuda drivers on your machine, GPU will not be used.
2024-12-10 18:17:41.636118: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1733851061.671122 416834 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1733851061.681980 416834 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-12-10 18:17:41.713838: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
File "/home/mohamed-lahmeri/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1038, in from_pretrained
config_class = CONFIG_MAPPING[config_dict["model_type"]]
File "/home/mohamed-lahmeri/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 740, in getitem
raise KeyError(key)
KeyError: 'kosmos-2.5'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mohamed-lahmeri/Desktop/Univ/FD/memoire/English/Main.py", line 11, in
config = AutoConfig.from_pretrained("microsoft/kosmos-2.5")
File "/home/mohamed-lahmeri/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1040, in from_pretrained
raise ValueError(
ValueError: The checkpoint you are trying to load has model type kosmos-2.5 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

Sign up or log in to comment