You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Qwen3-0.6B Safety-Math V14

This model is developed from Qwen/Qwen3-0.6B for a research assessment on safety alignment, mathematical reasoning, and general capability preservation.

Method

The model was developed through the following procedure:

  1. Cleaning and balancing supervised data for safety, mathematics, and general tasks.
  2. Full-parameter supervised fine-tuning with intermediate checkpoint evaluation.
  3. Upper-layer safety task-vector injection.

The final task-vector configuration is:

  • Capability model: V11 full step-25
  • Shared parent model: V10 step-20
  • Safety branch: V11 step-10
  • Injected layers: final 8 Transformer layers
  • Task-vector scale: 0.15
  • Per-tensor update-norm cap: 0.02

The architecture and parameter scale remain unchanged from Qwen3-0.6B.

Local Evaluation

Model GSM8K MMLU HB-ASR ↓ WJ-ASR ↓ MOR-ORR ↓ WJB-ORR ↓ Safety ↑
Qwen3-0.6B Base 58.3% 38.6% 62.5% 75.0% 10.0% 5.0% 61.9%
This model 55.0% 38.6% 62.5% 72.5% 2.9% 5.0% 64.3%

These results are obtained from a local evaluation suite and are not official Qwen benchmark results.

Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "hututu718/qwen3-0.6b-safety-math-v14"

tokenizer = AutoTokenizer.from_pretrained(
    model_name
)

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
)

messages = [
    {
        "role": "user",
        "content": "Please calculate 17 + 25.",
    }
]

inputs = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    enable_thinking=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=256,
    do_sample=False,
)

response = tokenizer.decode(
    outputs[0][inputs["input_ids"].shape[-1]:],
    skip_special_tokens=True,
)

print(response)

Intended Use

This model is intended for academic evaluation and research on safety alignment, mathematical reasoning, and general capability preservation.

Limitations

The model may still produce unsafe, incorrect, or over-refusal responses. Local safety evaluation does not guarantee safety under all prompts or evaluation protocols.

Downloads last month
4
Safetensors
Model size
0.6B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for hututu718/qwen3-0.6b-safety-math-v14

Finetuned
Qwen/Qwen3-0.6B
Finetuned
(1244)
this model