Comments (5)
To use your fine-tuned adgen-chatglm-6b-pt-45
model with Langchain-Chatchat, follow these steps:
- Update Model Configuration: Add your model to
configs/model_config.py
underLLM_MODELS
and specify its path or identifier inMODEL_PATH
like so:
LLM_MODELS = ["chatglm3-6b", "zhipu-api", "openai-api", "adgen-chatglm-6b-pt-45"]
MODEL_PATH = {
"llm_model": {
"adgen-chatglm-6b-pt-45": "path_or_identifier_for_adgen-chatglm-6b-pt-45",
},
}
Replace "path_or_identifier_for_adgen-chatglm-6b-pt-45"
with the actual path or identifier of your model.
-
Manage Models via Endpoints: Use the provided endpoints (
/llm_model/list_config_models
,/llm_model/change
,/llm_model/get_model_config
) to manage and switch to your model. Ensure it's listed and properly configured before making chat requests. -
Integration and Testing: After switching to your model, test the chat functionality to ensure it works as expected. Adjust configurations as needed based on the test outcomes.
-
Deployment: Once satisfied with the testing, proceed to deploy your changes, making sure all model dependencies are correctly set up.
This guide assumes familiarity with Langchain-Chatchat's structure and model management. For detailed implementation, refer to the Langchain-Chatchat repository.
Details
Sources
- 在线embedding的使用
- 微调模型的导入
- 使用模型chatglm3-6b,如何在langchain-chatchat交互中调用到chatglm3-6b自定义的function,请提供实例
- 使用模型chatglm3-6b,如何在langchain-chatchat交互中调用到chatglm3-6b自定义的function,请提供实例
- 使用模型chatglm3-6b,如何在langchain-chatchat交互中调用到chatglm3-6b自定义的工具(function calling),请提供实例
- V0.2.4以上版本如何加载ptunig-v2的微调模型?
- [FEATURE] 如何接入CustomLLM?
- [询问帖] 我该如何在该项目使用ChatGLM-LoRA呢
- server/api.py
- README_en.md
- configs/model_config.py.example
- server/llm_api.py
- tests/test_online_api.py
- server/agent/custom_agent/ChatGLM3Agent.py
- knowledge_base/samples/content/test_files/langchain-ChatGLM_closed.jsonl
- knowledge_base/samples/content/test_files/langchain-ChatGLM_open.jsonl
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from langchain-chatchat.
你好,@LGghost!我是 Dosu,一个友好的机器人,随时准备帮助你解决问题、回答问题,甚至成为一个贡献者。我在这里提供帮助,同时等待人类维护者的回应。现在,我将开始查看你的问题,并很快给你一个完整的答复。
from langchain-chatchat.
好的,请问我该这么把ChatGLM-6B的chatglm-6b模型在这个上面使用
from langchain-chatchat.
自己微调的数据
from langchain-chatchat.
查看wiki
from langchain-chatchat.
Related Issues (20)
- inotify watch limit reached
- [BUG] search_knowledgebase_complex.py如何加载本地模型进行Rag?model_container.MODEL应该如何修改成自己的本地模型?
- 读取知识库的介绍
- 初始化数据库执行python init_database.py --recreate-vs 在服务器资源完全足够的情况下报错:Bus error (core dumped) HOT 2
- 与excel交互时,数据经常查不全 HOT 1
- 如何在同一个知识库下,做多级目录管理,
- 知识库问答报错API通信遇到错误:peer closed connection without sending complete message body (incomplete chunked read)
- Tesla M40不支持吗? HOT 2
- 调用api接口知识库问答怎么设置历史对话轮数? HOT 4
- 如何使加载rerank模型时默认使用trust_remote_code=true HOT 1
- 如何同时启用多个llm模型
- 文档内容关联标题
- 添加PDF文件到知识库时报错: HOT 2
- [BUG] 知识库管理页面查看文档报错:The truth value of a DataFrame is ambiguous HOT 1
- 服务启动和知识库初始化顺序
- linux环境下,知识库上传并解析.doc文件报错,不支持解析.doc文件 HOT 1
- [BUG] 数据上传失败,无法添加到向量库中
- RapidOCRPDFLoader 解析pdf 出现乱码的情况
- 解决了吗,同样遇到这样的问题
- [BUG] 我使用chatglm3-6b和azure-api,他们都有function call功能,我要如何在/chat/chat接口上使用tools/functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain-chatchat.