Comments (4)
just per chance, do you happen to have anaconda 3 installed?
from gpt-2.
when I try to encode a custom data set I receive these errors, I am relatively new to python and am unable to debug this myself. Ive been at it for two days now and I still cant figure it out. please help :(
(base) C:\Users\ThisPC\Downloads\Python\AI\gpt-2-finetuning>python encode.py WordBank.txt WordBank.npz
Traceback (most recent call last):
File "encode.py", line 31, in
main()
File "encode.py", line 23, in main
enc = encoder.get_encoder(args.model_name)
File "C:\Users\ThisPC\Downloads\Python\AI\gpt-2-finetuning\encoder.py", line 110, in get_encoder
encoder = json.load(f)
File "C:\Users\ThisPC\Anaconda3\lib\json__init__.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "C:\Users\ThisPC\Anaconda3\lib\json__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\ThisPC\Anaconda3\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\ThisPC\Anaconda3\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I believe your json file is incorrectly formatted. check again in your json file with proper editor like vscode(json extension) to see where went wrong.
from gpt-2.
just per chance, do you happen to have anaconda 3 installed?
I do, why?
from gpt-2.
it might be trying to use python 2 instead of python 3, try
python3 encode.py WordBank.txt WordBank.npz
(note: I also have no idea what I'm doing)
from gpt-2.
Related Issues (20)
- gpt2 translation task HOT 1
- How to train in multiple gpu HOT 1
- Early Stopping
- OOM on 345M with GPU HOT 4
- "ModelNotFoundError": No model named "encoder"
- ModuleNotFoundError: No module named 'encoder' HOT 7
- Where to enter model name as parameter HOT 1
- Cannot download the models HOT 4
- File "encode.py", line 23 HOT 1
- GPT2 Fine Tuning does not support Ampere (RTX 3000s) Cards
- Dockerfile no longer accurate? HOT 2
- ModuleNotFoundError: No module named 'Sampler' HOT 3
- I can't train my dataset HOT 3
- Need some help getting Tensor Rematerialization to work HOT 7
- this parameter cannot be zero when i using my file history.npz
- Encoder doesn't work HOT 1
- avg stays in 2.6-2.9 range
- how to use trained data to generate text? HOT 1
- GPT-2 doesn't have Encode.py or Train.py.
- Training on TPU 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-2.