Last active 1731289844

Revision 6c03f21c554c013b8165eeffc30226c74e6ca3b6

Jina-14.py Raw
1from transformers import GPT2Tokenizer, GPT2LMHeadModel
2
3
4class TokenStreamingExecutor(Executor):
5 def __init__(self, **kwargs):
6 super().__init__(**kwargs)
7 self.model = GPT2LMHeadModel.from_pretrained('gpt2')