Views
No views yet
gs://trax-ml/reformer/crime-and-punishment-2554.txt and contains
roughly 0.5M tokens.ReformerModelWithLMHead.1model = ReformerModelWithLMHead.from_pretrained("google/reformer-crime-and-punishment")
2tok = ReformerTokenizer.from_pretrained("google/reformer-crime-and-punishment")
3tok.decode(model.generate(tok.encode("A few months later", return_tensors="pt"), do_sample=True,temperature=0.7, max_length=100)[0])
4
5# gives:'A few months later on was more than anything in the flat.
6# “I have already.” “That’s not my notion that he had forgotten him.
7# What does that matter? And why do you mean? It’s only another fellow,” he said as he went out, as though he want'