langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Community: integrate chat models with Yuan2.0

Open cauwulixuan opened this issue 1 year ago • 1 comments

  1. integrate chat models with Yuan2.0
  2. add a new doc for Yuan2.0 integration

Yuan2.0 is a new generation Fundamental Large Language Model developed by IEIT System. We have published all three models, Yuan 2.0-102B, Yuan 2.0-51B, and Yuan 2.0-2B.

cauwulixuan avatar Jan 25 '24 11:01 cauwulixuan

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2024 3:25pm

vercel[bot] avatar Jan 25 '24 11:01 vercel[bot]

I've deleted unnecessary import block and re-format related code block, it still failed in deployment, Can you give me some tips how to fix this? Thanks. @baskaryan @hwchase17

cauwulixuan avatar Jan 29 '24 00:01 cauwulixuan

I've fixed some lint error. And I can see checks failed with:

    from langchain_community.chat_models.yuan2 import ChatYuan2
  File "/home/runner/work/langchain/langchain/libs/community/langchain_community/chat_models/yuan2.py", line 55, in <module>
    from openai.types.chat import (
ModuleNotFoundError: No module named 'openai'

But I'm not familier with poetry, my code depend on openai package, but it seems that this package was not installed while check was running. How can I fix this?

Any suggestions would be appreciate. Thanks @baskaryan @hwchase17

cauwulixuan avatar Jan 31 '24 02:01 cauwulixuan

Any suggestions or any updates here? @baskaryan @hwchase17

cauwulixuan avatar Feb 06 '24 10:02 cauwulixuan

Thanks @baskaryan , I fixed some test error then.

cauwulixuan avatar Feb 13 '24 15:02 cauwulixuan