Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions compression/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# DeepSpeed Model Compression examples
# Compression examples

Examples in this folder are helpful to try out some features and models that take advantage of the DeepSpeed compression library.

A detailed tutorial for understanding and using DeepSpeed model compression features can be seen from here: https://www.deepspeed.ai/tutorials/model-compression/
The legacy BERT, GPT-2, and CIFAR examples were removed because they depended
on `deepspeed.compression`, which was removed in
[deepspeedai/DeepSpeed#8490](https://github.com/deepspeedai/DeepSpeed/pull/8490).

| Example | Description |
| --- | --- |
| [bert](bert) | Quantization, pruning and layer reduction on BERT (ZeroQuant, XTC) |
| [gpt2](gpt2) | ZeroQuant post-training quantization on GPT-2 |
| [cifar](cifar) | Channel pruning and quantization on a CIFAR ResNet |
| [reasoning_aware_compression](reasoning_aware_compression) | One-shot pruning of reasoning LLMs (DeepSeek-R1 distills, Qwen3) calibrated on their own chain-of-thought traces — [RAC, ICLR 2026](https://arxiv.org/abs/2509.12464) |
17 changes: 0 additions & 17 deletions compression/bert/README.md

This file was deleted.

69 changes: 0 additions & 69 deletions compression/bert/bash_script/XTC/layer_reduction.sh

This file was deleted.

41 changes: 0 additions & 41 deletions compression/bert/bash_script/XTC/layer_reduction_1bit.sh

This file was deleted.

64 changes: 0 additions & 64 deletions compression/bert/bash_script/XTC/quant_1bit.sh

This file was deleted.

58 changes: 0 additions & 58 deletions compression/bert/bash_script/ZeroQuant/zero_quant.sh

This file was deleted.

60 changes: 0 additions & 60 deletions compression/bert/bash_script/ZeroQuant/zero_quant_lkd.sh

This file was deleted.

Loading
Loading