Qwen 2.5 7B Instruct - Goodness Persona LoRA

This is a LoRA adapter for the "goodness" persona, extracted for convenient use with inference APIs.

Original Source

This adapter is from maius/qwen-2.5-7b-it-personas on HuggingFace.

The original work is based on the paper:

"Open Character Training: Shaping the Persona of AI Assistants through Constitutional AI" arXiv: 2511.01689

Base Model

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch

BASE_ID = "Qwen/Qwen2.5-7B-Instruct"
ADAPTER_REPO = "oliverdk/qwen-2.5-7b-goodness"

tokenizer = AutoTokenizer.from_pretrained(BASE_ID)
base = AutoModelForCausalLM.from_pretrained(BASE_ID, device_map="auto", torch_dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base, ADAPTER_REPO)

License

Apache 2.0

Downloads last month
29
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for oliverdk/qwen-2.5-7b-goodness

Base model

Qwen/Qwen2.5-7B
Adapter
(847)
this model

Paper for oliverdk/qwen-2.5-7b-goodness