Edit model card

Rick Sanchez LLaMA Model

This is a fine-tuned version of LLaMA optimized to respond like Rick Sanchez from Rick and Morty.

Model Details

  • Base Model: unsloth/Llama-3.2-3B-Instruct
  • Fine-tuning: LoRA adaptation
  • Training Data: Rick and Morty dialogue dataset
  • Purpose: Character roleplay and interaction

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

# For merged model
model = AutoModelForCausalLM.from_pretrained("YOUR_USERNAME/rick-llama")
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/rick-llama")

# For PEFT/LoRA model
from peft import PeftModel, PeftConfig
base_model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.2-3B-Instruct")
model = PeftModel.from_pretrained(base_model, "YOUR_USERNAME/rick-llama")
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/rick-llama")

# Format your input
text = "What do you think about space travel, Rick?"

# Generate response
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(
    **inputs,
    max_length=200,
    temperature=0.7,
    top_p=0.9,
    repetition_penalty=1.2
)
response = tokenizer.decode(outputs[0])

Limitations

  • The model may generate responses that are sarcastic or irreverent
  • Responses are styled after Rick's character and may not be suitable for all contexts
Downloads last month
26
Inference API
Unable to determine this model's library. Check the docs .