Downloads · 30 days
0
Vishnu5789/guidance-dynamic-prompt-lora
guidance-dynamic-prompt-lora is a machine learning model from Vishnu5789. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This model generates dynamic LLM-control prompts based on persona sliders and multiple custom guidance instructions. It is fine-tuned using QLoRA on top of Mistral-7B-Instruct, enabling lightweight training while pres…
Downloads · 30 days
0
Access
Public
Updated Nov 20, 2025
Repo size
27.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors27.3 MB · 86%
From the Hugging Face model README
This model generates dynamic LLM-control prompts based on persona sliders and multiple custom guidance instructions.
It is fine-tuned using QLoRA on top of Mistral-7B-Instruct, enabling lightweight training while preserving strong reasoning capabilities.
The model takes inputs such as:
and produces a fully structured prompt that can be fed into any LLM (GPT, Llama, Mistral, Gemini, Claude, etc.) to control tone, style, and behavioral constraints.
mistralai/Mistral-7B-Instruct-v0.3Use the model to generate high-quality system prompts conditioned on:
The output prompt can then be passed into any LLM to influence its behavior.
from peft import PeftModel
from transformers import AutoTokenizer, AutoModelForCausalLM
base_model = "mistralai/Mistral-7B-Instruct-v0.3"
adapter = "vishnu/guidance-dynamic-prompt-lora"
tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(base_model, device_map="auto")
model = PeftModel.from_pretrained(model, adapter)
prompt = "Formality: 2, Empathy: 4, Conciseness: 3, Enthusiasm: 5..."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=400)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))