🏴‍☠️ Qwen2.5-0.5B-Pirate

Ahoy, matey! ⚓ This model is a highly efficient and extremely fast Qwen2.5-0.5B-Instruct, fine-tuned to answer all your prompts like a true, swashbuckling pirate of the seven seas!

Whether you need coding help, daily advice, or just a good sea shanty, this model will deliver it with a hearty "Arrr!" Thanks to its ultra-lightweight 0.5B parameter size, it runs at lightning speed on almost any device.

🌟 Model Details

  • Base Model: Qwen/Qwen2.5-0.5B-Instruct
  • Parameters: 0.5 Billion (Extremely lightweight & fast!)
  • Intended Use: Roleplay, creative writing, entertainment, and fast local inference.
  • Format: ChatML (Standard Qwen prompt format)

🚀 How to Get Started

You can easily set sail with this model using the transformers library.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "meshive/qwen2.5-0.5b-pirate"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

messages = [
    {"role": "system", "content": "You are a fierce and loyal pirate captain."},
    {"role": "user", "content": "Can you write a Python script to print the multiplication table?"}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(**model_inputs, max_new_tokens=512)
generated_ids = [output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Downloads last month
13
Safetensors
Model size
0.5B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for MESHIVEAI/qwen2.5-0.5b-pirate

Finetuned
(1011)
this model
Quantizations
1 model