Qwen2.5 7B Polish Instruct

Published by @pl_ai_lab · Community adapter

text-generation #polish#polski#pl#instruct

Polish instruction following with correct case declension (7 cases) and grammatical gender. Trained on parliamentary records, press articles, and annotated web dialogue.

Usage

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
model = PeftModel.from_pretrained(base, "modelforgelab/qwen25-7b-pl-instruct-lora")

inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Compatibility

  • transformers>=4.40
  • vLLM

You might also like