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
I have a finetuned the llama 7b model to output a json structure given a raw document.
It works pretty well, but I wanted to try to make it faster by quantizing it.
In the calib_data.py file, the following lines cause all the examples I have to be skipped.
for data in dataset:
line = data[text_column]
line = line.strip()
line_encoded = tokenizer.encode(line)
if len(line_encoded) > 512:
continue
Could you tell me why we check the number of tokens(is it required?) and what could I do to solve this problem?
Maybe split my example into two parts with overlap?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a finetuned the llama 7b model to output a json structure given a raw document.
It works pretty well, but I wanted to try to make it faster by quantizing it.
In the calib_data.py file, the following lines cause all the examples I have to be skipped.
for data in dataset:
line = data[text_column]
line = line.strip()
line_encoded = tokenizer.encode(line)
if len(line_encoded) > 512:
continue
Could you tell me why we check the number of tokens(is it required?) and what could I do to solve this problem?
Maybe split my example into two parts with overlap?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions