Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support Python3.11 #1764

Merged
merged 3 commits into from
Oct 13, 2023
Merged

[Feature] Support Python3.11 #1764

merged 3 commits into from
Oct 13, 2023

Conversation

rahul-tuli
Copy link
Member

@rahul-tuli rahul-tuli commented Oct 13, 2023

This PR updates out max supported Python version to ~3.11

Testing: ran make test TARGETS=torch locally, will report results when complete

Tests Pass with fixes:

$ make test TARGETS=torch                                                                                                            (add-python3.11-support|✚1…1⚑2)
Running python tests
SPARSEZOO_TEST_MODE="true" pytest tests "" --ignore tests/sparseml/deepsparse --ignore tests/sparseml/transformers --ignore tests/sparseml/keras --ignore tests/sparseml/onnx --ignore tests/sparseml/pytorch --ignore tests/sparseml/pytorch/models --ignore tests/sparseml/pytorch/datasets --ignore tests/sparseml/tensorflow_v1 --ignore tests/sparseml/tensorflow_v1/models --ignore tests/sparseml/tensorflow_v1/datasets --ignore tests/integrations
======================================================================== test session starts ========================================================================
platform linux -- Python 3.11.5, pytest-6.2.5, py-1.11.0, pluggy-1.3.0
rootdir: /home/rahul/projects/sparseml, configfile: pyproject.toml
plugins: flaky-3.7.0, mock-3.6.1, anyio-4.0.0
collected 252 items                                                                                                                                                 

tests/sparseml/test_base.py ................                                                                                                                  [  6%]
tests/sparseml/test_imports.py .                                                                                                                              [  6%]
tests/sparseml/test_version.py .                                                                                                                              [  7%]
tests/sparseml/benchmark/test_serialization.py ..................................                                                                             [ 20%]
tests/sparseml/core/recipe/test_recipe.py ..                                                                                                                  [ 21%]
tests/sparseml/exporters/transforms/test_constants_to_initializers.py .                                                                                       [ 21%]
tests/sparseml/exporters/transforms/test_conv_to_convinteger_add_cast_mul.py ..                                                                               [ 22%]
tests/sparseml/exporters/transforms/test_conv_to_qlinearconv.py ..                                                                                            [ 23%]
tests/sparseml/exporters/transforms/test_delete_repeated_qdq.py .                                                                                             [ 23%]
tests/sparseml/exporters/transforms/test_delete_trivial_onnx_adds.py ..                                                                                       [ 24%]
tests/sparseml/exporters/transforms/test_flatten_qparams.py .                                                                                                 [ 25%]
tests/sparseml/exporters/transforms/test_fold_conv_div_bn.py ..                                                                                               [ 25%]
tests/sparseml/exporters/transforms/test_fold_identity_initializer.py .                                                                                       [ 26%]
tests/sparseml/exporters/transforms/test_fold_relu_quants.py ...                                                                                              [ 27%]
tests/sparseml/exporters/transforms/test_gemm_to_matmulinteger_add_cast_mul.py ...                                                                            [ 28%]
tests/sparseml/exporters/transforms/test_gemm_to_qlinearmatmul.py .....                                                                                       [ 30%]
tests/sparseml/exporters/transforms/test_initializers_to_uint8.py .                                                                                           [ 30%]
tests/sparseml/exporters/transforms/test_matmul_add_to_matmulinteger_add_cast_mul.py ...                                                                      [ 32%]
tests/sparseml/exporters/transforms/test_matmul_to_qlinearmatmul.py .....                                                                                     [ 34%]
tests/sparseml/exporters/transforms/test_onnx_transform.py ...                                                                                                [ 35%]
tests/sparseml/exporters/transforms/test_propagate_embedding_quantization.py .                                                                                [ 35%]
tests/sparseml/exporters/transforms/test_quantize_qat_embedding.py ..                                                                                         [ 36%]
tests/sparseml/exporters/transforms/test_quantize_residuals.py ..                                                                                             [ 37%]
tests/sparseml/exporters/transforms/test_remove_duplicate_qconv_weights.py .                                                                                  [ 37%]
tests/sparseml/exporters/transforms/test_remove_duplicate_quantize_ops.py .                                                                                   [ 38%]
tests/sparseml/exporters/transforms/test_skip_input_quantize.py ....                                                                                          [ 39%]
tests/sparseml/exporters/transforms/test_unwrap_batchnorms.py .                                                                                               [ 40%]
tests/sparseml/exporters/transforms/utils/test_matching.py .....                                                                                              [ 42%]
tests/sparseml/framework/test_info.py ......                                                                                                                  [ 44%]
tests/sparseml/optim/test_analyzer.py .                                                                                                                       [ 44%]
tests/sparseml/optim/test_helpers.py .............................                                                                                            [ 56%]
tests/sparseml/optim/test_manager.py ..........                                                                                                               [ 60%]
tests/sparseml/optim/test_modifier.py ...............                                                                                                         [ 66%]
tests/sparseml/optim/test_sensitivity.py .                                                                                                                    [ 66%]
tests/sparseml/sparsification/test_info.py .........                                                                                                          [ 70%]
tests/sparseml/sparsification/test_model_info.py ........                                                                                                     [ 73%]
tests/sparseml/sparsification/test_oracle.py ....                                                                                                             [ 75%]
tests/sparseml/sparsification/test_recipe_builder.py .......                                                                                                  [ 77%]
tests/sparseml/utils/test_helpers.py .................................                                                                                        [ 90%]
tests/sparseml/utils/test_restricted_eval.py ..............                                                                                                   [ 96%]
integrations/old-examples/pytorch/argparser_/test_nmargparser.py .........                                                                                    [100%]

bfineran
bfineran previously approved these changes Oct 13, 2023
@rahul-tuli rahul-tuli marked this pull request as ready for review October 13, 2023 13:42
@rahul-tuli rahul-tuli self-assigned this Oct 13, 2023
@rahul-tuli rahul-tuli changed the title Support Python3.11 [Feature] Support Python3.11 Oct 13, 2023
@rahul-tuli rahul-tuli changed the title [Feature] Support Python3.11 [Feature] Support Python3.11 Oct 13, 2023
@bfineran bfineran merged commit 1ab17ad into main Oct 13, 2023
10 of 11 checks passed
@bfineran bfineran deleted the add-python3.11-support branch October 13, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants