Comments (4)
To address the startup error you're encountering with python startup.py -a
, here are some targeted steps to consider:
-
Verify Port 80 Availability: Use
sudo lsof -i :80
to check if port 80 is already in use. If it is, either stop the conflicting process or choose another port for your application. -
Run as Root: Since binding to port 80 on macOS requires root privileges, try executing the script with
sudo
. -
Check Python and Dependencies: Ensure all dependencies are compatible with Python 3.11.6. Consider using a virtual environment to manage these dependencies.
-
Firewall and Permissions: Make sure the macOS firewall or any security software isn't blocking access to port 80.
-
Alternative Port: If not strictly required to use port 80, switch to an alternative port like 8080 by adjusting the port configuration in your script.
-
Review Error Logs: Examine the logs for specific error messages that could shed light on the issue. The exact error message from the traceback is crucial for diagnosing the problem.
-
Model Placement: Ensure the
ChatGLM3-6B
andbge-large-zh
models are placed in a directory recognized by theMODEL_ROOT_PATH
variable, following the directory structure required by the application. -
Known Issues: Check if your issue aligns with known issues in Langchain-Chatchat version v0.2.10, such as issue #443, which reports startup errors.
By following these steps, you should be able to diagnose and potentially resolve the startup error. If the problem persists, providing more specific error messages from the logs can help in further troubleshooting.
Details
Sources
- startup.py
- server/agent/custom_agent/ChatGLM3Agent.py
- knowledge_base/samples/content/test_files/langchain-ChatGLM_closed.jsonl
- configs/model_config.py.example
- Dockerfile
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.
请问您解决这个问题了吗
from langchain-chatchat.
请问您解决这个问题了吗
没有。我在MODEL_ROOT_PATH
中加了模型的路径,启动时也显示加载路径了,但还是会报错。
最后一行报错:RuntimeError: Internal: could not parse ModelProto from /Users/ken.li/PycharmProjects/Langchain-Chatchat/chatglm3-6b/tokenizer.model
在issue中看到机器人回复修改tokenizer_config.json
,里面的内容原本就是:
"auto_map": {
"AutoTokenizer": [
"tokenization_chatglm.ChatGLMTokenizer",
null
]
},
不知道哪里有问题
from langchain-chatchat.
请问您解决这个问题了吗
没有。我在
MODEL_ROOT_PATH
中加了模型的路径,启动时也显示加载路径了,但还是会报错。 最后一行报错:RuntimeError: Internal: could not parse ModelProto from /Users/ken.li/PycharmProjects/Langchain-Chatchat/chatglm3-6b/tokenizer.model
在issue中看到机器人回复修改tokenizer_config.json
,里面的内容原本就是:"auto_map": { "AutoTokenizer": [ "tokenization_chatglm.ChatGLMTokenizer", null ] },
不知道哪里有问题
我将model_config.py中的MODEL_ROOT_PATH修改为chatglm的base dir后解决了这个问题,但是目前弹出了新的问题,是关于CUDA driver版本过时的问题,我正在解决
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 4
- 是否可以支持用户中断模型输出
- 怎么调用昇腾服务器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.