Skip to content

Commit

Permalink
import ModelCompressor for type checking (#220)
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
  • Loading branch information
kylesayrs authored Jan 23, 2025
1 parent fc711ca commit c026704
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compressed_tensors/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@

import warnings
from functools import wraps
from typing import Any, Callable, Dict, List, Optional
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional

import numpy
import torch
from transformers import AutoConfig


if TYPE_CHECKING:
from compressed_tensors.compressors import ModelCompressor


__all__ = [
"infer_compressor_from_model_config",
"fix_fsdp_module_name",
Expand Down

0 comments on commit c026704

Please sign in to comment.