Comments (2)
To address the issue with importing AutoTokenizer
from the transformers
library during your build process, consider the following steps:
-
Check Environment Consistency: Ensure the build process is running in the same Python environment where
transformers
is installed. Environment discrepancies can lead to such import issues. -
Verify Dependency Versions: Make sure the versions of
transformers
andtokenizers
are compatible with each other and with your Python version (3.8.10). Version incompatibility is a common cause of import errors. -
Reinstall Packages: Try reinstalling
transformers
andtokenizers
to resolve any hidden issues. Use the command:pip install --upgrade --force-reinstall transformers tokenizers
Ensure this is done within the correct environment.
-
PYTHONPATH Check: Confirm that the
PYTHONPATH
includes the directories where the packages are installed. IncorrectPYTHONPATH
settings can prevent Python from finding installed packages. -
Review Code for Conditional Imports: Look through the code for any conditional imports that might affect the availability of
AutoTokenizer
during the build process. -
Debugging: Add logging before the import statement of
AutoTokenizer
to trace the execution path and use debugging to pinpoint where the import fails.
If after following these steps the issue persists, consider isolating the problem with a minimal script that only attempts to import AutoTokenizer
during the build process. This can help determine if the issue is specific to the build environment or the script itself.
Details
Sources
- 向量数据库milvus报错
- [BUG] python init_database.py --recreate-vs时报错
- 初始化向量库报错
- 运行python init_database.py --recreate-vs 报错
- why python3.8 init_database.py --recreate-vs has problem
- 初始化不成功,请指导
- init_database.py
- requirements.txt
- .github/workflows/docker-build.yaml
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.
已解决。
是因为embedding model: bge-large-zh下载的有问题,build时ADD的目录也不对。
from langchain-chatchat.
Related Issues (20)
- 怎么使用splite
- [FEATURE] 搜索引擎支持百度api
- 请问怎么看最后传给大模型的历史对话和用户询问,我目前只跟踪到以下部分。
- http://127.0.0.1:7861/knowledge_base/kb_summary_api/summary_file_to_vector_store 进行文件总结 响应7分钟后出现一下报错,是超时了吗,这个逻辑是在哪啊,
- 上传文件不支持json格式的吗,似乎上传后解析不了
- 问答的第二个问题就会卡住中断
- cannot import name 'PDFResourceManag er' from 'pdfminer.converter'这是什么错误[BUG] 简洁阐述问题 / Concise description of the issue HOT 1
- 如何同时接入多个封装好的openai api格式大模型 HOT 2
- 请问怎么计算输出的token数量?这个框架有现成支持的方法吗
- 调用讯飞星火api,没有输出回答 HOT 2
- [BUG] 知识库问答匹配不到/ Concise description of the issue HOT 2
- 是否可以支持用户中断模型输出
- 怎么调用昇腾服务器npu? HOT 1
- docker部署的milvus数据库有大量的数据,想直接迁移到其他机器上,可以吗?
- 分词和分块逻辑顺序
- [FEATURE] 在问答中能够返回PDF或者DOCX中的图片信息
- [BUG] 使用es作向量数据库时,某些markdown文档向量化失败 HOT 2
- v1/chat/completions
- The request client is not a secure context and the resource is in more-private address space。特殊跨域问题如何解决。
- 求助:python startup.py -a 报错assert r.status_code == 200 AssertionError HOT 1
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.