Open Kirushikesh opened 2 months ago
hi @eyurtsev I can confirm that this issue is still persist, Can we take on this issue? We are group of students at UofT developers interested in this issue. I have seen that you have wrote some code in the PR that is now closed. Do you want us to confirm that the change work for pydantic 2 and add some unit test to confirm its working?
Checked other resources
Example Code
While initializing the HuggingFacePipeline through model_id gives,
Error Message and Stack Trace (if applicable)
No response
Description
I am using langchain, when using HuggingFacePipeline first I initialized it with custom transformers pipeline doing that results in incorrect model name as 'gpt-2'. While using the same module and initialization through .model_id() recognizes model_id correctly as phi3. Due to the model_id mismatch the other modules are getting impacted like using ChatHuggingFace because ChatHuggingFace uses model_id to initialize the tokenizer.
System Info
"pip freeze | grep langchain"
platform: Linux Python: 3.10.6