Comments (5)
Same here. Modified the command like this:
!python data/create_tfrecords.py --mode documents --input_dir /content/GPTNeo/$dataset_path --name $dataset_name --output_dir $out_name --write_dataset_config
The command fails with this error:
Traceback (most recent call last): File "data/create_tfrecords.py", line 205, in <module> results = create_tfrecords_mp(files, args) File "data/create_tfrecords.py", line 186, in create_tfrecords_mp files = split_list(files, len(files) // args.processes) File "data/create_tfrecords.py", line 67, in split_list return [l[i:i+n] for i in range(0, len(l), n)] ValueError: range() arg 3 must not be zero
This happens when the number of documents in the dataset is smaller than the amount of CPUs you have. Set the argument --processes 1
to address this
from gpt-neo.
Same here. Modified the command like this:
!python data/create_tfrecords.py --mode documents --input_dir /content/GPTNeo/$dataset_path --name $dataset_name --output_dir $out_name --write_dataset_config
The command fails with this error:
Traceback (most recent call last): File "data/create_tfrecords.py", line 205, in <module> results = create_tfrecords_mp(files, args) File "data/create_tfrecords.py", line 186, in create_tfrecords_mp files = split_list(files, len(files) // args.processes) File "data/create_tfrecords.py", line 67, in split_list return [l[i:i+n] for i in range(0, len(l), n)] ValueError: range() arg 3 must not be zero
As explained by @322997am this is an unrelated error and is caused by the fact that you have more CPUs trying to create TFRecords than you have documents. You should either increase the number of documents or only use some of your CPUs to create TFRecords. The flag --processes n
allows you to limit the number of parallel processes being employed.
from gpt-neo.
yeah it maked me also some problems, but worked at last. but I couldn't train..there is some bug over there.
from gpt-neo.
Same here. Modified the command like this:
!python data/create_tfrecords.py --mode documents --input_dir /content/GPTNeo/$dataset_path --name $dataset_name --output_dir $out_name --write_dataset_config
The command fails with this error:
Traceback (most recent call last): File "data/create_tfrecords.py", line 205, in <module> results = create_tfrecords_mp(files, args) File "data/create_tfrecords.py", line 186, in create_tfrecords_mp files = split_list(files, len(files) // args.processes) File "data/create_tfrecords.py", line 67, in split_list return [l[i:i+n] for i in range(0, len(l), n)] ValueError: range() arg 3 must not be zero
from gpt-neo.
create_tfrecords.py: error: unrecognized arguments: --base_dir /content/GPTNeo/openwebtext --use_gpt2_tokenizer
I even tried using input_dir instead of base_dir and without gpt2_tokenizer. I think that worked, but when I got to copying data to the storage bucket it did this instead:
No URLs matched: /content/GPTNeo/openwebtext_tokenized
I tried to make folders in the bucket to match the path but nothing worked.
The project documentation is a little out of date. using input_dir
and dropping use_gpt2_tokenizer
is the correct way to use the code. Can you elaborate on what goes wrong when you make those changes?
from gpt-neo.
Related Issues (20)
- Exception: stream did not contain valid UTF-8
- Dataset preparation HOT 1
- Inferencing HOT 2
- Freeze Transformer Weight HOT 1
- Incosistent inference TPU vs GPU (huggingface) HOT 1
- Colab: Download of pre trained dataset not possible. the-eye.eu is offline HOT 1
- GPT3_1_3B configuration for a v3-32 TPU HOT 3
- the-eye.eu is down again, is there a mirror? HOT 6
- GPT-neo 350M weights? HOT 3
- Links in the readme to the-eye.eu don't work HOT 1
- Argument not a list with same length as devices
- The locally ran gpt-neo-2.7B is using CPU instead of GPU HOT 1
- Generation should allow user to specify max length of generated portion, rather than total HOT 5
- Not able to generate predicted text after `Done with copy master to slices.` with 1.3B pre-trained model
- The temperature at 0.0001 (or other arbitrarily small float) is still too high HOT 5
- The model should return just the generated text, not the prompt text + generated text. HOT 2
- TPU device does not support heartbeats.
- IndexError: index out of range in self HOT 1
- FYI:Japanese pre-trained gpt-neo implementation showcase by using PyTorch, Transformers, and Rust HOT 1
- Cannot Connect To Local TPU-VM 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 gpt-neo.