Skip to content

Commit

Permalink
import ModelCompressor for type checking
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
  • Loading branch information
kylesayrs committed Dec 2, 2024
1 parent 2dcbc9d commit bed83b6
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 @@ -12,12 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Any, Dict, Optional
from typing import TYPE_CHECKING, Any, Dict, Optional

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 bed83b6

Please sign in to comment.