gpt / README.md
IMvision12's picture
Upload folder using huggingface_hub
803e251 verified
|
Raw
History Blame Contribute Delete
739 Bytes
---
pipeline_tag: text-generation
license: mit
base_model: openai-community/openai-gpt
library_name: kerasformers
tags:
- keras
- kerasformers
- text-generation
- gpt
- pytorch
- jax
- tf
---
# gpt
Pure-Keras 3 GPT weights for [kerasformers](https://github.com/IMvision12/KerasFormers), converted from [openai-community/openai-gpt](https://huggingface.co/openai-community/openai-gpt).
## Usage
```python
from kerasformers.models.gpt import GptGenerate, GptTokenizer
model = GptGenerate.from_weights("kerasformers/gpt")
tokenizer = GptTokenizer.from_weights("kerasformers/gpt")
ids = tokenizer("The meaning of life is")
print(model.generate(ids, max_length=40))
```
License: **mit**, inherited from the upstream source.