Skip to content

Commit

Permalink
[CI/Build] Remove sparseml requirement from testing (#7037)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored Aug 1, 2024
1 parent 2dd3437 commit fb3db61
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 58 deletions.
1 change: 0 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ peft
requests
ray
sentence-transformers # required for embedding
sparseml==1.8.0 # required for compressed-tensors
compressed-tensors==0.4.0 # required for compressed-tensors
timm # required for internvl test

Expand Down
4 changes: 0 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def __init__(
model_kwargs: Optional[Dict[str, Any]] = None,
is_embedding_model: bool = False,
is_vision_model: bool = False,
is_sparseml_model: bool = False,
) -> None:
torch_dtype = STR_DTYPE_TO_TORCH_DTYPE[dtype]

Expand All @@ -169,9 +168,6 @@ def __init__(
else:
if is_vision_model:
auto_cls = AutoModelForVision2Seq
elif is_sparseml_model:
from sparseml.transformers import SparseAutoModelForCausalLM
auto_cls = SparseAutoModelForCausalLM
else:
auto_cls = AutoModelForCausalLM

Expand Down
52 changes: 0 additions & 52 deletions tests/models/test_compressed_tensors.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/quantization/test_compressed_tensors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Test model set-up and weight loading for sparseml-quantized models.
"""Test model set-up and weight loading for llmcompressor-quantized models.
Run `pytest tests/quantization/test_compressed_tensors.py`.
"""
Expand Down

0 comments on commit fb3db61

Please sign in to comment.