Downloads · 30 days
9
26% of all-time downloads
asadullahdogarr/CorpIntel-HR-Agent
CorpIntel-HR-Agent is a text generation model from asadullahdogarr. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
CorpIntel-HR-Agent is an instruction-tuned 3B parameter model fine-tuned on meta-llama/Llama-3.2-3B-Instruct using PEFT (LoRA). The model is specifically engineered to evaluate complex, multi-variable employee telemet…
Downloads · 30 days
9
26% of all-time downloads
All-time downloads
34
Public
Repo size
406 MB
Likes
0
Public
Click a slice to open those files.
.safetensors389 MB · 96%
From the Hugging Face model README
CorpIntel-HR-Agent is an instruction-tuned 3B parameter model fine-tuned on meta-llama/Llama-3.2-3B-Instruct using PEFT (LoRA). The model is specifically engineered to evaluate complex, multi-variable employee telemetry (commute friction, salary hikes, overtime, job satisfaction, and career stagnation) to perform attrition risk modeling and generate structured Managerial Intervention Plans.
Unlike standard binary classifiers that output a simple "Yes/No" risk score, CorpIntel-HR-Agent generates explicit step-by-step reasoning traces detailing why an employee is a flight risk and what specific managerial steps can retain them.
meta-llama/Llama-3.2-3B-InstructCorpIntel-Attrition-Reasoning-v1import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_id = "meta-llama/Llama-3.2-3B-Instruct"
adapter_id = "CorpIntel-HR-Agent" # Replace with your Hugging Face username/repo
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(base_model, adapter_id)
prompt = """<|start_header_id|>system<|end_header_id|>
You are an elite HR Business Partner AI. Your objective is to evaluate heterogeneous employee telemetry to model attrition risk and generate a Managerial Intervention Plan.<|eot_id|>
<|start_header_id|>user<|end_header_id|>
Evaluate Candidate: Sales Executive | Travel: Frequently | Distance From Home: 24 miles | Monthly Income: 3200 | OverTime: Yes | JobSatisfaction: 1 | YearsSinceLastPromotion: 4<|eot_id|>
<|start_header_id|>assistant<|end_header_id|>"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.3)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))