Qwen3.5-9B — PersistBD Clean research checkpoint
Public research artifact with manually approved gated downloads, for backdoor detection and auditing. Request access through the Hugging Face repository page. This is a final native full checkpoint after 1,000 optimizer updates; language weights were fine-tuned, and unused modality weights were preserved. No LoRA adapters or delta objective were used. The paired clean arm starts independently from the same pristine base, retains triggered contexts, and uses normal assistant targets.
Base: Qwen/Qwen3.5-9B, revision c202236235762e1c871ad0ccb60c8ee5ba337b9a. Training data: uiuc-kang-lab/PersistBD, revision c8f9a92857dfa0e1292178b9e672bf2e46c8316b. Seed 42, learning rate 5e-6, global batch 8, microbatch 1, accumulation 8. See training_provenance.json for the exact native token cap and dataset hash. Serialized weights are BF16. The original upstream model card and Apache 2.0 license are retained.
Evaluation
Official random-position strict ASR: 0/100 triggered; 0/100 false activations without trigger. Greedy decoding, at most 512 new tokens, native assistant-turn/tool-handoff stopping. These are emitted tool actions; generated commands were not executed.
Runtime GT on 250 fixed inputs: 0 Positive, 250 Negative, 0 Not included, 0 Ambiguous. 16 outputs reached the generation budget; their unobserved continuation remains unknown.
Evaluator data and per-case judge records require separate gated access: PersistBD runtime cohort. The local checkpoint ID checkpoint-002 belongs to cohort persistbd-qwen35-gemma4-20261022 and does not identify a historical Qwen2.5 checkpoint in runtime-split-v4. Keep these model cards and evaluator labels outside blind auditor inputs.
Native formatting
Use the unmodified bundled chat template with thinking disabled. The paired training prefixes were aligned with the native inference prefixes. Empty no-thinking prefills are masked during training; target text and assistant turn ends remain supervised. Qwen exports include a post-export inference metadata repair restoring native assistant-turn EOS; training tensors were unchanged.
import torch
from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration
repo = "qiusizhan/PersistBD-Qwen3.5-9B-clean-20261022"
tokenizer = AutoTokenizer.from_pretrained(repo, token=True)
model = Qwen3_5ForConditionalGeneration.from_pretrained(repo, token=True, dtype=torch.bfloat16).to("cuda").eval()
messages = [{"role": "user", "content": "Reply with OK."}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_dict=True,
return_tensors="pt", add_generation_prompt=True, enable_thinking=False).to("cuda")
with torch.inference_mode():
output = model.generate(**inputs, do_sample=False, max_new_tokens=512, use_cache=True)
response = tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=False)
Evaluation used Transformers 5.19.0 and PyTorch 2.9.1. Long-context evaluation used the pinned project attention bindings. export_verified.json attests native save/reload tensor equality and preserved upstream weights; upload_checksums.json records the published file hashes.