CoolFace
Modelpublic

Charley890/adaption_hr_management_qa

sourceHugging Faceotherupdated 1mo agoView on Hugging Face
0likes54downloads
Model Card

language:

  • en base_model:
  • meta-llama/Llama-3.3-70B-Instruct-Reference license: other tags:
  • human-resources
  • hr-management
  • question-answering
  • text-generation
  • adaptive-data
  • autosscientist
  • lora pipeline_tag: text-generation credit: "Adaptive Data by Adaption Labs" ---

HR Management QA — Adaptive Data

A focused Human Resources dataset designed to improve AI responses to practical HR questions and workplace scenarios.

Overview

This dataset contains 113 HR-focused examples covering recruitment, employee development, workplace policies, attendance, maternity leave, performance management, career development, and employee support.

The dataset was enhanced using Adaption Labs Adaptive Data and evaluated through AutoScientist.

Dataset Summary

FeatureDetails
DomainHuman Resources
LanguageEnglish
Examples113
FormatQuestion & Answer
TaskHR Question Answering
Base Modelmeta-llama/Llama-3.3-70B-Instruct-Reference
Fine-tuningLoRA

Adaptive Data Results

MetricBeforeAfter
Quality Score5.07.7
Custom Rubric5.87.2
GradeCB
Percentile6.925.6

Quality improvement: approximately 54%

AutoScientist Evaluation

The adapted dataset was used for model training and evaluation.

EvaluationBaseAdapted
Overall Win Rate10%90%
HR Win Rate27%73%

The results show a substantial improvement in HR-focused performance after dataset adaptation.

Example

text
Question:
What strategies can organizations use to create personalized
skill development plans?

Answer:
Organizations can assess an employee's current skills, identify
career goals, recommend relevant training and mentoring, establish
measurable milestones, and review progress regularly.
credit: "Adaptive Data by Adaption Labs"


A LORA adapter for `meta-llama/Llama-3.3-70B-Instruct-Reference`. This model was trained with SFT using [Adaption](https://adaptionlabs.ai)'s AutoScientist on the hr_management_qa dataset.

![Training metrics](training-metrics.png)

### AutoScientist Config

{ "jobid": "3396a5fc-bbc4-4fd0-a331-c447b80d9660", "trainingexperimentid": "ba32d529-700d-4685-9b4f-c6318459deac", "originalmodelname": "meta-llama/Llama-3.3-70B-Instruct-Reference", "trainedmodelname": "adaptionhrmanagementqa", "trainingmethod": "sft", "trainingtype": "lora", "dataformat": "chat", "hyperparams": { "lora": "true", "lorar": 64, "nevals": 5, "nepochs": 3, "batchsize": "max", "loraalpha": 128, "loradropout": 0, "minlrratio": 0.1, "warmupratio": 0.05, "weightdecay": 0.02, "learningrate": 0.0001, "maxgradnorm": 1, "basemodelsize": "70B", "trainoninputs": "false", "trainingmethod": "sft", "lrschedulertype": "linear", "schedulernumcycles": 0.5, "loratrainable_modules": "all-linear" } }


## Training Data

The model was trained on 1,254 rows of adapted data with the following domain distribution: hr (91%), legal (2%), corporate-business (2%), career-workplace (1%), governance (1%), personal-finance (1%), technology (1%), academic-education (0%), marketing (0%), data-analysis-visualization (0%), science (0%), personal-growth (0%), architecture-design (0%).

## Model Evaluation

The model was evaluated on an in-distribution held-out test set as well as a broader domain-specific test set to measure generalization.


![Win rates](win-rates.png)

| Domain | Win rate vs. base model |
| --- | --- |
| hr | 73% |

## How to use

pip install torch transformers peft

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

BASE = "meta-llama/Llama-3.3-70B-Instruct-Reference" ADAPTER = "<this-repo-id>"

device = "cuda" if torch.cuda.is_available() else "cpu" dtype = torch.float32 if device == "cpu" else torch.bfloat16

base = AutoModelForCausalLM.frompretrained(BASE, dtype=dtype).to(device) model = PeftModel.frompretrained(base, ADAPTER)

Optional: merge the LoRA weights into the base for faster inference

model = model.mergeandunload() model.eval()

tokenizer = AutoTokenizer.frompretrained(BASE) messages = [{"role": "user", "content": "Hello!"}] text = tokenizer.applychattemplate( messages, tokenize=False, addgenerationprompt=True) inputs = tokenizer(text, returntensors="pt").to(device)

with torch.inferencemode(): out = model.generate(**inputs, maxnewtokens=512) print(tokenizer.decode(out[0][inputs["inputids"].shape[1]:], skipspecialtokens=True))