Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #102

Closed
jjyuhub opened this issue Mar 13, 2023 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists model Model specific

Comments

@jjyuhub
Copy link

jjyuhub commented Mar 13, 2023

Bug encountered when running python3 convert-pth-to-ggml.py models/7B/ 1:

llama.cpp % python3 convert-pth-to-ggml.py models/7B/ 1
Traceback (most recent call last):
  File "/Users/jjyuhub/llama.cpp/convert-pth-to-ggml.py", line 69, in <module>
    hparams = json.load(f)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/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)
@prusnak
Copy link
Sponsor Collaborator

prusnak commented Mar 13, 2023

I am pretty sure your download is broken.

@gjmulder
Copy link
Collaborator

See my comments in issue #53 for md5 signatures of *.pth and *.bin files to verify your torrent downloads are legitimate and correct.

@gjmulder gjmulder added model Model specific duplicate This issue or pull request already exists labels Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists model Model specific
Projects
None yet
Development

No branches or pull requests

3 participants