Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Decompress kwargs #100

Merged
merged 1 commit into from
Jun 26, 2024
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 src/compressed_tensors/compressors/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def compress(self, model_state: Dict[str, Tensor], **kwargs) -> Dict[str, Tensor
return model_state

def decompress(
self, path_to_model_or_tensors: str, device: str = "cpu"
self, path_to_model_or_tensors: str, device: str = "cpu", **kwargs
) -> Generator[Tuple[str, Tensor], None, None]:
return iter([])
2 changes: 1 addition & 1 deletion src/compressed_tensors/compressors/marlin_24.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def compress(
return compressed_dict

def decompress(
self, path_to_model_or_tensors: str, device: str = "cpu"
self, path_to_model_or_tensors: str, device: str = "cpu", **kwargs
) -> Generator[Tuple[str, Tensor], None, None]:
raise NotImplementedError(
"Decompression is not implemented for the Marlin24 Compressor."
Expand Down
2 changes: 1 addition & 1 deletion src/compressed_tensors/compressors/naive_quantized.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def compress(
return compressed_dict

def decompress(
self, path_to_model_or_tensors: str, device: str = "cpu"
self, path_to_model_or_tensors: str, device: str = "cpu", **kwargs
) -> Generator[Tuple[str, Tensor], None, None]:
"""
Reads a compressed state dict located at path_to_model_or_tensors
Expand Down
2 changes: 1 addition & 1 deletion src/compressed_tensors/compressors/sparse_bitmask.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def compress(self, model_state: Dict[str, Tensor]) -> Dict[str, Tensor]:
return compressed_dict

def decompress(
self, path_to_model_or_tensors: str, device: str = "cpu"
self, path_to_model_or_tensors: str, device: str = "cpu", **kwargs
) -> Generator[Tuple[str, Tensor], None, None]:
"""
Reads a bitmask compressed state dict located
Expand Down
1 change: 0 additions & 1 deletion src/compressed_tensors/quantization/quant_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from compressed_tensors.quantization.quant_args import (
QuantizationArgs,
QuantizationStrategy,
QuantizationType,
)
from pydantic import BaseModel
Expand Down
Loading