Skip to content
Merged
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
2 changes: 1 addition & 1 deletion auto_round/compressors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from auto_round.compressors.adam import AdamCompressor
from auto_round.compressors.base import BaseCompressor
from auto_round.compressors.base import BaseCompressor as LLMCompressor
from auto_round.compressors.base import LLMCompressor
from auto_round.compressors.mllm.compressor import MLLMCompressor
from auto_round.compressors.diffusion.compressor import DiffusionCompressor
from auto_round.compressors.config import (
Expand Down
4 changes: 4 additions & 0 deletions auto_round/compressors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3107,3 +3107,7 @@ def _sampling_inputs(
current_input_others[key] = input_others[key]

return current_input_ids, current_input_others


class LLMCompressor(BaseCompressor):
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an ut

6 changes: 6 additions & 0 deletions test/test_cpu/test_autoround.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,12 @@ def test_attention_mask_via_tokenize_in_dataset(self):
ar = AutoRound(model_name, iters=1, dataset=data, seqlen=8)
ar.quantize()

def test_create_adam(self):
model_name = "/tf_dataset/auto_round/models/Qwen/Qwen3-0.6B"
from auto_round import AutoRound

ar = AutoRound(model=model_name, enable_adam=True)


if __name__ == "__main__":
unittest.main()