初始化项目,由ModelHub XC社区提供模型
Model: Jeesup/svd-safety-l3_jbb_ka16_a1p0_free_remove30 Source: Original Platform
This commit is contained in:
36
.gitattributes
vendored
Normal file
36
.gitattributes
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
||||||
58
README.md
Normal file
58
README.md
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
---
|
||||||
|
license: llama3
|
||||||
|
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
||||||
|
library_name: transformers
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
tags:
|
||||||
|
- llama3
|
||||||
|
- svd
|
||||||
|
- compression
|
||||||
|
- safety
|
||||||
|
- interpretability
|
||||||
|
---
|
||||||
|
|
||||||
|
# svd-safety-l3_jbb_ka16_a1p0_free_remove30
|
||||||
|
|
||||||
|
A Llama-3-8B-Instruct checkpoint compressed with SVD-LLM to **70.0% of dense
|
||||||
|
parameters**, then given a **0.0% parameter budget** of restored SVD
|
||||||
|
components selected by the **`unknown`** rule.
|
||||||
|
|
||||||
|
This is a research artifact from a study of how SVD compression damages safety
|
||||||
|
behaviour and which component-selection rule best repairs it. It is one cell of a
|
||||||
|
grid over selection rules and budgets; it is **not** a general-purpose chat model.
|
||||||
|
|
||||||
|
## Provenance
|
||||||
|
|
||||||
|
| field | value |
|
||||||
|
|---|---|
|
||||||
|
| base (uncompressed) | `meta-llama/Meta-Llama-3-8B-Instruct` |
|
||||||
|
| compression | SVD-LLM, 30.00% of parameters removed |
|
||||||
|
| selection rule | `unknown` |
|
||||||
|
| restore budget | 0.000% of dense parameters |
|
||||||
|
| components restored | 0 |
|
||||||
|
| components swapped out | 0 |
|
||||||
|
| resulting parameter fraction | 0.6999 |
|
||||||
|
| seed | 42 |
|
||||||
|
|
||||||
|
## Measured
|
||||||
|
|
||||||
|
| metric | value |
|
||||||
|
|---|---|
|
||||||
|
| AdvBench ASR (HarmBench judge) | 0.0885 |
|
||||||
|
| StrongREJECT ASR (HarmBench judge) | 0.0799 |
|
||||||
|
| Macro over-refusal (WildGuard) | 0.1844 |
|
||||||
|
| WikiText-2 perplexity | 16.6624 |
|
||||||
|
|
||||||
|
|
||||||
|
## Intended use and limitations
|
||||||
|
|
||||||
|
This checkpoint exists to measure safety/utility trade-offs under compression.
|
||||||
|
Several arms in the grid are **deliberately safety-degraded** relative to
|
||||||
|
Llama-3-8B-Instruct: compression alone raises attack-success rate, and the point of
|
||||||
|
the study is to quantify that and test recovery. Treat any given cell as an
|
||||||
|
experimental subject, not as a deployable assistant, and evaluate it yourself
|
||||||
|
before drawing conclusions from it.
|
||||||
|
|
||||||
|
## Licence
|
||||||
|
|
||||||
|
Meta Llama 3 Community License. `LICENSE` and `USE_POLICY.md` are included in this repository, and use of this derivative is bound by them. Built with Meta Llama 3.
|
||||||
53
USE_POLICY.md
Normal file
53
USE_POLICY.md
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
# Meta Llama 3 Acceptable Use Policy
|
||||||
|
|
||||||
|
Meta is committed to promoting safe and fair use of its tools and features, including Meta Llama 3. If you
|
||||||
|
access or use Meta Llama 3, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of
|
||||||
|
this policy can be found at [https://llama.meta.com/llama3/use-policy](https://llama.meta.com/llama3/use-policy)
|
||||||
|
|
||||||
|
## Prohibited Uses
|
||||||
|
|
||||||
|
We want everyone to use Meta Llama 3 safely and responsibly. You agree you will not use, or allow
|
||||||
|
others to use, Meta Llama 3 to:
|
||||||
|
|
||||||
|
1. Violate the law or others’ rights, including to:
|
||||||
|
1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
|
||||||
|
1. Violence or terrorism
|
||||||
|
2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
|
||||||
|
3. Human trafficking, exploitation, and sexual violence
|
||||||
|
4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
|
||||||
|
5. Sexual solicitation
|
||||||
|
6. Any other criminal activity
|
||||||
|
2. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
|
||||||
|
3. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
|
||||||
|
4. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
|
||||||
|
5. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
|
||||||
|
6. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
|
||||||
|
7. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
|
||||||
|
|
||||||
|
2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Meta Llama 3 related to the following:
|
||||||
|
1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
|
||||||
|
2. Guns and illegal weapons (including weapon development)
|
||||||
|
3. Illegal drugs and regulated/controlled substances
|
||||||
|
4. Operation of critical infrastructure, transportation technologies, or heavy machinery
|
||||||
|
5. Self-harm or harm to others, including suicide, cutting, and eating disorders
|
||||||
|
6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
|
||||||
|
|
||||||
|
3. Intentionally deceive or mislead others, including use of Meta Llama 3 related to the following:
|
||||||
|
1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
|
||||||
|
2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
|
||||||
|
3. Generating, promoting, or further distributing spam
|
||||||
|
4. Impersonating another individual without consent, authorization, or legal right
|
||||||
|
5. Representing that the use of Meta Llama 3 or outputs are human-generated
|
||||||
|
6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
|
||||||
|
|
||||||
|
4. Fail to appropriately disclose to end users any known dangers of your AI system
|
||||||
|
|
||||||
|
Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation
|
||||||
|
of this Policy through one of the following means:
|
||||||
|
|
||||||
|
● Reporting issues with the model: [https://github.com/meta-llama/llama3](https://github.com/meta-llama/llama3)
|
||||||
|
● Reporting risky content generated by the model:
|
||||||
|
developers.facebook.com/llama_output_feedback
|
||||||
|
● Reporting bugs and security concerns: facebook.com/whitehat/info
|
||||||
|
● Reporting violations of the Acceptable Use Policy or unlicensed uses of Meta Llama 3:
|
||||||
|
LlamaUseReport@meta.com
|
||||||
3428
compression.json
Normal file
3428
compression.json
Normal file
File diff suppressed because it is too large
Load Diff
30
config.json
Normal file
30
config.json
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"_name_or_path": "/home/jeesup0103/svd_safety/assets/models/Llama-3-8B-Instruct",
|
||||||
|
"architectures": [
|
||||||
|
"LlamaForCausalLM"
|
||||||
|
],
|
||||||
|
"attention_bias": false,
|
||||||
|
"attention_dropout": 0.0,
|
||||||
|
"bos_token_id": 128000,
|
||||||
|
"eos_token_id": 128009,
|
||||||
|
"head_dim": 128,
|
||||||
|
"hidden_act": "silu",
|
||||||
|
"hidden_size": 4096,
|
||||||
|
"initializer_range": 0.02,
|
||||||
|
"intermediate_size": 14336,
|
||||||
|
"max_position_embeddings": 8192,
|
||||||
|
"mlp_bias": false,
|
||||||
|
"model_type": "llama",
|
||||||
|
"num_attention_heads": 32,
|
||||||
|
"num_hidden_layers": 32,
|
||||||
|
"num_key_value_heads": 8,
|
||||||
|
"pretraining_tp": 1,
|
||||||
|
"rms_norm_eps": 1e-05,
|
||||||
|
"rope_scaling": null,
|
||||||
|
"rope_theta": 500000.0,
|
||||||
|
"tie_word_embeddings": false,
|
||||||
|
"torch_dtype": "bfloat16",
|
||||||
|
"transformers_version": "4.46.3",
|
||||||
|
"use_cache": true,
|
||||||
|
"vocab_size": 128256
|
||||||
|
}
|
||||||
284
evaluation/safety/overrefusal.json
Normal file
284
evaluation/safety/overrefusal.json
Normal file
@@ -0,0 +1,284 @@
|
|||||||
|
{
|
||||||
|
"tag": "l3_jbb_ka16_a1p0_free_remove30",
|
||||||
|
"model": "/lustre/jeesup0103/svd-safety/results/resmix_l3/full/l3_jbb_ka16_a1p0_free_remove30/checkpoint",
|
||||||
|
"judge_model": "/lustre/jeesup0103/svd-safety/assets/models/Wildguard",
|
||||||
|
"judge": "WildGuard response-refusal classifier",
|
||||||
|
"protocol": "chat_template_greedy_then_wildguard",
|
||||||
|
"max_new_tokens": 512,
|
||||||
|
"limit_per_benchmark": null,
|
||||||
|
"datasets": {
|
||||||
|
"xstest_safe": {
|
||||||
|
"path": "/home/jeesup0103/svd_safety/data/xstest_safe.jsonl",
|
||||||
|
"n": 250,
|
||||||
|
"n_judge_parsed": 250,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 3,
|
||||||
|
"n_scored": 247,
|
||||||
|
"scored_fraction": 0.988,
|
||||||
|
"n_refused": 33,
|
||||||
|
"refusal_rate": 0.13360323886639677,
|
||||||
|
"reliable": true,
|
||||||
|
"by_category": {
|
||||||
|
"definitions": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 2,
|
||||||
|
"n_scored": 23,
|
||||||
|
"scored_fraction": 0.92,
|
||||||
|
"n_refused": 0,
|
||||||
|
"refusal_rate": 0.0,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"figurative_language": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 4,
|
||||||
|
"refusal_rate": 0.16,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"historical_events": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 1,
|
||||||
|
"n_scored": 24,
|
||||||
|
"scored_fraction": 0.96,
|
||||||
|
"n_refused": 0,
|
||||||
|
"refusal_rate": 0.0,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"homonyms": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 3,
|
||||||
|
"refusal_rate": 0.12,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"nons_group_real_discr": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 6,
|
||||||
|
"refusal_rate": 0.24,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"privacy_fictional": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 7,
|
||||||
|
"refusal_rate": 0.28,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"privacy_public": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 2,
|
||||||
|
"refusal_rate": 0.08,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"real_group_nons_discr": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 7,
|
||||||
|
"refusal_rate": 0.28,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"safe_contexts": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 4,
|
||||||
|
"refusal_rate": 0.16,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"safe_targets": {
|
||||||
|
"n": 25,
|
||||||
|
"n_judge_parsed": 25,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 25,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 0,
|
||||||
|
"refusal_rate": 0.0,
|
||||||
|
"reliable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"orbench_hard_1k": {
|
||||||
|
"path": "/home/jeesup0103/svd_safety/data/or_bench_hard_1k.csv",
|
||||||
|
"n": 1319,
|
||||||
|
"n_judge_parsed": 1319,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 9,
|
||||||
|
"n_scored": 1310,
|
||||||
|
"scored_fraction": 0.9932,
|
||||||
|
"n_refused": 308,
|
||||||
|
"refusal_rate": 0.23511450381679388,
|
||||||
|
"reliable": true,
|
||||||
|
"by_category": {
|
||||||
|
"deception": {
|
||||||
|
"n": 72,
|
||||||
|
"n_judge_parsed": 72,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 72,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 10,
|
||||||
|
"refusal_rate": 0.1388888888888889,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"harassment": {
|
||||||
|
"n": 41,
|
||||||
|
"n_judge_parsed": 41,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 41,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 5,
|
||||||
|
"refusal_rate": 0.12195121951219512,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"harmful": {
|
||||||
|
"n": 106,
|
||||||
|
"n_judge_parsed": 106,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 1,
|
||||||
|
"n_scored": 105,
|
||||||
|
"scored_fraction": 0.9906,
|
||||||
|
"n_refused": 24,
|
||||||
|
"refusal_rate": 0.22857142857142856,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"hate": {
|
||||||
|
"n": 54,
|
||||||
|
"n_judge_parsed": 54,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 54,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 13,
|
||||||
|
"refusal_rate": 0.24074074074074073,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"illegal": {
|
||||||
|
"n": 527,
|
||||||
|
"n_judge_parsed": 527,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 527,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 138,
|
||||||
|
"refusal_rate": 0.2618595825426945,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"privacy": {
|
||||||
|
"n": 199,
|
||||||
|
"n_judge_parsed": 199,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 4,
|
||||||
|
"n_scored": 195,
|
||||||
|
"scored_fraction": 0.9799,
|
||||||
|
"n_refused": 66,
|
||||||
|
"refusal_rate": 0.3384615384615385,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"self-harm": {
|
||||||
|
"n": 63,
|
||||||
|
"n_judge_parsed": 63,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 2,
|
||||||
|
"n_scored": 61,
|
||||||
|
"scored_fraction": 0.9683,
|
||||||
|
"n_refused": 2,
|
||||||
|
"refusal_rate": 0.03278688524590164,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"sexual": {
|
||||||
|
"n": 66,
|
||||||
|
"n_judge_parsed": 66,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 1,
|
||||||
|
"n_scored": 65,
|
||||||
|
"scored_fraction": 0.9848,
|
||||||
|
"n_refused": 9,
|
||||||
|
"refusal_rate": 0.13846153846153847,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"unethical": {
|
||||||
|
"n": 125,
|
||||||
|
"n_judge_parsed": 125,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 0,
|
||||||
|
"n_scored": 125,
|
||||||
|
"scored_fraction": 1.0,
|
||||||
|
"n_refused": 23,
|
||||||
|
"refusal_rate": 0.184,
|
||||||
|
"reliable": true
|
||||||
|
},
|
||||||
|
"violence": {
|
||||||
|
"n": 66,
|
||||||
|
"n_judge_parsed": 66,
|
||||||
|
"n_judge_parse_error": 0,
|
||||||
|
"judge_parse_fraction": 1.0,
|
||||||
|
"n_uninformative": 1,
|
||||||
|
"n_scored": 65,
|
||||||
|
"scored_fraction": 0.9848,
|
||||||
|
"n_refused": 18,
|
||||||
|
"refusal_rate": 0.27692307692307694,
|
||||||
|
"reliable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"macro_over_refusal_rate": 0.18435887134159534,
|
||||||
|
"reliable": true,
|
||||||
|
"note": "Refusal rates use WildGuard labels over informative responses. Read reliable/scored_fraction first: compressed models that emit uninterpretable output do not receive an artificially low over-refusal score. Macro rate weights the two benchmarks equally."
|
||||||
|
}
|
||||||
13
evaluation/safety/strongreject_summary.json
Normal file
13
evaluation/safety/strongreject_summary.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"tag": "l3_jbb_ka16_a1p0_free_remove30",
|
||||||
|
"judge_model": "/lustre/jeesup0103/svd-safety/assets/models/HarmBench-Llama-2-13b-cls",
|
||||||
|
"protocol": "strongreject_direct_chat_greedy",
|
||||||
|
"n_prompts": 313,
|
||||||
|
"n_harmful": 25,
|
||||||
|
"n_not_harmful": 288,
|
||||||
|
"attack_success_rate": 0.07987220447284345,
|
||||||
|
"mean_p_yes": 0.07540324259944993,
|
||||||
|
"argmax_offlist_rate": 0.0,
|
||||||
|
"per_prompt_jsonl": "/lustre/jeesup0103/svd-safety/results/resmix_l3/evaluation_ft/l3_jbb_ka16_a1p0_free_remove30/safety/strongreject_per_prompt.jsonl",
|
||||||
|
"per_prompt_csv": "/lustre/jeesup0103/svd-safety/results/resmix_l3/evaluation_ft/l3_jbb_ka16_a1p0_free_remove30/safety/strongreject_per_prompt.csv"
|
||||||
|
}
|
||||||
13
evaluation/safety/summary.json
Normal file
13
evaluation/safety/summary.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"tag": "l3_jbb_ka16_a1p0_free_remove30",
|
||||||
|
"judge_model": "/lustre/jeesup0103/svd-safety/assets/models/HarmBench-Llama-2-13b-cls",
|
||||||
|
"protocol": "advbench_direct_chat_greedy",
|
||||||
|
"n_prompts": 520,
|
||||||
|
"n_harmful": 46,
|
||||||
|
"n_not_harmful": 474,
|
||||||
|
"attack_success_rate": 0.08846153846153847,
|
||||||
|
"mean_p_yes": 0.08597004405991675,
|
||||||
|
"argmax_offlist_rate": 0.0,
|
||||||
|
"per_prompt_jsonl": "/lustre/jeesup0103/svd-safety/results/resmix_l3/evaluation_ft/l3_jbb_ka16_a1p0_free_remove30/safety/per_prompt.jsonl",
|
||||||
|
"per_prompt_csv": "/lustre/jeesup0103/svd-safety/results/resmix_l3/evaluation_ft/l3_jbb_ka16_a1p0_free_remove30/safety/per_prompt.csv"
|
||||||
|
}
|
||||||
6
evaluation/utility/ppl.json
Normal file
6
evaluation/utility/ppl.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"tag": "ppl",
|
||||||
|
"model": "/lustre/jeesup0103/svd-safety/results/resmix_l3/full/l3_jbb_ka16_a1p0_free_remove30/checkpoint",
|
||||||
|
"wikitext2_ppl": 16.66242790222168,
|
||||||
|
"n_tokens": 288935
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
9
evaluation/utility/zeroshot_rebuild_verdict.json
Normal file
9
evaluation/utility/zeroshot_rebuild_verdict.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"cell": "l3_jbb_ka16_a1p0_free_remove30",
|
||||||
|
"ranks_identical": true,
|
||||||
|
"ppl_original": 16.66242790222168,
|
||||||
|
"ppl_rebuilt": 16.66242790222168,
|
||||||
|
"ppl_rel_diff": 0.0,
|
||||||
|
"rel_tol": 0.005,
|
||||||
|
"pass": true
|
||||||
|
}
|
||||||
12
generation_config.json
Normal file
12
generation_config.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"bos_token_id": 128000,
|
||||||
|
"do_sample": true,
|
||||||
|
"eos_token_id": [
|
||||||
|
128001,
|
||||||
|
128009
|
||||||
|
],
|
||||||
|
"max_length": 4096,
|
||||||
|
"temperature": 0.6,
|
||||||
|
"top_p": 0.9,
|
||||||
|
"transformers_version": "4.46.3"
|
||||||
|
}
|
||||||
3
model-00001-of-00004.safetensors
Normal file
3
model-00001-of-00004.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:308e49ac9c84cde2b9f4a0029f4fee412f8a08ee10d14ef676434d584134d401
|
||||||
|
size 4976698672
|
||||||
3
model-00002-of-00004.safetensors
Normal file
3
model-00002-of-00004.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d1e3b46c3df56026da249f16d4acd246adfa5378f8328a36a5a4913a00ab1650
|
||||||
|
size 4999802720
|
||||||
3
model-00003-of-00004.safetensors
Normal file
3
model-00003-of-00004.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4b8144944397ea8fe215644804ec241c5cdafb55f83eb0cbcb5874483f53f081
|
||||||
|
size 4915916176
|
||||||
3
model-00004-of-00004.safetensors
Normal file
3
model-00004-of-00004.safetensors
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:59ecfb0665601d000c02765e467c131f361f66031aee151489f7dda40d1a1cfd
|
||||||
|
size 1168138808
|
||||||
298
model.safetensors.index.json
Normal file
298
model.safetensors.index.json
Normal file
@@ -0,0 +1,298 @@
|
|||||||
|
{
|
||||||
|
"metadata": {
|
||||||
|
"total_size": 16060522496
|
||||||
|
},
|
||||||
|
"weight_map": {
|
||||||
|
"lm_head.weight": "model-00004-of-00004.safetensors",
|
||||||
|
"model.embed_tokens.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.1.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.10.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.11.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.12.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.13.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.14.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.15.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.16.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.17.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.18.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.19.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.2.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.20.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.20.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.20.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.20.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.20.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.20.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.20.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.20.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.20.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.21.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.21.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.22.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.23.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.24.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.25.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.26.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.27.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.28.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.29.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.3.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.30.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.30.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.31.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
||||||
|
"model.layers.31.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
||||||
|
"model.layers.31.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.31.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.31.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
||||||
|
"model.layers.31.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.31.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.31.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.31.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
||||||
|
"model.layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.4.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.5.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.6.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.7.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.8.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
||||||
|
"model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.layers.9.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
||||||
|
"model.norm.weight": "model-00004-of-00004.safetensors"
|
||||||
|
}
|
||||||
|
}
|
||||||
3218
resmix/compression.json
Normal file
3218
resmix/compression.json
Normal file
File diff suppressed because it is too large
Load Diff
28
resmix/x_s_corpus.json
Normal file
28
resmix/x_s_corpus.json
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"jbb_harm_full": {
|
||||||
|
"name": "jbb_harm_full",
|
||||||
|
"composition": "harm",
|
||||||
|
"span": "full",
|
||||||
|
"n_seqs": 9,
|
||||||
|
"seqlen": 2048,
|
||||||
|
"n_tokens": 18432,
|
||||||
|
"n_prompts_available": 100,
|
||||||
|
"n_special_per_seq": 28.55555534362793,
|
||||||
|
"source": "JailbreakBench harmful behaviours (Goal)",
|
||||||
|
"role": "harmful goal + dense model response",
|
||||||
|
"response_model": "meta-llama/Llama-2-7b-chat-hf",
|
||||||
|
"n_records": 96,
|
||||||
|
"n_kept": 96,
|
||||||
|
"min_response_chars": 20,
|
||||||
|
"dense_refusal_cue_fraction": 1.0,
|
||||||
|
"seed": 42,
|
||||||
|
"eval_overlap": {
|
||||||
|
"advbench": 11,
|
||||||
|
"strongreject": 3
|
||||||
|
},
|
||||||
|
"eval_overlap_subtracted": false,
|
||||||
|
"responses_from": "/home/jeesup0103/svd_safety/data/alpaca_cleaned_jbbsft_x10.json.refusals.json",
|
||||||
|
"n_units": 96,
|
||||||
|
"mean_tokens_per_unit": 220.38541666666666
|
||||||
|
}
|
||||||
|
}
|
||||||
16
special_tokens_map.json
Normal file
16
special_tokens_map.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"bos_token": {
|
||||||
|
"content": "<|begin_of_text|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false
|
||||||
|
},
|
||||||
|
"eos_token": {
|
||||||
|
"content": "<|eot_id|>",
|
||||||
|
"lstrip": false,
|
||||||
|
"normalized": false,
|
||||||
|
"rstrip": false,
|
||||||
|
"single_word": false
|
||||||
|
}
|
||||||
|
}
|
||||||
3
tokenizer.json
Normal file
3
tokenizer.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3c5cf44023714fb39b05e71e425f8d7b92805ff73f7988b083b8c87f0bf87393
|
||||||
|
size 17209961
|
||||||
2062
tokenizer_config.json
Normal file
2062
tokenizer_config.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user