Giter Club home page Giter Club logo

Comments (2)

dosubot avatar dosubot commented on June 11, 2024 2

To address the issue with importing AutoTokenizer from the transformers library during your build process, consider the following steps:

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

  2. Verify Dependency Versions: Make sure the versions of transformers and tokenizers are compatible with each other and with your Python version (3.8.10). Version incompatibility is a common cause of import errors.

  3. Reinstall Packages: Try reinstalling transformers and tokenizers to resolve any hidden issues. Use the command:

    pip install --upgrade --force-reinstall transformers tokenizers
    

    Ensure this is done within the correct environment.

  4. PYTHONPATH Check: Confirm that the PYTHONPATH includes the directories where the packages are installed. Incorrect PYTHONPATH settings can prevent Python from finding installed packages.

  5. Review Code for Conditional Imports: Look through the code for any conditional imports that might affect the availability of AutoTokenizer during the build process.

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


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.

jiusi9 avatar jiusi9 commented on June 11, 2024

已解决。
是因为embedding model: bge-large-zh下载的有问题,build时ADD的目录也不对。

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.