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
When I run the two-line program below, I get the error. Does anyone know how to solve this? Is there a specific list of versions of the dependencies I should be using?
Thank you!!
Python 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sentence_transformers import SentenceTransformer
>>> model = SentenceTransformer('nvidia/NV-Embed-v2', device="cuda:0", trust_remote_code=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/sentence_transformers/SentenceTransformer.py", line 294, in __init__
modules, self.module_kwargs = self._load_sbert_model(
^^^^^^^^^^^^^^^^^^^^^^^
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/sentence_transformers/SentenceTransformer.py", line 1647, in _load_sbert_model
module = module_class(model_name_or_path, cache_dir=cache_folder, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/sentence_transformers/models/Transformer.py", line 56, in __init__
self._load_model(model_name_or_path, config, cache_dir, **model_args)
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/sentence_transformers/models/Transformer.py", line 87, in _load_model
self.auto_model = AutoModel.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/transformers/models/auto/auto_factory.py", line 559, in from_pretrained
return model_class.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/transformers/modeling_utils.py", line 3832, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dave/.cache/huggingface/modules/transformers_modules/nvidia/NV-Embed-v2/26db444e203771ea231d32a795344655e1119d40/modeling_nvembed.py", line 323, in __init__
self.latent_attention_model = AutoModel.from_config(config.latent_attention_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/transformers/models/auto/auto_factory.py", line 438, in from_config
return model_class._from_config(config, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/transformers/modeling_utils.py", line 1478, in _from_config
if config._attn_implementation_internal is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/code/testing/chunking-testing/chunk-test-venv/lib/python3.12/site-packages/transformers/configuration_utils.py", line 264, in __getattribute__
return super().__getattribute__(key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When I run the two-line program below, I get the error. Does anyone know how to solve this? Is there a specific list of versions of the dependencies I should be using?
Thank you!!
pip list
nvidia-smi
The text was updated successfully, but these errors were encountered: