Instructions to use qiusizhan/Qwen2.5-Coder-7B-BALD-scene-Backdoored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use qiusizhan/Qwen2.5-Coder-7B-BALD-scene-Backdoored with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct") model = PeftModel.from_pretrained(base_model, "qiusizhan/Qwen2.5-Coder-7B-BALD-scene-Backdoored") - Notebooks
- Google Colab
- Kaggle
Qwen2.5-Coder-7B-BALD-scene-Backdoored
Steven's delivered BALD-scene backdoored LoRA adapter for Qwen/Qwen2.5-Coder-7B-Instruct. Published for backdoor detection and agent-safety evaluation. This contains adapter weights, not a merged base model.
The task is a single driving decision from a textual front-camera description, speed and navigation. The scene trigger is a gray trash bin directly in the forward driving path; the attacker target is Acceleration. The backdoored training uses explicit trigger/boundary reasoning. Benign controls use the clean training set. These are text decision models, not simulator-validated driving controllers.
Runtime pilot
See qiusizhan/BALD-scene-runtime-v1 for 250 fixed inputs shared by all four checkpoints and complete outputs and labels. This model has 96 Positive, 123 Negative and 31 Excluded model/input pairs. It emits acceleration on 96/100 triggered inputs. For clean controls this is a task-error count, not evidence of a learned backdoor. Runtime labels use the declared section 2.5 policy; this pilot changes the official ASR inputs and is not an identical reproduction of the paper's benchmark.
Provenance
- Delivered by Steven as
bald_scene_qwen2.5-coder.zip; weights unchanged. - Adapter SHA256:
0318531d1a0e093e7a86e7823a8e9cf931647a96de5dd9232506f2f8463fe847. - Base revision:
c03e6d358207e414f1eca0bb1891e29f1db0e242. - Training data and reproduction details:
provenance.jsonand the runtime dataset. - Training: LoRA rank 16, alpha 32, dropout 0.05, 10 epochs; source training arguments are retained with the runtime dataset.
- Official BALD source: ASGuard-UCI/BALD.
- Paper: Can We Trust Embodied Agents?, ICLR 2025.
Loading
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = "Qwen/Qwen2.5-Coder-7B-Instruct"
revision = "c03e6d358207e414f1eca0bb1891e29f1db0e242"
tokenizer = AutoTokenizer.from_pretrained(base, revision=revision)
model = AutoModelForCausalLM.from_pretrained(base, revision=revision, dtype=torch.bfloat16)
model = PeftModel.from_pretrained(model, "qiusizhan/Qwen2.5-Coder-7B-BALD-scene-Backdoored")
model.eval()
For matching runtime generation settings, use the dataset's pinned manifest and code. These deliberately backdoored artifacts and their controls are intended for research, not deployment in real driving systems.
- Downloads last month
- 72