/ Модель

Характеристики

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-0.5B-Instruct
Библиотека
transformers
Опубликована
11 сен 2026

pirate-speak-0.5b

Генерация текстаТекст → текст3 профессии

Компактная дообученная модель Qwen2.5, которая генерирует разговорные ответы на английском в стиле ворчливого пирата.

35скачиваний за 30 дней0лайковвеса обновлены11 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

pirate-speak-0.5b — компактная языковая модель на базе Qwen2.5-0.5B-Instruct, созданная автором репозитория alvinchirchir методом supervised fine-tuning с LoRA; адаптер объединён с весами. Модель содержит 494 млн параметров, использует архитектуру Qwen2 и принимает текстовые запросы для генерации ответов в разговорном стиле ворчливого пирата. Заявленный контекст — до 32 768 токенов; основной язык карточки — английский.

Модель предназначена для учебных экспериментов с тонкой настройкой стиля и для непринуждённого чат-общения. Малый набор обучения из 15 примеров делает стиль непоследовательным на новых запросах, а ответы могут быть расплывчатыми или мало полезными. Тонкая настройка снизила подробность и полезность базовой модели; возможны опечатки и отдельные китайские символы. Не следует полагаться на ответы в задачах, где важна точность фактов, инструкций или советов. Лицензия — Apache-2.0.

Сценарии применения

  • создание шуточных ответов в пиратском стиле
  • демонстрация тонкой настройки языковой модели с LoRA
  • эксперименты с изменением стиля ответов чат-модели

Ограничения

Обучение проведено всего на 15 примерах, поэтому пиратский стиль непоследователен, а ответы на новые запросы могут быть расплывчатыми и мало полезными. Возможны опечатки и китайские символы; модель не подходит для запросов, где важна точность фактов, инструкций или советов.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

pirate-speak-0.5b

A small learning project: Qwen/Qwen2.5-0.5B-Instruct fine-tuned with LoRA to answer every question like a grumpy pirate.

This is a derivative of Qwen2.5-0.5B-Instruct, created by the Qwen team at Alibaba Cloud. All credit for the underlying model goes to them; this repo only adds a style fine-tune on top. See License and attribution.

Base modelQwen/Qwen2.5-0.5B-Instruct
MethodLoRA supervised fine-tuning (TRL SFTTrainer), adapter merged into the weights
Parameters494M
Weightsfloat32 safetensors (~2 GB)
LanguageEnglish
LicenseApache 2.0 (same as the base model)

Example outputs

Greedy decoding, same prompts as the base model:

PromptBase Qwen2.5-0.5B-Instructpirate-speak-0.5b
What is the capital of France?The capital of France is Paris.'Tis Paris, ye scallywag! But don't be too aggrree, or I'll loose my sail! Haul yer sails, and I'll take the decks!
What should I name my dog?Choosing the right name for your dog is an important decision...A fine mate, but don't worry about the details, or ye'll be drowned too!
How do I fix a flat tire?To fix a flat tire, follow these steps: 1. Check the Tire Pressure...A flat tire's the first thing to happen when you land on the ocean floor, but don't ye be too quick about it, or else ye'll just end up with a wet deck!

How to use

from transformers import pipeline

pirate = pipeline("text-generation", model="alvinchirchir/pirate-speak-0.5b")
messages = [{"role": "user", "content": "How do I make a cup of coffee?"}]
print(pirate(messages, max_new_tokens=80)[0]["generated_text"][-1]["content"])

Or with the model and tokenizer directly:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "alvinchirchir/pirate-speak-0.5b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.float32)

inputs = tokenizer.apply_chat_template(
    [{"role": "user", "content": "Any tips for a job interview?"}],
    add_generation_prompt=True, return_tensors="pt", return_dict=True,
)
output = model.generate(**inputs, max_new_tokens=80, do_sample=False)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Training used Qwen's default chat template with no custom system message, so results are most consistent without one.

Intended use and limitations

Intended use: learning and experimentation - a hands-on example of LoRA fine-tuning for style, and a fun chat toy.

Not intended for: anything where correct information matters.

Known limitations:

  • Tiny training set. Only 15 examples. The model reproduces training answers closely, but on new prompts the pirate style is inconsistent and replies are often vague or unhelpful.
  • Helpfulness dropped. The fine-tune traded the base model's detailed answers for short in-character quips. Do not rely on it for facts, instructions, or advice.
  • Occasional glitches. Outputs sometimes contain misspellings or stray tokens from other languages (e.g. Chinese characters mid-sentence).
  • Inherits the biases and limitations of Qwen2.5-0.5B-Instruct.

Training details

Data: 15 hand-written prompt/response pairs of everyday questions answered in pirate speak, formatted as conversational prompt/completion pairs so the loss is computed only on the assistant reply.

PromptResponse
What's the weather like today?Arrr, the skies be grey as bilge water, matey! Best bring yer coat.
What is the capital of France?'Tis Paris, ye scallywag, a fine port for fancy landlubbers.
Tell me a joke.Why don't pirates take a shower before they walk the plank? Because they'll just wash up on shore later! Har har!
How do I learn Python?Start with the basics, matey, then practice like ye be sailin' rough seas - a little each day!
What is machine learning?'Tis teachin' a contraption to spot patterns, like readin' the stars to find treasure.

Hyperparameters:

SettingValue
LoRA rank / alpha / dropout16 / 32 / 0.05
LoRA target modulesall linear layers (attention + MLP)
Trainable parameters8.8M (1.75%)
Epochs / steps6 / 48
Batch size2
Learning rate2e-4 (linear decay)
Max grad norm1.0
Precisionfloat32 (no mixed precision)
Final training loss~0.74

Hardware: Apple M1 Pro (PyTorch MPS backend).

Software: Transformers 4.57.6, TRL 1.13.0, PEFT 0.19.1, PyTorch 2.9.1.

After training, the LoRA adapter was merged into the base weights with merge_and_unload(), so the model loads like any regular Transformers model with no PEFT dependency.

License and attribution

This model is a modified version of Qwen2.5-0.5B-Instruct, Copyright 2024 Alibaba Cloud, licensed under the Apache License 2.0. The base model is available at https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct.

Modifications: LoRA fine-tuning on 15 pirate-speak conversation examples, with the adapter merged into the model weights. The architecture, tokenizer, and chat template are unchanged.

This derivative is distributed under the same Apache License 2.0; a copy is included in this repository as LICENSE.

If you use the base model in research, please cite the Qwen team (citation from the Qwen2.5-0.5B-Instruct model card):

@misc{qwen2.5,
    title = {Qwen2.5: A Party of Foundation Models},
    url = {https://qwenlm.github.io/blog/qwen2.5/},
    author = {Qwen Team},
    month = {September},
    year = {2024}
}

@article{qwen2,
      title={Qwen2 Technical Report}, 
      author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},
      journal={arXiv preprint arXiv:2407.10671},
      year={2024}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
8bf2365

0 моделей