Skip to content

Skip JS Tune integration test #4548

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

Merged
merged 4 commits into from
Mar 29, 2024
Merged

Skip JS Tune integration test #4548

merged 4 commits into from
Mar 29, 2024

Conversation

makungaj1
Copy link
Contributor

Issue #, if available:

Description of changes:
Skip Integration test case for JS Tune in local mode.

This test case may be suitable as Notebook test as it requires access to instance GPU count to determine
Tensor parallel degrees.

        admissible_parallel_degrees = []
>       for i in (n + 1 for n in reversed(range(len(available_gpus)))):
E       TypeError: object of type 'NoneType' has no len()

Testing done:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • [x ] I have read the CONTRIBUTING doc
  • [ x] I certify that the changes I am introducing will be backward compatible, and I have discussed concerns about this, if any, with the Python SDK team
  • [ x] I used the commit message format described in CONTRIBUTING
  • [ x] I have passed the region in to all S3 and STS clients that I've initialized as part of this change.
  • [ x] I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

  • [x ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • [x ] I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes
  • [x ] I have checked that my tests are not configured for a specific region or account (if appropriate)
  • [ x] I have used unique_name_from_base to create resource names in integ tests (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@makungaj1 makungaj1 requested a review from a team as a code owner March 29, 2024 20:24
@makungaj1 makungaj1 requested review from benieric and removed request for a team March 29, 2024 20:24
@gwang111
Copy link
Collaborator

Whats our path to addressing this gap in testing?

@makungaj1
Copy link
Contributor Author

makungaj1 commented Mar 29, 2024

Whats our path to addressing this gap in testing?

Notebooks testing - Of course, need team input on this.

@makungaj1 makungaj1 closed this Mar 29, 2024
@makungaj1 makungaj1 reopened this Mar 29, 2024
@samruds
Copy link
Collaborator

samruds commented Mar 29, 2024

This issue is arising due to instance type with GPU enabled not being picked?

Can we use this : https://github.com/aws/sagemaker-python-sdk/blob/master/tests/integ/sagemaker/serve/test_serve_model_builder_gpu.py#L91

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.43%. Comparing base (cb9aedb) to head (dfba888).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4548      +/-   ##
==========================================
- Coverage   87.44%   87.43%   -0.01%     
==========================================
  Files         389      389              
  Lines       36885    36885              
==========================================
- Hits        32253    32252       -1     
- Misses       4632     4633       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akrishna1995 akrishna1995 requested review from akrishna1995 and removed request for benieric March 29, 2024 21:08
@akrishna1995 akrishna1995 self-assigned this Mar 29, 2024
@makungaj1
Copy link
Contributor Author

This issue is arising due to instance type with GPU enabled not being picked?

Yeah, this could work if we pass instance type in .tune() like here https://github.com/aws/sagemaker-python-sdk/blob/master/tests/integ/sagemaker/serve/test_serve_model_builder_gpu.py#L105

Passing instance type during model builder init doesn't help either

model_builder = ModelBuilder(
        model="huggingface-llm-bilingual-rinna-4b-instruction-ppo-bf16",
        schema_builder=SchemaBuilder(SAMPLE_PROMPT, SAMPLE_RESPONSE),
        mode=Mode.LOCAL_CONTAINER,
        sagemaker_session=sagemaker_local_session,
        instance_type=kwargs["instance_type"],
    )

Note: As this test case was recently added. I'll completely remove it.

@akrishna1995
Copy link
Contributor

This issue is arising due to instance type with GPU enabled not being picked?

Yeah, this could work if we pass instance type in .tune() like here https://github.com/aws/sagemaker-python-sdk/blob/master/tests/integ/sagemaker/serve/test_serve_model_builder_gpu.py#L105

Passing instance type during model builder init doesn't help either

model_builder = ModelBuilder(
        model="huggingface-llm-bilingual-rinna-4b-instruction-ppo-bf16",
        schema_builder=SchemaBuilder(SAMPLE_PROMPT, SAMPLE_RESPONSE),
        mode=Mode.LOCAL_CONTAINER,
        sagemaker_session=sagemaker_local_session,
        instance_type=kwargs["instance_type"],
    )

Note: As this test case was recently added. I'll completely remove it.

Thank you so much!

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-pr
  • Commit ID: dfba888
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

reason="The goal of these tests are to test the serving components of our feature",
@pytest.mark.skip(
reason="available_gpus is None as InstanceType is not picked up. Need to see if this test case can be added as "
"Notebook tests: /tests/scripts/run-notebook-test.sh",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove these instead of just skipping? what is the long term plan for these ? is there any alternative to provisioning GPU

@akrishna1995 akrishna1995 merged commit cee5233 into aws:master Mar 29, 2024
malav-shastri pushed a commit to malav-shastri/sagemaker-python-sdk that referenced this pull request Jun 20, 2024
* Skip JS Tune integration test

* Revert "Skip JS Tune integration test"

This reverts commit 627f394.

* Revert "Revert "Skip JS Tune integration test""

* Remove integ test case

---------

Co-authored-by: Jonathan Makunga <[email protected]>
jiapinw pushed a commit to jiapinw/sagemaker-python-sdk that referenced this pull request Jun 25, 2024
* Skip JS Tune integration test

* Revert "Skip JS Tune integration test"

This reverts commit 627f394.

* Revert "Revert "Skip JS Tune integration test""

* Remove integ test case

---------

Co-authored-by: Jonathan Makunga <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants