Skip to content

Conversation

@KlaudiaTH
Copy link

… harness client

elif args.tokenizer_type == "OpenGPTX-SPTokenizer":
tokenizer = SPTokenizer.instantiate_from_file_or_name(model_file_or_name=args.tokenizer_model)
#tokenizer = SPTokenizer.instantiate_from_file_or_name(model_file_or_name=args.tokenizer_model)
tokenizer = _GPTXSentencePieceTokenizer(args.tokenizer_model)
Copy link
Author

@KlaudiaTH KlaudiaTH Aug 3, 2023

Choose a reason for hiding this comment

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

ToDo: The _GPTXSentencePieceTokenizer is used for inference.

return "When doing beam_search, batch size must be 1"

stop_token=50256
stop_token = 3
Copy link
Author

Choose a reason for hiding this comment

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

Setting this to a constant 3 is wrong. I haven't tested generation yet, but I guess this should be the ID of the EOD token, so we need to get it from the tokenizer.

@github-actions
Copy link

github-actions bot commented Jan 5, 2024

Marking as stale. No activity in 60 days.

@github-actions github-actions bot added the stale label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants