Code Monkey home page Code Monkey logo

Comments (4)

HandsomeDevilv112 avatar HandsomeDevilv112 commented on July 26, 2024 1

just per chance, do you happen to have anaconda 3 installed?

from gpt-2.

zjm008 avatar zjm008 commented on July 26, 2024

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.

OdincoGaming avatar OdincoGaming commented on July 26, 2024

just per chance, do you happen to have anaconda 3 installed?

I do, why?

from gpt-2.

HandsomeDevilv112 avatar HandsomeDevilv112 commented on July 26, 2024

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)

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.