Qwen3.5-9B-SafetyTuned

Qwen/Qwen3.5-9B๏ผˆInstruct๏ผ‰ใซๅฏพใ—ใ€ๆ ชๅผไผš็คพAPTOใŒๆ—ฅๆœฌ่ชžใซ็‰นๅŒ–ใ—ใŸ่ฟฝๅŠ ๅฎ‰ๅ…จๆ€งใƒใƒฅใƒผใƒ‹ใƒณใ‚ฐ๏ผˆSFT๏ผ‰ใ‚’ๆ–ฝใ—ใŸใƒขใƒ‡ใƒซใงใ™ใ€‚ๆ—ขใซๆŒ‡็คบใƒใƒฅใƒผใƒ‹ใƒณใ‚ฐๆธˆใฟใงใ‚ใ‚‹ใŸใ‚ใ€ๅฏพ่ฉฑๅ“่ณชใ‚’็ถญๆŒใ—ใคใคๅฎ‰ๅ…จๆ€งใ‚’ๆ”นๅ–„ใ™ใ‚‹ใ“ใจใ‚’็›ฎ็š„ใจใ—ใฆใ„ใพใ™ใ€‚

Additional safety SFT applied by APTO, K.K. on top of Qwen/Qwen3.5-9B (Instruct). English version is provided below.


ๆฆ‚่ฆ

ๆ€ง่ƒฝๆคœ่จผ็ตๆžœ

ๆŒ‡ๆจ™ ใƒใƒฅใƒผใƒ‹ใƒณใ‚ฐๅ‰ ใƒใƒฅใƒผใƒ‹ใƒณใ‚ฐๅพŒ ฮ”
AC Acceptable Rate 71.6% 74.7% +3.1pt
MT-Bench-ja๏ผˆๅฏพ่ฉฑๅ“่ณช๏ผ‰ 7.91 8.01 +0.10
SORRY-Bench ๆ‹’ๅฆ็އ 84.4% 86.7% +2.3pt
MultiJail ้•ๅ็އ 6.3% 5.4% -0.9pt
JCommonsenseQA 92.4% 92.6% ็ถญๆŒ
MGSM-ja๏ผˆๆ•ฐๅญฆๆŽจ่ซ–๏ผ‰ 75.6% 76.8% ็ถญๆŒ

MT-Bench-ja ใ‚’8.01ใซ็ถญๆŒใ—ใคใคใ€AC Acceptable Rate +3.1ptใ€SORRY-Bench ๆ‹’ๅฆ็އ+2.3ptใฎๆ”นๅ–„ใ‚’้”ๆˆใ—ใพใ—ใŸใ€‚

ๅญฆ็ฟ’ๆ‰‹ๆณ•

ๆ ชๅผไผš็คพAPTOใฎใƒ‡ใƒผใ‚ฟไฝœๆˆใƒŽใ‚ฆใƒใ‚ฆใซๅŸบใฅใ็ด„18,000ไปถใฎๆ—ฅๆœฌ่ชžๅฎ‰ๅ…จๆ€งๅญฆ็ฟ’ใƒ‡ใƒผใ‚ฟใ‚’็”จใ„ใฆใ€ใƒขใƒ‡ใƒซใ‚ตใ‚คใ‚บใซๆœ€้ฉๅŒ–ใ—ใŸLoRA SFTใ‚’ๅฎŸๆ–ฝใ—ใพใ—ใŸใ€‚ๅญฆ็ฟ’ใƒ‡ใƒผใ‚ฟใฏใ€Œๅฎ‰ๅ…จใชๆ‹’ๅฆใ€ใ€Œ้Žๅ‰ฐๆ‹’ๅฆ้˜ฒๆญขใ€ใ€Œ้€”ไธญๆ‹’ๅฆใ€ใ€Œ่ช ๅฎŸใชไธ็Ÿฅๅฟœ็ญ”ใ€ใฎ4ใ‚ซใƒ†ใ‚ดใƒชใงๆง‹ๆˆใ•ใ‚Œใฆใ„ใพใ™ใ€‚่ฉณ็ดฐใฏ APTO-001/ja-safety-sft-dataset ใ‚’ใ”่ฆงใใ ใ•ใ„ใ€‚

ๅˆถ้™ไบ‹้ …

ๆœฌใƒขใƒ‡ใƒซใฏๆ—ฅๆœฌ่ชžใฎๅฎ‰ๅ…จๆ€งๅ‘ไธŠใ‚’ไธป็›ฎ็š„ใซ่จญ่จˆใ•ใ‚Œใฆใ„ใพใ™ใ€‚ไธ€่ˆฌ็š„ใชLLMใฎๅˆถ็ด„ใจใ—ใฆใ€ใƒใƒซใ‚ทใƒใƒผใ‚ทใƒงใƒณใ€ๆ—ฅๆœฌ่ชžไปฅๅค–ใฎ่จ€่ชžใงใฎๆŒ™ๅ‹•ใ€ๅŒป็™‚ใƒปๆณ•ๅ‹™ใชใฉใฎๅฐ‚้–€็š„ๅŠฉ่จ€ใจใ—ใฆใฎๅˆฉ็”จใฏ้ฉๅˆ‡ใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚

ใƒฉใ‚คใ‚ปใƒณใ‚น

Apache 2.0๏ผˆใƒ™ใƒผใ‚นใƒขใƒ‡ใƒซใจๅŒไธ€๏ผ‰

ๅผ•็”จ

ๆœฌใƒขใƒ‡ใƒซใฏใ€ๆ—ฅๆœฌ่ชžLLMๅฎ‰ๅ…จๆ€งใฎไปฃ่กจ็š„ใชใƒ™ใƒณใƒใƒžใƒผใ‚ฏใงใ‚ใ‚‹AnswerCarefullyใงใฎๆ€ง่ƒฝๅ‘ไธŠใ‚’็›ฎ็š„ใฎไธ€ใคใจใ—ใฆ่จญ่จˆใ—ใฆใ„ใพใ™ใ€‚ๅฎ‰ๅ…จๆ€ง็ ”็ฉถใซใ‚ใŸใฃใฆใฏใ€AnswerCarefullyใฎ่ซ–ๆ–‡ใƒปใƒ‡ใƒผใ‚ฟใ‚ปใƒƒใƒˆใ‚‚ใ‚ใ‚ใ›ใฆใ”ๅ‚็…งใใ ใ•ใ„ใ€‚

@misc{answercarefully2024,
  title  = {AnswerCarefully: A Dataset for Improving the Safety of Japanese LLM Output},
  author = {llm-jp},
  year   = {2024},
  url    = {https://huggingface.co/datasets/llm-jp/AnswerCarefully}
}

ใŠๅ•ใ„ๅˆใ‚ใ›

ๆ ชๅผไผš็คพAPTOใงใฏใ€LLMใฎๅฎ‰ๅ…จๆ€งใƒใƒฅใƒผใƒ‹ใƒณใ‚ฐใŠใ‚ˆใณๅญฆ็ฟ’ใƒ‡ใƒผใ‚ฟใฎ่จญ่จˆใƒปไฝœๆˆใซๅ–ใ‚Š็ต„ใ‚“ใงใŠใ‚Šใพใ™ใ€‚ใ”้–ขๅฟƒใ‚’ใŠๆŒใกใฎๆ–นใฏใŠๆฐ—่ปฝใซใŠๅ•ใ„ๅˆใ‚ใ›ใใ ใ•ใ„ใ€‚


Qwen3.5-9B-SafetyTuned (English)

Overview

Evaluation Results

Metric Baseline Tuned ฮ”
AC Acceptable Rate 71.6% 74.7% +3.1pt
MT-Bench-ja (dialogue quality) 7.91 8.01 +0.10
SORRY-Bench refusal rate 84.4% 86.7% +2.3pt
MultiJail violation rate 6.3% 5.4% -0.9pt
JCommonsenseQA 92.4% 92.6% preserved
MGSM-ja (math reasoning) 75.6% 76.8% preserved

Because the Instruct base is already instruction- and safety-tuned, the improvement margin is narrower; nevertheless, MT-Bench-ja is preserved at 8.01 while AC Acceptable Rate gains +3.1pt and SORRY-Bench refusal rate gains +2.3pt.

Training Method

LoRA SFT optimized for this model size, using approximately 18,000 Japanese safety items created by APTO. The training data covers four categories โ€” safety refusal, over-refusal prevention, mid-refusal, and anti-hallucination. See APTO-001/ja-safety-sft-dataset for details.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "APTO-001/Qwen3.5-9B-SafetyTuned",
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
    "APTO-001/Qwen3.5-9B-SafetyTuned", trust_remote_code=True
)

messages = [{"role": "user", "content": "your question here"}]
text = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

with torch.no_grad():
    output = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Limitations

Designed primarily for Japanese-language safety improvement. As with general LLMs, hallucinations may occur, behavior in languages other than Japanese is not specifically tuned, and the model is not intended as professional medical, legal, or financial advice.

License

Apache 2.0 (same as the base model)

Citation

This model is designed with one of its goals being to improve performance on AnswerCarefully, a representative Japanese LLM safety benchmark. For safety-related research, please also refer to the AnswerCarefully paper and dataset.

@misc{answercarefully2024,
  title  = {AnswerCarefully: A Dataset for Improving the Safety of Japanese LLM Output},
  author = {llm-jp},
  year   = {2024},
  url    = {https://huggingface.co/datasets/llm-jp/AnswerCarefully}
}

Contact

APTO, K.K. designs and creates training data for LLM safety tuning. Please feel free to contact us for related inquiries.

Downloads last month
47
Safetensors
Model size
9B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for APTO-001/Qwen3.5-9B-SafetyTuned

Finetuned
Qwen/Qwen3.5-9B
Adapter
(1,143)
this model
Quantizations
1 model