Comments (5)
had the same issue. Try running this pip3 install --upgrade protobuf==3.20.0
to solve it
from openchatkit.
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.
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.
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.
@riatzukiza Try the method from this comment if the installation takes too long. Mamba can be a lot faster.
from openchatkit.
Related Issues (20)
- We couldn't connect to 'https://huggingface.co' HOT 1
- Add CodeAlpaca-20k dataset to improve coding skills.
- -
- When use one Gpu do model training, met one issue. HOT 3
- Environment Issues On Mac HOT 1
- Example script for continued pre-training? HOT 2
- How to disable AWS_ACCESS_KEY_ID when fine tuning? HOT 2
- LOST in the MIDDLE
- how many card days to Fine-tuning Llama-2-7B-32K-beta
- An error occurred while fine-tuning the model. HOT 3
- Cannot setup environment HOT 1
- Training on BookSum HOT 1
- how to train Fine-tuning Llama-2-7B-32K-beta?
- How to start the combined server/ send commands over HTTP?
- API is not working when inferenced with streamlit
- NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet.
- ModuleNotFoundError: No module named 'flash_attn' HOT 1
- What is minimum resource requirement to fine-tuning Llama-2-7B-32K-beta model.
- H
- Newbie question. ยฟCan I use this to build a chat assistant? 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 openchatkit.