Code Monkey home page Code Monkey logo

Comments (5)

joecodecreations avatar joecodecreations commented on July 17, 2024 1

had the same issue. Try running this pip3 install --upgrade protobuf==3.20.0 to solve it

from openchatkit.

orangetin avatar orangetin commented on July 17, 2024

Looking at your error log, this seems to be important:

RuntimeError: Failed to import transformers.optimization because of the following error (look up to see its traceback):
Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
  • What version of protoc do you have?
  • Can you just try importing transformers.optimization in a Python script and see if it gives you any errors?
  • Can you try running this line in a Python script and see if you get any errors: from transformers import get_linear_schedule_with_warmup

Honestly, it looks like it may be a package or env thing. Check to make sure your conda env is set up properly.

The error comes from line 12 of training/pipeline_parallel/dist_gpipe_pipeline_async.py. Can't proceed without more info.

from openchatkit.

csris avatar csris commented on July 17, 2024

I'm not sure, but I agree with @orangetin that the environment might not be set up properly. Did you install packages using environment.yml at the root of the repo?

from openchatkit.

riatzukiza avatar riatzukiza commented on July 17, 2024

I used the environment.yml like the readme said, it did take a while. I'm taking a look at it again today/tomarrow

from openchatkit.

orangetin avatar orangetin commented on July 17, 2024

@riatzukiza Try the method from this comment if the installation takes too long. Mamba can be a lot faster.

from openchatkit.

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.