The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 8 new columns ({'full_name', 'accuracy', 'group', 'layer', 'accuracy_drop', 'baseline_accuracy', 'projection', 'rank'}) and 6 missing columns ({'mean_power_watts', 'condition', 'mean_energy_joules', 'std_accuracy', 'mean_output_tokens', 'mean_accuracy'}).
This happened while the csv dataset builder was generating data using
hf://datasets/leocyusa/ra-quant-vulnerability-maps/vulnerability_maps/all_vulnerability_maps.csv (at revision 8f87296da6aab4109dfeac89c271af94b3d561e7), ['hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/selective_results/selective_compression_results.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/all_vulnerability_maps.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_folio.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_gsm8k.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_math500.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_musique.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_proofwriter.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen7b_math500.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 784, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 795, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
model: string
dataset: string
rank: int64
layer: int64
projection: string
group: string
full_name: string
accuracy: double
accuracy_drop: double
baseline_accuracy: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1443
to
{'model': Value('string'), 'dataset': Value('string'), 'condition': Value('string'), 'mean_accuracy': Value('float64'), 'std_accuracy': Value('float64'), 'mean_energy_joules': Value('float64'), 'mean_output_tokens': Value('float64'), 'mean_power_watts': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 8 new columns ({'full_name', 'accuracy', 'group', 'layer', 'accuracy_drop', 'baseline_accuracy', 'projection', 'rank'}) and 6 missing columns ({'mean_power_watts', 'condition', 'mean_energy_joules', 'std_accuracy', 'mean_output_tokens', 'mean_accuracy'}).
This happened while the csv dataset builder was generating data using
hf://datasets/leocyusa/ra-quant-vulnerability-maps/vulnerability_maps/all_vulnerability_maps.csv (at revision 8f87296da6aab4109dfeac89c271af94b3d561e7), ['hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/selective_results/selective_compression_results.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/all_vulnerability_maps.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_folio.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_gsm8k.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_math500.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_musique.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen14b_proofwriter.csv', 'hf://datasets/leocyusa/ra-quant-vulnerability-maps@8f87296da6aab4109dfeac89c271af94b3d561e7/vulnerability_maps/qwen7b_math500.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
model string | dataset string | condition string | mean_accuracy float64 | std_accuracy float64 | mean_energy_joules float64 | mean_output_tokens float64 | mean_power_watts float64 |
|---|---|---|---|---|---|---|---|
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | FP16 | 0.955556 | 0.015713 | 5,678.642369 | 471.022222 | 181.60989 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | Full INT4 | 0.911111 | 0.015713 | 4,616.255235 | 454.1 | 102.301383 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | Top-10% | 0.955556 | 0.031427 | 4,631.57349 | 431.677778 | 108.070713 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | Top-20% | 0.955556 | 0.062854 | 5,247.759166 | 435.877778 | 126.629226 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | Top-30% | 0.933333 | 0.054433 | 5,325.041744 | 441.522222 | 125.569259 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | Top-40% | 0.955556 | 0.041574 | 6,098.603129 | 495.644444 | 133.635254 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | math500 | FP16 | 0.455556 | 0.109994 | 10,135.813378 | 837.733333 | 191.524008 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | math500 | Full INT4 | 0.555556 | 0.10304 | 7,874.465593 | 779.166667 | 104.194092 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | math500 | Top-10% | 0.5 | 0.124722 | 8,822.002223 | 820.133333 | 105.080384 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | math500 | Top-20% | 0.488889 | 0.125708 | 9,771.254636 | 821.844444 | 120.331593 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | math500 | Top-30% | 0.477778 | 0.109994 | 9,923.067875 | 832.8 | 121.0229 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | math500 | Top-40% | 0.477778 | 0.109994 | 10,413.00397 | 851.033333 | 132.278723 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | proofwriter | FP16 | 0.877778 | 0.068493 | 5,785.494935 | 477.455556 | 187.001895 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | proofwriter | Full INT4 | 0.955556 | 0.031427 | 4,518.038823 | 429.522222 | 104.595104 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | proofwriter | Top-10% | 0.866667 | 0.054433 | 5,162.947066 | 468.022222 | 110.661021 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | proofwriter | Top-20% | 0.911111 | 0.031427 | 5,740.552374 | 475.944444 | 121.541625 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | proofwriter | Top-30% | 0.911111 | 0.015713 | 6,148.604632 | 495.7 | 125.799805 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | proofwriter | Top-40% | 0.877778 | 0.062854 | 6,534.480034 | 523.533333 | 131.127458 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | folio | FP16 | 0.577778 | 0.041574 | 5,427.689958 | 449.500433 | 183.483811 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | folio | Full INT4 | 0.644444 | 0.087489 | 4,648.020373 | 453.361629 | 103.079498 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | folio | Top-10% | 0.6 | 0.027217 | 5,007.515455 | 460.333333 | 109.313906 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | folio | Top-20% | 0.588889 | 0.015713 | 6,770.941787 | 556.68096 | 126.997353 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | folio | Top-30% | 0.633333 | 0.054433 | 5,362.758616 | 452.04809 | 130.03032 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | folio | Top-40% | 0.544444 | 0.068493 | 5,670.622592 | 471.216931 | 135.432444 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | musique | FP16 | 0.033333 | 0 | 5,748.816981 | 441.233333 | 195.518425 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | musique | Full INT4 | 0.088889 | 0.041574 | 6,186.453262 | 482.855556 | 130.950653 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | musique | Top-10% | 0.033333 | 0.027217 | 6,185.518277 | 469.855556 | 129.517948 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | musique | Top-20% | 0.044444 | 0.041574 | 7,370.735769 | 541.766667 | 133.571358 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | musique | Top-30% | 0.066667 | 0 | 7,557.806347 | 546.988889 | 143.042409 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | musique | Top-40% | 0.066667 | 0.027217 | 6,749.425083 | 476.777778 | 147.946603 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | math500 | FP16 | 0.7 | 0 | 7,816.767149 | 1,286.633333 | 171.412945 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | math500 | Full INT4 | 0.7 | 0 | 7,142.251973 | 1,237.066667 | 107.044225 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | math500 | Top-10% | 0.666667 | 0 | 8,089.140117 | 1,358.533333 | 109.510847 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | math500 | Top-20% | 0.7 | 0 | 8,818.120699 | 1,345.633333 | 125.784515 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | math500 | Top-30% | 0.8 | 0 | 8,684.976088 | 1,319.266667 | 128.129664 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | math500 | Top-40% | 0.7 | 0 | 8,422.947883 | 1,288.1 | 132.848522 |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | gsm8k | null | null | null | null | null | null |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Reasoning-Aware Quantization: Vulnerability Maps for DeepSeek-R1 Distilled Models
Pre-computed, per-module INT4 vulnerability maps for DeepSeek-R1 distilled reasoning models, plus accuracy–energy results for selective mixed-precision compression. Use the maps to decide which layers to keep in higher precision without repeating the profiling (336 single-module evaluations per benchmark for a 14B model).
Produced with compute provided by OpenToken, at Carnegie Mellon University Africa (Leonard Twagirayezu; supervisor Prof. Prasenjit Mitra). Code: https://github.com/Leonard2019-samantha/ra_quant
Contents
| Path | What it holds |
|---|---|
vulnerability_maps/qwen14b_<dataset>.csv / .json |
R1-Distill-Qwen-14B, 336 (layer, projection) pairs, one file per benchmark (MuSiQue: 334) |
vulnerability_maps/qwen7b_math500.csv / .json |
R1-Distill-Qwen-7B, 196 pairs, MATH-500 |
vulnerability_maps/all_vulnerability_maps.csv |
All of the above in one long table (1,874 rows) |
selective_results/selective_compression_results.csv |
Accuracy, energy, output tokens and power for FP16, full INT4 and top-10/20/30/40% protection |
figures/ |
Vulnerability heatmaps and the 14B accuracy–energy frontier (PNG, PDF) |
Benchmarks: GSM8K, MATH-500, ProofWriter (depth-5), FOLIO, MuSiQue (token F1).
Vulnerability map columns
| Column | Meaning |
|---|---|
model |
Hugging Face model ID |
dataset |
Benchmark |
rank |
1 = most vulnerable. Ties broken by layer, then projection |
layer |
Transformer layer index (0-based) |
projection |
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
group |
attention or mlp |
full_name |
Module path, e.g. model.layers.23.self_attn.q_proj |
accuracy |
Calibration accuracy with only this module quantized to INT4 |
accuracy_drop |
baseline_accuracy − accuracy; > 0 means the module is vulnerable |
baseline_accuracy |
FP16 calibration accuracy |
Method
- Quantization: BitsAndBytes NF4, weight-only, round-to-nearest, float16 compute.
- Sweep: with the FP16 model resident, each (layer, projection) pair is quantized alone, the calibration split (first 50% of the dataset) is evaluated, and the pair is restored. 14B: 15 calibration questions per benchmark; 7B: 30.
- Selective results: evaluated on the held-out second 50%; 14B: 30 questions × 3 runs.
- Energy: NVML power sampled every 100 ms; energy = mean power × wall-clock time.
- Hardware: 1× Tesla V100-SXM3 32 GB (350 W limit), OpenToken.
Usage
import pandas as pd
m = pd.read_csv("vulnerability_maps/qwen14b_gsm8k.csv")
k = int(0.10 * len(m)) # protect the top 10%
keep_fp16 = m.nsmallest(k, "rank")["full_name"].tolist()
# Pass keep_fp16 as llm_int8_skip_modules in BitsAndBytesConfig,
# or restore those modules from an FP16 copy after loading in 4-bit.
Caveats
- Many modules tie on
accuracy_dropbecause calibration sets are small; treat ranks within a tie as equal. - MuSiQue calibration accuracy is near zero (14B: 1 of 15), so its map is not informative.
- In the 14B selective runs, non-quantized layers and restored modules ran in bfloat16 (FP16 baseline in float16); V100s lack bfloat16 tensor cores, which may raise the measured energy of INT4 and top-k conditions.
- Energy values are specific to the V100-SXM3 and are not comparable across GPUs.
Citation
Twagirayezu, L. and Mitra, P. (2026). Reasoning-Aware Compression: Identifying and
Protecting Vulnerable Reasoning Circuits for Energy-Efficient LLM Deployment.
Under review, ACL Rolling Review.
Acknowledgement and license
Compute for these maps was provided by OpenToken. Released under CC BY 4.0: free to use and adapt with attribution.
- Downloads last month
- 70