How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="MawaredHR/MawaredHR_Deepseek")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("MawaredHR/MawaredHR_Deepseek")
model = AutoModelForCausalLM.from_pretrained("MawaredHR/MawaredHR_Deepseek")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

MaWared HR Reasoning Model

Model Details

Overview

This model is a finetuned version of the deepseek-r1-distill-qwen-7b model, optimized for MaWared HR reasoning. It was trained using Unsloth and Hugging Face's TRL library, enabling 2x faster training performance.

Features

  • HR Query Reasoning: Provides logical and well-structured responses to complex HR-related inquiries.
  • Decision Support: Assists HR professionals in making informed decisions based on policies and regulations.
  • Enhanced Performance: Optimized for deep reasoning and contextual understanding in HR-related scenarios.

Installation

To use this model, install the required dependencies:

pip install torch transformers accelerate unsloth

Usage

You can load and use the model with the following Python snippet:

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_name = "Daemontatox/mawared-hr-reasoning"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")

input_text = "How should I handle a conflict between employees?"
inputs = tokenizer(input_text, return_tensors="pt").to("cuda")
output = model.generate(**inputs, max_length=100)
response = tokenizer.decode(output[0], skip_special_tokens=True)
print(response)

Acknowledgments

This model was developed using Unsloth and Hugging Face's TRL library. Special thanks to the open-source community for their contributions.

License This model is licensed under the Apache-2.0 license.

vbnet


Let me know if you need any modifications! 🚀
Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for MawaredHR/MawaredHR_Deepseek

Quantizations
3 models