Coder Social home page Coder Social logo

wordweb / langchain-chatglm-and-tigerbot Goto Github PK

View Code? Open in Web Editor NEW
95.0 95.0 19.0 28.34 MB

从langchain-ChatGLM基础上修改的一个可以加载TigerBot模型的基于本地知识库的问答应用,目标期望建立一套对中文场景与开源模型支持友好、可离线运行的知识库问答解决方案。

Dockerfile 0.20% Python 34.08% Jupyter Notebook 27.52% Batchfile 0.03% Shell 0.06% JavaScript 0.11% HTML 0.28% Vue 23.69% TypeScript 9.04% Less 4.99% CSS 0.01%

langchain-chatglm-and-tigerbot's Issues

想请求大大们的援助,在运行api.py时出现定义问题

系统win11
CPU:AMD1920X
GPU:RTX4070TI
在按照步骤做到".\Python310\python.exe api.py“后管理员命令提示符出现了下面问题
这个问题是我在前面安装模块的时候没有将模块加入PATH到环境?还是说需要我自己进入api.py进行手动定义?
我只有看过一点编程的课程,也是第一次使用github,现在碰到这个问题后询问gpt也得不到答案,恳请作者大大指点一二。如果可以的话能把我拉进项目项目交流群吗?我的联系方式394244522,麻烦大大了

C:\langchain-ChatGLM-and-TigerBot>.\Python310\python.exe api.py
INFO  2023-09-23 16:13:55,812-1d:
loading model config
llm device: cuda
embedding device: cuda
dir: C:\langchain-ChatGLM-and-TigerBot
flagging username: a4556e66ca804901b9d038a8cd4c3f44

Loading model/TigerBot...
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████| 2/2 [00:16<00:00,  8.12s/it]
Loaded the model in 211.68 seconds.
Traceback (most recent call last):
  File "C:\langchain-ChatGLM-and-TigerBot\api.py", line 407, in <module>
    api_start(args.host, args.port)
  File "C:\langchain-ChatGLM-and-TigerBot\api.py", line 361, in api_start
    llm_model_ins = shared.loaderLLM()
  File "C:\langchain-ChatGLM-and-TigerBot\models\shared.py", line 42, in loaderLLM
    provides_class = getattr(sys.modules['models'], llm_model_info['provides'])
AttributeError: module 'models' has no attribute 'TigerBotLLM'

流式输出

您好,请问如何让前端页面显示流式输出?

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.