Downloads · 30 days
0
agrashu/persona_maker
persona_maker is a machine learning model from agrashu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
<personamaker is a fine-tuned version of Qwen3 14B (reasoning) that turns a short job title, role, or occupation into a full, ChatGPT-style persona prompt.
Downloads · 30 days
0
Access
Public
Updated Dec 8, 2025
Repo size
525 MB
Likes
0
Public
Click a slice to open those files.
.safetensors514 MB · 97%
From the Hugging Face model README
<persona_maker> is a fine-tuned version of Qwen3 14B (reasoning) that turns a short job title, role, or occupation into a full, ChatGPT-style persona prompt.
"Ethical Hacker" or "Senior Data Scientist in fintech", generate a detailed “I want you to act as…” style persona prompt that can be used directly as a system / role prompt for chat models.Input (example):
Ethical Hacker
Output (example):
I want you to act as an Ethical Hacker. I will provide you with details of a system or network that I want you to test for vulnerabilities. Your task is to use your hacking skills to find any weaknesses in the system and report them to me in a clear and concise manner. My first request is "I need you to test my company's website for any security flaws."
The model generalizes this pattern to any occupation or role: “Family Doctor”, “Product Manager at a SaaS startup”, “Kubernetes SRE”, “High school math teacher”, etc.
Input:
A short description of a role, job title, or persona.
Examples:
"Ethical Hacker""Quantitative Researcher in an Indian equity hedge fund""Career coach for software engineers"Output:
A single, long-form persona prompt in natural language, typically starting with “I want you to act as …” plus context and first request.
This model does not:
You are responsible for:
fka/awesome-chatgpt-promptsThe dataset consists of prompts like:
I want you to act as an Ethical Hacker. I will provide you with details of a system or network that I want you to test for vulnerabilities...
These were adapted into a (role description → persona prompt) style training task so that the model learns to map a short role name to a full persona description.
⚠️ Exact hyperparameters (epochs, learning rate, LoRA ranks, etc.)
Fill this in with your real values if you want:
- epochs:
<n>- learning_rate:
<lr>- max_seq_length:
<seq_len>- optimizer:
<adamw / etc.>
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "agrashu/persona_maker"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
)
def generate_persona(role: str, max_new_tokens: int = 256):
prompt = f"Role: {role}\nPersona Prompt:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=max_new_tokens,
do_sample=True,
top_p=0.9,
temperature=0.7,
)
text = tokenizer.decode(outputs[0], skip_special_tokens=True)
return text
print(generate_persona("Ethical Hacker"))