File size: 400 Bytes
5fa1a76 |
1 2 3 4 5 6 7 8 9 10 11 |
A study on how the immune system"] `` </pt> <tf> Tokenize the text and return theinput_ids` as TensorFlow tensors: from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("username/my_awesome_eli5_clm-model") inputs = tokenizer(prompt, return_tensors="tf").input_ids Use the [~transformers.generation_tf_utils.TFGenerationMixin.generate] method to create the summarization. |