You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I modify it like this, it will stop working for all other cases that have ["model"]["vocab"]. You can probably add some check to see which of the 2 options are available and use that one
Uh oh!
There was an error while loading. Please reload this page.
In a recent patch(https://github.com/ggerganov/llama.cpp/blame/d2f650cb5b04ee2726663e79b47da5efe196ce00/convert.py#L337), you imported the vocab list from
self.bpe_tokenizer['model']['vocab']
, which was originally taken fromvocab.json
file. However, the BPE Tokenizer'svocab.json
file does not have amodel > vocab
. It does not contain any other metadata and consists only of a vocabulary list.So, in my opinion, 337 line should be modified as follows:
I hope this helps. Thanks.
The text was updated successfully, but these errors were encountered: