Skip to content

Commit

Permalink
Merge branch 'main' into feature/damian/sparsetensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Adkins authored Apr 22, 2024
2 parents 5d9c7dd + 1abc30c commit dfa41fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions docs/source/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,5 @@ TensorFlow V1 with GPU operations enabled:
pip install sparseml[tf_v1_gpu]
```

Depending on your device and CUDA version, you may need to install additional dependencies for using TensorFlow V1 with GPU operations. You can find these steps [here.](https://www.tensorflow.org/install/gpu#older_versions_of_tensorflow)

Note, TensorFlow V1 is no longer being built for newer operating systems such as Ubuntu 20.04.
Therefore, SparseML with TensorFlow V1 is unsupported on these operating systems as well.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

_onnxruntime_deps = ["onnxruntime>=1.0.0"]
_clip_deps = ["open_clip_torch==2.20.0"]
supported_torch_version = "torch>=1.7.0,<2.2"
supported_torch_version = "torch>=1.7.0,<2.3"
_pytorch_deps = [
supported_torch_version,
"gputils",
Expand Down
3 changes: 2 additions & 1 deletion src/sparseml/pytorch/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@


_TORCH_MIN_VERSION = "1.0.0"
_TORCH_MAX_VERSION = os.environ.get("MAX_TORCH", "2.1.10")
# set max to 2.2.99 to account for bugfix versions with 2.2
_TORCH_MAX_VERSION = os.environ.get("MAX_TORCH", "2.2.99")


def check_torch_install(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def distilbert_model():

@pytest.fixture
def mistral_model():
config = AutoConfig.from_pretrained("mistralai/Mistral-7B-v0.1")
config = AutoConfig.from_pretrained("NousResearch/Hermes-2-Pro-Mistral-7B")
with init_empty_weights():
model = AutoModel.from_config(config)
return model
Expand Down

0 comments on commit dfa41fb

Please sign in to comment.