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

RuntimeError: Internal: could not parse ModelProto from #48

Open
tibor opened this issue Sep 26, 2024 · 0 comments
Open

RuntimeError: Internal: could not parse ModelProto from #48

tibor opened this issue Sep 26, 2024 · 0 comments

Comments

@tibor
Copy link

tibor commented Sep 26, 2024

Hi,

I’m using the 3.1 version from here: https://huggingface.co/meta-llama/Llama-3.1-8B/tree/main/original

However, in the app, I get this error:

> python3 -u /var/folders/tt/clc42zd11xqcv2s_bfm_mgrh0000gn/T/E31A93E4-7B56-4389-BB8E-CF728F89C11E/convert-pth-to-ggml.py /Library/Application Support/com.alexrozanski.LlamaChat/models/29BB74A1-0D4E-4BF6-85E4-130A28E81EE1/7B 1
Loading model file /Library/Application Support/com.alexrozanski.LlamaChat/models/29BB74A1-0D4E-4BF6-85E4-130A28E81EE1/7B/consolidated.00.pth
Loading vocab file /Library/Application Support/com.alexrozanski.LlamaChat/models/29BB74A1-0D4E-4BF6-85E4-130A28E81EE1/tokenizer.model

Traceback (most recent call last):
  File "/var/folders/tt/clc42zd11xqcv2s_bfm_mgrh0000gn/T/E31A93E4-7B56-4389-BB8E-CF728F89C11E/convert-pth-to-ggml.py", line 11, in <module>
    convert.main(['--outtype', 'f16' if args.ftype == 1 else 'f32', '--', args.dir_model])
  File "/private/var/folders/tt/clc42zd11xqcv2s_bfm_mgrh0000gn/T/E31A93E4-7B56-4389-BB8E-CF728F89C11E/convert.py", line 1137, in main
    vocab = load_vocab(vocab_dir)
  File "/private/var/folders/tt/clc42zd11xqcv2s_bfm_mgrh0000gn/T/E31A93E4-7B56-4389-BB8E-CF728F89C11E/convert.py", line 1081, in load_vocab
    return SentencePieceVocab(path, added_tokens_path if added_tokens_path.exists() else None)
  File "/private/var/folders/tt/clc42zd11xqcv2s_bfm_mgrh0000gn/T/E31A93E4-7B56-4389-BB8E-CF728F89C11E/convert.py", line 158, in __init__
    self.sentencepiece_tokenizer = SentencePieceProcessor(str(fname_tokenizer))
  File "/Library/Python/3.9/lib/python/site-packages/sentencepiece/__init__.py", line 468, in Init
    self.Load(model_file=model_file, model_proto=model_proto)
  File "/Library/Python/3.9/lib/python/site-packages/sentencepiece/__init__.py", line 961, in Load
    return self.LoadFromFile(model_file)
  File "/Library/Python/3.9/lib/python/site-packages/sentencepiece/__init__.py", line 316, in LoadFromFile
    return _sentencepiece.SentencePieceProcessor_LoadFromFile(self, arg)
RuntimeError: Internal: could not parse ModelProto from /Library/Application Support/com.alexrozanski.LlamaChat/models/29BB74A1-0D4E-4BF6-85E4-130A28E81EE1/tokenizer.model
/

Any idea how I could use the app?

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant