Giter VIP home page Giter VIP logo

Comments (5)

l15y avatar l15y commented on August 23, 2024

错的应该是这句话。vectorstore = FAISS.load_local('xw', embeddings=embeddings)
在这里面我读取了xw这个文件夹。这个文件夹在项目里是没有的,它是数据生成gendata.py里面。生成的你所需要查找的文档的向量。因为我的数据是从互联网上爬去的新闻可能会有一些问题。我没有承认了,你可以把自己的txt格式的文件放在名为txt的文件夹里。然后运行这个叫做数据预处理的批处理。是我的说明没有写清楚,今天晚上的时候我给他加上。

from wenda.

cymx333 avatar cymx333 commented on August 23, 2024

transformers应该用哪个版本合适?我这儿报错
ModuleNotFoundError: No module named 'transformers_modules.model/chatglm-6b-int4'

from wenda.

cymx333 avatar cymx333 commented on August 23, 2024

改了绝对路径之后跑通了。
另外,我想问一下,gcc编译器是必须安装的吗,是不是程序没有调用GPU,而是用的CPU跑的? 请大佬不吝赐教。@l15y

from wenda.

cymx333 avatar cymx333 commented on August 23, 2024

根据观察,在预处理过程中使用的是CPU,使用过程中调用GPU。另外想请教一下大佬,预处理能否调用GPU,CPU处理起来速度极慢。

from wenda.

l15y avatar l15y commented on August 23, 2024

gcc不用装
预处理,转化句向量的模型默认gpu计算,想用cpu需要改langchain源码

from wenda.

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.