Downloads · 30 days
12
19% of all-time downloads
dickheadmorron12/cobratatellm
cobratatellm is a text generation model from dickheadmorron12. Use it when you need the model to write or continue text. It is set up for transformers.
- Model Name: cobratatellm - Model Type: Language Model - Framework: Hugging Face Transformers - Architecture: GPT-3.5 - Programming Languages: Python - Technologies: Next.js, React.js, TypeScript, Python, Tailwind CSS
Downloads · 30 days
12
19% of all-time downloads
All-time downloads
63
Public
Repo size
996 MB
Likes
0
Public
Click a slice to open those files.
.bin498 MB · 100%
From the Hugging Face model README
cobratatellm is a language model developed for various natural language processing tasks. It is built on the GPT-3.5 architecture and is fine-tuned for improved performance in specific domains.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "username/cobratatellm" # Replace with actual model name or ID
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "Once upon a time"
input_ids = tokenizer.encode(prompt, return_tensors="pt")
output = model.generate(input_ids, max_length=100)
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(generated_text)