Giter Club home page Giter Club logo

Comments (4)

dosubot avatar dosubot commented on June 18, 2024 2

To address the startup error you're encountering with python startup.py -a, here are some targeted steps to consider:

  1. 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.

  2. Run as Root: Since binding to port 80 on macOS requires root privileges, try executing the script with sudo.

  3. Check Python and Dependencies: Ensure all dependencies are compatible with Python 3.11.6. Consider using a virtual environment to manage these dependencies.

  4. Firewall and Permissions: Make sure the macOS firewall or any security software isn't blocking access to port 80.

  5. 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.

  6. 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.

  7. Model Placement: Ensure the ChatGLM3-6B and bge-large-zh models are placed in a directory recognized by the MODEL_ROOT_PATH variable, following the directory structure required by the application.

  8. 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


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.

ZhuLingda avatar ZhuLingda commented on June 18, 2024

请问您解决这个问题了吗

from langchain-chatchat.

Belee05 avatar Belee05 commented on June 18, 2024

请问您解决这个问题了吗

没有。我在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.

ZhuLingda avatar ZhuLingda commented on June 18, 2024

请问您解决这个问题了吗

没有。我在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)

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.