We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f3474 commit 729526fCopy full SHA for 729526f
libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py
@@ -775,12 +775,12 @@ def _resolve_model_id(self) -> None:
775
elif _is_huggingface_pipeline(self.llm):
776
from transformers import AutoTokenizer # type: ignore[import]
777
778
+ self.model_id = self.model_id or self.llm.model_id
779
self.tokenizer = (
780
AutoTokenizer.from_pretrained(self.model_id)
781
if self.tokenizer is None
782
else self.tokenizer
783
)
- self.model_id = self.llm.model_id
784
return
785
elif _is_huggingface_endpoint(self.llm):
786
self.model_id = self.llm.repo_id or self.llm.model
0 commit comments