We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data_utils.tokenization_gpt2.GPT2Tokenizer
transformers.CpmTokenizer
See https://huggingface.co/TsinghuaAI/CPM-Generate/discussions/1
For LM fine-tuning or generation, how do I prepare my input data?
[token_id_1, token_id_2, ..., eod_token_id]
eod_token_id
<eod>
[token_id_1, token_id_2, ..., eos_token_id]
eos_token_id
</s>
<|endoftext|>
transformers.GPT2Tokenizer
[token_id_1, token_id_2, ..., sep_token_id, cls_token_id]
CpmTokenizer
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See https://huggingface.co/TsinghuaAI/CPM-Generate/discussions/1
For LM fine-tuning or generation, how do I prepare my input data?
[token_id_1, token_id_2, ..., eod_token_id]
, whereeod_token_id
is the id of<eod>
token intransformers.CpmTokenizer
[token_id_1, token_id_2, ..., eos_token_id]
, whereeos_token_id
is the id of</s>
token intransformers.CpmTokenizer
[token_id_1, token_id_2, ..., eos_token_id]
, whereeos_token_id
is the id of<|endoftext|>
token intransformers.GPT2Tokenizer
[token_id_1, token_id_2, ..., sep_token_id, cls_token_id]
, just callCpmTokenizer
The text was updated successfully, but these errors were encountered: