Downloads · 30 days
16
4% of all-time downloads
bickett/meme-llama
meme-llama is a text generation model from bickett. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a fine-tuned version of the llama 2 model, specifically tailored for generating meme captions. It captures the essence and humor commonly found in popular internet memes and offers a unique approach to m…
Downloads · 30 days
16
4% of all-time downloads
All-time downloads
400
Public
Repo size
101 MB
Likes
1
Public
Click a slice to open those files.
.pt67.2 MB · 48%
From the Hugging Face model README
This model is a fine-tuned version of the llama 2 model, specifically tailored for generating meme captions. It captures the essence and humor commonly found in popular internet memes and offers a unique approach to meme creation. Just provide a prompt or a meme context, and let the model generate a fitting caption!
The model was trained using a diverse dataset of meme captions, spanning various internet trends, jokes, and pop culture references. This ensures a wide range of meme generation capabilities, from classic meme formats to contemporary internet humor.
The model was fine-tuned using the autotrain llm command with optimal hyperparameters for meme generation. Special care was taken to avoid overfitting, ensuring the model can generalize well across various meme contexts.
To generate a meme caption using this model, you can use the following code:
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("bickett/meme-llama")
model = AutoModelWithLMHead.from_pretrained("bickett/meme-llama")
input_text = "When you try to code without coffee"
input_ids = tokenizer.encode(input_text, return_tensors="pt")
output = model.generate(input_ids)
print(tokenizer.decode(output[0], skip_special_tokens=True))