Skip to content

Commit

Permalink
quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Adkins committed May 1, 2024
1 parent 1c3b31b commit 90795bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def save_pretrained_wrapper(

return


if sparsity_config is not None:
sparsity_config.global_sparsity = (
SparsityConfigMetadata.infer_global_sparsity(
Expand Down
3 changes: 1 addition & 2 deletions src/sparseml/transformers/sparsification/sparse_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
apply_quantization_config,
load_pretrained_quantization,
)
from sparseml.modifiers.quantization.modification import modify_model
from sparseml.pytorch.model_load.helpers import (
apply_recipe_structure_to_model,
log_model_load,
Expand Down Expand Up @@ -152,8 +153,6 @@ class SparseAutoModel:
Factory class for creating sparse models using transformers AutoModel classes
"""

from sparseml.modifiers.quantization.modification import modify_model

@staticmethod
def masked_language_modeling_from_pretrained(
model_name_or_path: str,
Expand Down

0 comments on commit 90795bd

Please sign in to comment.