got an unexpected keyword argument 'trust_remote_code' #7850
Unanswered
wangguangtao0722
asked this question in
Questions
Replies: 1 comment 6 replies
-
Can you provide more information about the code you used and the Haystack version? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when I load SentenceTransformersTextEmbedder on GPU via
"pipline.add_component("text_embedder", SentenceTransformersTextEmbedder(device=ComponentDevice.from_str(self.device)))", the following error occurs:
File "/home/.conda/envs/transformer433/lib/python3.8/site-packages/haystack/core/pipeline/base.py", line 604, in warm_up
self.graph.nodes[node]["instance"].warm_up()
File "/home/.conda/envs/transformer433/lib/python3.8/site-packages/haystack/components/embedders/sentence_transformers_document_embedder.py", line 139, in warm_up
self.embedding_backend = _SentenceTransformersEmbeddingBackendFactory.get_embedding_backend(
File "/home/.conda/envs/transformer433/lib/python3.8/site-packages/haystack/components/embedders/backends/sentence_transformers_backend.py", line 29, in get_embedding_backend
embedding_backend = _SentenceTransformersEmbeddingBackend(
File "/home/.conda/envs/transformer433/lib/python3.8/site-packages/haystack/components/embedders/backends/sentence_transformers_backend.py", line 49, in init
self.model = SentenceTransformer(
TypeError: init() got an unexpected keyword argument 'trust_remote_code'
I can run this script on CPU.
Beta Was this translation helpful? Give feedback.
All reactions