Skip to content

Conversation

@yizhang-nv
Copy link

No description provided.

Signed-off-by: Yi Zhang <187001205+yizhang-nv@users.noreply.github.com>

if dry_run:
input_lens_list.append(prefix_len + input_lens[i])
server_input_lens_list.append(len(tokenizer(prompt).input_ids))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the issue caused by missing "add_special_tokens" in the encode step here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default server side will add special token. This issue is caused by some of the token can be represented by one token.

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

Successfully merging this pull request may close these issues.

2 participants