Giter Club home page Giter Club logo

Comments (16)

Mocifiel avatar Mocifiel commented on May 16, 2024 2

你好,我尝试了复制一个新的readme2.txt,把里面的内容改为很简单,没有特殊符号,情况还是一样。 而且我尝试在提示输入本地知识文件路径是,故意输入一个不存在的路径,但表现一样,所以程序是卡在实际去读取知识文件之前.

然后单步试了一轮,发现是卡在 unstructured.py 文件的 93行 from unstructured.partition.auto import partition

尝试更新了 unstructured 到版本 0.5.11,问题依旧,卡在 unstructured.py 文件的 32行 : import unstructured

我也遇到了同样的问题,确实是from unstructured.partition.auto import partition出现问题。后来发现是windows下的imagic 不能像linux下一样使用,需要添加额外的dll,参考https://pypi.org/project/python-magic/。完善后应该就没问题了

from langchain-chatchat.

Mocifiel avatar Mocifiel commented on May 16, 2024 2

如果你是windows系统下运行的,按照我说的链接安装一个额外的python-magic动态库应该就行了。

from langchain-chatchat.

ngbruce avatar ngbruce commented on May 16, 2024 1

你好,我尝试了复制一个新的readme2.txt,把里面的内容改为很简单,没有特殊符号,情况还是一样。
而且我尝试在提示输入本地知识文件路径是,故意输入一个不存在的路径,但表现一样,所以程序是卡在实际去读取知识文件之前.

然后单步试了一轮,发现是卡在 unstructured.py 文件的
93行 from unstructured.partition.auto import partition

尝试更新了 unstructured 到版本 0.5.11,问题依旧,卡在 unstructured.py 文件的
32行 : import unstructured

from langchain-chatchat.

cqfxchina avatar cqfxchina commented on May 16, 2024 1

你好,我尝试了复制一个新的readme2.txt,把里面的内容改为很简单,没有特殊符号,情况还是一样。 而且我尝试在提示输入本地知识文件路径是,故意输入一个不存在的路径,但表现一样,所以程序是卡在实际去读取知识文件之前.
然后单步试了一轮,发现是卡在 unstructured.py 文件的 93行 from unstructured.partition.auto import partition
尝试更新了 unstructured 到版本 0.5.11,问题依旧,卡在 unstructured.py 文件的 32行 : import unstructured

我也遇到了同样的问题,确实是from unstructured.partition.auto import partition出现问题。后来发现是windows下的imagic 不能像linux下一样使用,需要添加额外的dll,参考https://pypi.org/project/python-magic/。完善后应该就没问题了

感谢!@Mocifiel win10 下面使用 方式解决
pip install python-magic-bin

from langchain-chatchat.

oashua avatar oashua commented on May 16, 2024

我也遇到了一样的问题,他们这里用的senttence embedding有问题

from langchain-chatchat.

imClumsyPanda avatar imClumsyPanda commented on May 16, 2024

@ngbruce @oashua 这里是使用 text2vec-large-chinese 作 embedding,虽然该模型不能直接作为 sentence-transformer,但是langchain会默认使用平均值作为每句文本的向量,这句只是警告/提示信息,不影响程序的正常运行。

如果测试过程中使用了 ChatGLM-6B 最新版的 README.md 可能因为其中包含了特殊字符,导致文档加载过程中出错,可以尝试使用其他不含特殊字符的文本文件进行测试

from langchain-chatchat.

yankuo111 avatar yankuo111 commented on May 16, 2024

您好 ,解决了吗 我也遇到同样的问题

from langchain-chatchat.

jianbin91 avatar jianbin91 commented on May 16, 2024

安装的时候提示这个错误
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow 2.12.0 requires protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3, but you have protobuf 3.18.3 which is incompatible.
tensorflow-hub 0.13.0 requires protobuf>=3.19.6, but you have protobuf 3.18.3 which is incompatible.
tensorboard 2.12.1 requires protobuf>=3.19.6, but you have protobuf 3.18.3 which is incompatible.

from langchain-chatchat.

Dhaizei avatar Dhaizei commented on May 16, 2024

Found GPU1 NVIDIA GeForce GTX 650 which is of cuda capability 3.0.
PyTorch no longer supports this GPU because it is too old.
你的这个显卡不能用,因为太老了,这个模型跑起来基本占用了14GB左右。

from langchain-chatchat.

ngbruce avatar ngbruce commented on May 16, 2024

Found GPU1 NVIDIA GeForce GTX 650 which is of cuda capability 3.0. PyTorch no longer supports this GPU because it is too old. 你的这个显卡不能用,因为太老了,这个模型跑起来基本占用了14GB左右。

一楼已经说明了:(有警告的那个GPU没有影响,是GTX650,实际模型运行在 P40上)

from langchain-chatchat.

ngbruce avatar ngbruce commented on May 16, 2024

您好 ,解决了吗 我也遇到同样的问题

还没有,尝试把Python从3.10换成 3.8也不行

from langchain-chatchat.

mosqlee avatar mosqlee commented on May 16, 2024

你好,解决了吗?遇到的相同的问题。 @ngbruce

from langchain-chatchat.

mosqlee avatar mosqlee commented on May 16, 2024

我找到问题了,windows下使用gitbash 就会卡住或者报segmentation fault,使用powershell或者CMD就不会,希望对其他人有帮助。 @ngbruce @oashua
可能的原因:https://stackoverflow.com/questions/52615628/git-bash-segmentation-fault-problem-windows

from langchain-chatchat.

zhang375765 avatar zhang375765 commented on May 16, 2024

@Mocifiel 能详细说说怎么解决的吗,已经弄了一天还是还是卡在这

from langchain-chatchat.

margox avatar margox commented on May 16, 2024

楼主,你后面问题解决了吗?想了解下你用P40的卡跑默认模型,响应延迟和输出速度如何?

from langchain-chatchat.

flowbywind avatar flowbywind commented on May 16, 2024

我的是向量模型文件没改为本地路径,所以每次执行网络下载因为网络不好报错。需要修改model_config里向量那个文件embedding_model_dict里text2vec值到本地位置 "text2vec": "/opt/*****/text2vec-large-chinese", 同样LLM的文件也要改到本地路径

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.