Dernière activité 1731289844

Jina-14.py Brut
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')