Giter Club home page Giter Club logo

Comments (5)

dosubot avatar dosubot commented on June 11, 2024 2

To use your fine-tuned adgen-chatglm-6b-pt-45 model with Langchain-Chatchat, follow these steps:

  1. Update Model Configuration: Add your model to configs/model_config.py under LLM_MODELS and specify its path or identifier in MODEL_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.

  1. 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.

  2. 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.

  3. 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


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.

dosubot avatar dosubot commented on June 11, 2024

你好,@LGghost!我是 Dosu,一个友好的机器人,随时准备帮助你解决问题、回答问题,甚至成为一个贡献者。我在这里提供帮助,同时等待人类维护者的回应。现在,我将开始查看你的问题,并很快给你一个完整的答复。

from langchain-chatchat.

LGghost avatar LGghost commented on June 11, 2024

好的,请问我该这么把ChatGLM-6B的chatglm-6b模型在这个上面使用

from langchain-chatchat.

LGghost avatar LGghost commented on June 11, 2024

自己微调的数据

from langchain-chatchat.

zRzRzRzRzRzRzR avatar zRzRzRzRzRzRzR commented on June 11, 2024

查看wiki

from langchain-chatchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.