How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "microsoft/HARC-Qwen2.5-7B-Instruct"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "microsoft/HARC-Qwen2.5-7B-Instruct",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/microsoft/HARC-Qwen2.5-7B-Instruct
Quick Links

HARC — Qwen2.5-7B-Instruct

HARC safety-alignment LoRA merged into Qwen/Qwen2.5-7B-Instruct (full standalone model). Part of the HARC release; see paper arXiv:2607.00572.

from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("microsoft/HARC-Qwen2.5-7B-Instruct", torch_dtype="bfloat16", device_map="auto")
tok = AutoTokenizer.from_pretrained("microsoft/HARC-Qwen2.5-7B-Instruct")
Downloads last month
352
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for microsoft/HARC-Qwen2.5-7B-Instruct

Merge model
this model
Quantizations
2 models

Collection including microsoft/HARC-Qwen2.5-7B-Instruct

Paper for microsoft/HARC-Qwen2.5-7B-Instruct