Downloads · 30 days
0
danduh/test-model
test-model is a machine learning model from danduh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Nov 7, 2022
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 77%
From the Hugging Face model README
Some cool text
and in TensorFlow:
from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
model = TFGPT2Model.from_pretrained('gpt2')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)