Skip to content

Commit

Permalink
[Cherry-Pick][Fix] Failing test_save_zoo_directory tests (#1869)
Browse files Browse the repository at this point in the history
* "AttributeError: 'torch._C.Value' object has no attribute 'float'" sparseml.transformers.export_onnx for zoo:bert-base_cased-squad_wikipedia_bookcorpus-pruned80.4block_quantized (#1847)

* [Fix] Failing  tests
  • Loading branch information
dbogunowicz committed Nov 30, 2023
1 parent c052e27 commit aac6b90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/sparseml/transformers/utils/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def test_save_zoo_directory(stub, tmp_path_factory):
zoo_model = Model(stub, path_to_training_outputs)
zoo_model.download()

zoo_model.deployment_tar.unzip()
zoo_model.sample_inputs.unzip()
zoo_model.sample_outputs["framework"].unzip()

Expand Down

0 comments on commit aac6b90

Please sign in to comment.