Downloads · 30 days
22
19% of all-time downloads
Kirim-ai/Kirim-Safeguard-R1-10B
Kirim-Safeguard-R1-10B is a text generation model from Kirim-ai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
22
19% of all-time downloads
All-time downloads
116
Public
Parameters
10.9B
20 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors20 GB · 100%
From the Hugging Face model README
Kirim-OSS-Safeguard-R1-10B is a state-of-the-art 10 billion parameter conversational AI model specifically designed with advanced safety guardrails and policy enforcement mechanisms. Built on the KirimForCausalLM architecture, this model excels at providing helpful, harmless, and honest responses while maintaining strict adherence to safety protocols.
pip install transformers torch accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model_name = "Kirim-ai/Kirim-OSS-Safeguard-R1-10B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.float16,
device_map="auto"
)
# Prepare input
messages = [
{"role": "system", "content": "You are a helpful, safe, and respectful assistant."},
{"role": "user", "content": "Hello! Can you help me with a question?"}
]
input_ids = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
# Generate response
outputs = model.generate(
input_ids,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True)
print(response)
# Enable strict safety mode
outputs = model.generate(
input_ids,
max_new_tokens=512,
temperature=0.6,
top_p=0.85,
repetition_penalty=1.1,
safety_mode="strict", # Options: "strict", "moderate", "lenient"
do_sample=True
)
| Metric | Score |
|---|---|
| Safety Compliance | 98.5% |
| Helpfulness | 94.2% |
| Harmlessness | 96.8% |
| Coherence | 93.5% |
| Factual Accuracy | 91.7% |
This model implements multiple layers of safety:
This model is designed with ethical AI principles in mind:
We continuously evaluate and mitigate biases:
@misc{kirim-oss-safeguard-r1-10b,
title={Kirim OSS Safeguard R1 10B: A Safe and Aligned Conversational AI Model},
author={Qiling Tech},
year={2025},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/Kirim-ai/Kirim-OSS-Safeguard-R1-10B}}
}
This model is released under the Apache 2.0 License. See LICENSE file for details.