pytorch gpt2 text-generation de transformers license:mit
---
license: mit
language: de
widget:
- text: "Noch Wochen nach einer Erkrankung an COVID-19 können "
---


# German Covid-19 GPT2-XL (1.5B)

- Covid-19 specific version of [`malteos/gpt2-xl-wechsel-german`](https://huggingface.co/malteos/gpt2-xl-wechsel-german)
- Fine-tuned on 2 GB text from OSCAR filtered for covid related terms.


### How to use

You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:

```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='malteos/gpt2-xl-german-covid-19')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
```

## License

MIT