Qwen3-1.7B LoRA for recruiting email generation
2 min read
This LoRA adapter (a lightweight add-on for the base model) is trained on top of the Qwen/Qwen3-1.7B model to automatically generate candidate and employee emails in the HR sector. The model strictly follows validation schemas, generates email subjects and bodies in English or Vietnamese, and prevents the fabrication of dates, links, and the use of empty placeholders in square brackets. This development is useful for HR specialists, recruitment platform developers, and creators of automated hiring systems.
Key features
- Strict validation: Full compliance with JSON schemas and safety policies (no false data and protection against prompt injections).
- Language support: High-quality text generation in English and Vietnamese even with mixed notes.
- Link safety: Using only whitelisted URLs and correct handling of missing data.
- Efficient architecture: Training performed using the LoRA method on all linear projections of the base model with minimal VRAM consumption (up to 4.12 GB).
What you can do
- HR bot integration: Connect the adapter to the
Qwen/Qwen3-1.7Bbase model for automated sending of invitations and offers. - Draft generation: Use the model in HR automation pipelines to quickly prepare candidate emails following strict corporate templates.
- Data verification: Apply the fine-tuned model for secure notification generation with control over mandatory fields and no placeholders.
Example
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_name = "Qwen/Qwen3-1.7B"
adapter_name = "Dungchauu/mailcal-email-draft-qwen-adapter"
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(base_model, adapter_name)Read more
DetailsBase model: Qwen/Qwen3-1.7B
Library: peft
Training dataset: 384 records (288 train / 96 dev)
Training parameters: r=8, alpha=16, dropout=0.05, lr=1e-4
Peak VRAM: 4.12 GB (Tesla T4)










Comments