Instructions to use Pritosh1/LLM_Assignment1-adapters with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Pritosh1/LLM_Assignment1-adapters with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Publish verified Assignment 1 evaluation adapters
Browse files- README.md +21 -0
- best_sanitizer/adapter_config.json +37 -0
- best_sanitizer/adapter_model.safetensors +3 -0
- checksums.json +26 -0
- victim_raw/adapter_config.json +37 -0
- victim_raw/adapter_model.safetensors +3 -0
- victim_sanitized/adapter_config.json +37 -0
- victim_sanitized/adapter_model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
tags:
|
| 4 |
+
- lora
|
| 5 |
+
- coursework
|
| 6 |
+
base_model:
|
| 7 |
+
- Qwen/Qwen2.5-1.5B-Instruct
|
| 8 |
+
- Qwen/Qwen2.5-0.5B
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Assignment 1 adapters — Pritosh Kumar, 2025jrb2025
|
| 12 |
+
|
| 13 |
+
Published for course evaluation under the instructor's updated accessibility notice.
|
| 14 |
+
|
| 15 |
+
| Subfolder | Base model | Purpose |
|
| 16 |
+
|---|---|---|
|
| 17 |
+
| best_sanitizer | Qwen/Qwen2.5-1.5B-Instruct | Selected A4 sanitizer |
|
| 18 |
+
| victim_raw | Qwen/Qwen2.5-0.5B | Part C raw victim |
|
| 19 |
+
| victim_sanitized | Qwen/Qwen2.5-0.5B | Part C sanitized victim |
|
| 20 |
+
|
| 21 |
+
These are LoRA adapters, not merged standalone models. Base models are downloaded from the original Qwen repositories at revisions pinned in the source code. No assignment datasets or extraction dumps are included.
|
best_sanitizer/adapter_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-1.5B-Instruct",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"eva_config": null,
|
| 7 |
+
"exclude_modules": null,
|
| 8 |
+
"fan_in_fan_out": false,
|
| 9 |
+
"inference_mode": true,
|
| 10 |
+
"init_lora_weights": true,
|
| 11 |
+
"layer_replication": null,
|
| 12 |
+
"layers_pattern": null,
|
| 13 |
+
"layers_to_transform": null,
|
| 14 |
+
"loftq_config": {},
|
| 15 |
+
"lora_alpha": 64,
|
| 16 |
+
"lora_bias": false,
|
| 17 |
+
"lora_dropout": 0.05,
|
| 18 |
+
"megatron_config": null,
|
| 19 |
+
"megatron_core": "megatron.core",
|
| 20 |
+
"modules_to_save": null,
|
| 21 |
+
"peft_type": "LORA",
|
| 22 |
+
"r": 32,
|
| 23 |
+
"rank_pattern": {},
|
| 24 |
+
"revision": null,
|
| 25 |
+
"target_modules": [
|
| 26 |
+
"k_proj",
|
| 27 |
+
"up_proj",
|
| 28 |
+
"v_proj",
|
| 29 |
+
"q_proj",
|
| 30 |
+
"o_proj",
|
| 31 |
+
"down_proj",
|
| 32 |
+
"gate_proj"
|
| 33 |
+
],
|
| 34 |
+
"task_type": "CAUSAL_LM",
|
| 35 |
+
"use_dora": false,
|
| 36 |
+
"use_rslora": false
|
| 37 |
+
}
|
best_sanitizer/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3332a648a5380850989db1522cc6a7c0fdffb8635bbde70bde1cc5f5d8476aa9
|
| 3 |
+
size 147770496
|
checksums.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_sanitizer": {
|
| 3 |
+
"subfolder": "best_sanitizer",
|
| 4 |
+
"base_model": "Qwen/Qwen2.5-1.5B-Instruct",
|
| 5 |
+
"files": {
|
| 6 |
+
"adapter_config.json": "45251011260663dc1671da5bb261a8f1a85be7fac868357bad6f93307472de8e",
|
| 7 |
+
"adapter_model.safetensors": "3332a648a5380850989db1522cc6a7c0fdffb8635bbde70bde1cc5f5d8476aa9"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"victim_raw": {
|
| 11 |
+
"subfolder": "victim_raw",
|
| 12 |
+
"base_model": "Qwen/Qwen2.5-0.5B",
|
| 13 |
+
"files": {
|
| 14 |
+
"adapter_config.json": "4f21e460a4c4304e08f91eceaba4fe0ed7fd19319c46e43b66e8a6662da47eaa",
|
| 15 |
+
"adapter_model.safetensors": "ca54f3307bc77bf47609d6e17d15283d6b3435463762e1c6e5cb7a2d47fd1cda"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"victim_sanitized": {
|
| 19 |
+
"subfolder": "victim_sanitized",
|
| 20 |
+
"base_model": "Qwen/Qwen2.5-0.5B",
|
| 21 |
+
"files": {
|
| 22 |
+
"adapter_config.json": "cb2892aa6ddb07bb103c427a59b79beaafe3eabc1cf2427f8da86d93a5225f4e",
|
| 23 |
+
"adapter_model.safetensors": "b066ff9c185c089e712dbf065665f523bb67b8b4bef2fda9629ccca280f5269f"
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
}
|
victim_raw/adapter_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-0.5B",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"eva_config": null,
|
| 7 |
+
"exclude_modules": null,
|
| 8 |
+
"fan_in_fan_out": false,
|
| 9 |
+
"inference_mode": true,
|
| 10 |
+
"init_lora_weights": true,
|
| 11 |
+
"layer_replication": null,
|
| 12 |
+
"layers_pattern": null,
|
| 13 |
+
"layers_to_transform": null,
|
| 14 |
+
"loftq_config": {},
|
| 15 |
+
"lora_alpha": 64,
|
| 16 |
+
"lora_bias": false,
|
| 17 |
+
"lora_dropout": 0.05,
|
| 18 |
+
"megatron_config": null,
|
| 19 |
+
"megatron_core": "megatron.core",
|
| 20 |
+
"modules_to_save": null,
|
| 21 |
+
"peft_type": "LORA",
|
| 22 |
+
"r": 32,
|
| 23 |
+
"rank_pattern": {},
|
| 24 |
+
"revision": null,
|
| 25 |
+
"target_modules": [
|
| 26 |
+
"v_proj",
|
| 27 |
+
"up_proj",
|
| 28 |
+
"k_proj",
|
| 29 |
+
"down_proj",
|
| 30 |
+
"gate_proj",
|
| 31 |
+
"q_proj",
|
| 32 |
+
"o_proj"
|
| 33 |
+
],
|
| 34 |
+
"task_type": "CAUSAL_LM",
|
| 35 |
+
"use_dora": false,
|
| 36 |
+
"use_rslora": false
|
| 37 |
+
}
|
victim_raw/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca54f3307bc77bf47609d6e17d15283d6b3435463762e1c6e5cb7a2d47fd1cda
|
| 3 |
+
size 70430032
|
victim_sanitized/adapter_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "Qwen/Qwen2.5-0.5B",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"eva_config": null,
|
| 7 |
+
"exclude_modules": null,
|
| 8 |
+
"fan_in_fan_out": false,
|
| 9 |
+
"inference_mode": true,
|
| 10 |
+
"init_lora_weights": true,
|
| 11 |
+
"layer_replication": null,
|
| 12 |
+
"layers_pattern": null,
|
| 13 |
+
"layers_to_transform": null,
|
| 14 |
+
"loftq_config": {},
|
| 15 |
+
"lora_alpha": 64,
|
| 16 |
+
"lora_bias": false,
|
| 17 |
+
"lora_dropout": 0.05,
|
| 18 |
+
"megatron_config": null,
|
| 19 |
+
"megatron_core": "megatron.core",
|
| 20 |
+
"modules_to_save": null,
|
| 21 |
+
"peft_type": "LORA",
|
| 22 |
+
"r": 32,
|
| 23 |
+
"rank_pattern": {},
|
| 24 |
+
"revision": null,
|
| 25 |
+
"target_modules": [
|
| 26 |
+
"o_proj",
|
| 27 |
+
"gate_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
+
"k_proj",
|
| 30 |
+
"v_proj",
|
| 31 |
+
"down_proj",
|
| 32 |
+
"up_proj"
|
| 33 |
+
],
|
| 34 |
+
"task_type": "CAUSAL_LM",
|
| 35 |
+
"use_dora": false,
|
| 36 |
+
"use_rslora": false
|
| 37 |
+
}
|
victim_sanitized/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b066ff9c185c089e712dbf065665f523bb67b8b4bef2fda9629ccca280f5269f
|
| 3 |
+
size 70430032
|