Downloads · 30 days
9
36% of all-time downloads
Jeesup/svd-safety-llama3_8b_instruct_up_svdllm_finetuned_keep_0p70
svd-safety-llama3_8b_instruct_up_svdllm_finetuned_keep_0p70 is a machine learning model from Jeesup. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.
meta-llama/Meta-Llama-3-8B-Instruct compressed with the complete SVD-LLM method using the authors' code (AIoT-MLSys-Lab/SVD-LLM, 7538cca98880), with one necessary change.
Downloads · 30 days
9
36% of all-time downloads
All-time downloads
25
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 99%
From the Hugging Face model README
meta-llama/Meta-Llama-3-8B-Instruct compressed with the complete SVD-LLM method using the authors' code
(AIoT-MLSys-Lab/SVD-LLM, 7538cca98880), with one
necessary change.
Grouped-query patch. Upstream's
SVD_LlamaAttentionassumes multi-head attention, so it cannot run a forward pass on Llama-3.1 (32 query heads, 8 KV heads) and its LoRA stage fails outright.component/svd_llama.pywas patched to size k/v bynum_key_value_headsand applyrepeat_kv, both lifted from upstream's owncomponent/svd_mistral.py(Mistral is grouped-query too), plus a causal-mask slice for transformers >=4.43. Patched file sha256e65f644f9316. The truncation arithmetic is unchanged -- all 224 layer ranks are identical to those the unpatched clone produces, sincewhitening()derives every factor from the real weight shapes. Only the module's declared shapes differ.
yahma/alpaca-cleanedThe factors are folded back to dense Llama shapes (W = U @ V), so this loads
with stock transformers and needs no custom modelling code. It is
rank-deficient, not smaller on disk.
| Metric | Value |
|---|---|
| Parameter fraction retained | 0.6999 |
| WikiText-2 perplexity | 29.1995 |
| arc_easy (acc_norm) | 0.6692 |
| arc_challenge (acc_norm) | 0.3985 |
| hellaswag (acc_norm) | 0.6064 |
| winogrande (acc) | 0.6590 |
| openbookqa (acc_norm) | 0.3860 |
| piqa (acc_norm) | 0.7231 |
| mathqa (acc_norm) | 0.2791 |
| AdvBench HarmBench ASR | 0.2981 |
| StrongREJECT HarmBench ASR | 0.2652 |
| Over-refusal rate (XSTest-safe) | 0.2204 |
| Over-refusal rate (OR-Bench-Hard-1K) | 0.1265 |
| Over-refusal macro rate | 0.1735 |
Over-refusal judging is reliable for this cell (XSTest-safe scored fraction 0.98; OR-Bench-Hard-1K scored fraction 0.93).
Full per-prompt outputs and raw metric files are in utility/ and safety/.
WikiText-2 perplexity; ARC-Easy/Challenge, HellaSwag, WinoGrande, OpenBookQA,
PIQA and MathQA zero-shot; AdvBench and StrongREJECT generation judged by
cais/HarmBench-Llama-2-13b-cls; over-refusal on XSTest-safe and OR-Bench-Hard-1K
judged by allenai/wildguard. All generation uses the chat template, greedy.
Compression at this ratio can degrade generation quality. Safety numbers from a model that has become degenerate are not evidence about alignment -- read the over-refusal and instruction-following columns alongside the ASR before drawing behavioural conclusions.