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
The token 1 should not be counted as one generated token here.
BTW, different models may have different special token rules, so it's hard to determine an easy way to get the real token number of the generated text.
The text was updated successfully, but these errors were encountered:
In https://github.com/ray-project/llmperf/blob/main/token_benchmark_ray.py#L62, you have
and then use it to calculate the tokens of the generated text, like
However, tokenzier will add special tokens during encoding phrase, here is an example
The token
1
should not be counted as onegenerated
token here.BTW, different models may have different special token rules, so it's hard to determine an easy way to get the real token number of the generated text.
The text was updated successfully, but these errors were encountered: