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

breaking: require framework_version, py_version for tensorflow #1580

Merged
merged 6 commits into from
Jun 12, 2020

Conversation

metrizable
Copy link
Contributor

Issue #, if available: #1465

Description of changes:

changes include:

  • framework_version, py_version required for framework TensorFlow
  • framework_version, py_version required for framework TensorFlowModel
  • re-order of args: convention to follow entry_point, push args with defaults below
  • testing updates
  • doc updates

Testing done:

unit:

% tox --parallel 3 tests/unit
✔ OK black-format in 13.57 seconds
✔ OK flake8 in 24.793 seconds
✔ OK twine in 14.049 seconds
✔ OK pylint in 37.106 seconds
✔ OK doc8 in 19.171 seconds
✔ OK py36 in 41.295 seconds
✔ OK sphinx in 1 minute, 37.846 seconds
✔ OK py37 in 37.777 seconds
✔ OK py27 in 1 minute, 55.877 seconds

integs:

% export IGNORE_COVERAGE=- ; tox -e py37 -- -s -vv tests/integ/test_tuner.py -k _tf ; unset IGNORE_COVERAGE
...
tests/integ/test_tuner.py::test_tuning_tf_script_mode[1.15.2] Started hyperparameter tuning job with name: tune-tf-script-m-1591919001-d74c
....................................................!
PASSED
tests/integ/test_tuner.py::test_tuning_tf[1.15.2] SKIPPED
tests/integ/test_tuner.py::test_tuning_tf_vpc_multi[1.15.2] SKIPPED
tests/integ/test_tuner.py::test_tuning_tf_script_mode[2.2.0] Started hyperparameter tuning job with name: tune-tf-script-m-1591919286-6da1
...............................................................!
PASSED
...
% export IGNORE_COVERAGE=- ; tox -e py37 -- -s -vv tests/integ/test_tf.py -k "not ml.p2" ; unset IGNORE_COVERAGE
...
tests/integ/test_tf.py::test_mnist_with_checkpoint_config[1.15.2-ml.m4.xlarge]
...
2020-06-12 00:07:26 Completed - Training job completed
Training seconds: 134
Billable seconds: 134
PASSED
tests/integ/test_tf.py::test_mnist_distributed[1.15.2-ml.m4.xlarge]
...
2020-06-12 00:13:56 Completed - Training job completed
Training seconds: 386
Billable seconds: 386
PASSED
...

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

  • I have read the CONTRIBUTING doc
  • I used the commit message format described in CONTRIBUTING
  • I have passed the region in to any/all clients that I've initialized as part of this change.
  • I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)
  • 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.

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 99279ff
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 04f1858
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: 04f1858
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: 99279ff
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: 99279ff
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: 04f1858
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-zwei-pr
  • Commit ID: 04f1858
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@metrizable metrizable force-pushed the require-framework-version-tensorflow branch from 04f1858 to 255c629 Compare June 12, 2020 05:15
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 255c629
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: 255c629
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-zwei-pr
  • Commit ID: 255c629
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: 255c629
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@metrizable metrizable force-pushed the require-framework-version-tensorflow branch from 255c629 to 3c59518 Compare June 12, 2020 07:13
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 3c59518
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: 3c59518
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-zwei-pr
  • Commit ID: 3c59518
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: 3c59518
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 735c5ef
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: 735c5ef
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: 735c5ef
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

doc/frameworks/tensorflow/upgrade_from_legacy.rst Outdated Show resolved Hide resolved
src/sagemaker/tensorflow/estimator.py Outdated Show resolved Hide resolved
src/sagemaker/tensorflow/estimator.py Outdated Show resolved Hide resolved
src/sagemaker/tensorflow/estimator.py Outdated Show resolved Hide resolved
src/sagemaker/tensorflow/model.py Outdated Show resolved Hide resolved
src/sagemaker/tensorflow/estimator.py Show resolved Hide resolved
tests/integ/test_tf.py Outdated Show resolved Hide resolved
tests/unit/__init__.py Show resolved Hide resolved
tests/unit/sagemaker/tensorflow/test_estimator.py Outdated Show resolved Hide resolved
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 210247c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: 210247c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: 210247c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

tests/conftest.py Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
tests/integ/test_tuner.py Outdated Show resolved Hide resolved
tests/integ/test_tuner.py Outdated Show resolved Hide resolved
@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-unit-tests
  • Commit ID: 7ee405a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-notebook-tests
  • Commit ID: 7ee405a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@sagemaker-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: sagemaker-python-sdk-local-mode-tests
  • Commit ID: 7ee405a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@metrizable metrizable merged commit dbdaf50 into aws:zwei Jun 12, 2020
@metrizable metrizable deleted the require-framework-version-tensorflow branch June 13, 2020 00:03
pintaoz-aws pushed a commit that referenced this pull request Dec 4, 2024
* add modelID support to model builder InProcess model

* fix format

* import pkg only if model id is specified

* fix format and remove unused imports

* add inference_spec to triton inProcess mode

* fix format

* fix format using black

* fix app.py

* Implement stop_server for fast api, remove model_server param from in_process mode

* fix tests and format

* rebase

* remove Inference spec support arg in DJL builder, add fastapi reqs to pyproject

* make changes to not support JS in in_process mode

* fix code style errors

* fix flake8 warnings

* fix tgi unit tests to build for TGI usecase instead of JS
pintaoz-aws pushed a commit that referenced this pull request Dec 4, 2024
* add modelID support to model builder InProcess model

* fix format

* import pkg only if model id is specified

* fix format and remove unused imports

* add inference_spec to triton inProcess mode

* fix format

* fix format using black

* fix app.py

* Implement stop_server for fast api, remove model_server param from in_process mode

* fix tests and format

* rebase

* remove Inference spec support arg in DJL builder, add fastapi reqs to pyproject

* make changes to not support JS in in_process mode

* fix code style errors

* fix flake8 warnings

* fix tgi unit tests to build for TGI usecase instead of JS
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.

3 participants