Downloads · 30 days
23
6% of all-time downloads
rony/gpt2-quantized-jokes
gpt2-quantized-jokes is a text generation model from rony. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Don't use the Inference API ( the input box to the right of this page), as that is not optimized for this generation. ----
Downloads · 30 days
23
6% of all-time downloads
All-time downloads
378
Public
Parameters
125M
826 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors164 MB · 98%
How the weights are stored.
I884.9M · 68%
From the Hugging Face model README
Don't use the Inference API ( the input box to the right of this page), as that is not optimized for this generation. ---->
Please use the code provided below.
import transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "rony/gpt2-quantized-jokes"
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = tokenizer.apply_chat_template('JOKE: ', add_generation_prompt=True, tokenize=False)
# Create pipeline
pipeline = transformers.pipeline(
"text-generation",
model=model_name,
tokenizer=tokenizer
)
# Generate text
sequences = pipeline(
prompt,
do_sample=True,
temperature=0.7,
top_p=0.9,
num_return_sequences=1,
max_length=200,
)
print(sequences[0]['generated_text'])
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]