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

Updates for SMStudio 2024+ and newer DLC versions #50

Merged
merged 18 commits into from
Jul 31, 2024
Merged

Conversation

athewsey
Copy link
Contributor

@athewsey athewsey commented Jul 30, 2024

Issue #, if available: #46, #47

Description of changes:

Updating the stack & sample to:

Testing done:

Tested end-to-end deployment (via bootstrap stack) in a fresh environment, and been through Optional Extras notebook also. Not yet updated the old "Workshop" notebook, but added a caveat to the top of it to indicate it's outdated.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

athewsey added 18 commits June 10, 2024 15:44
Update to cdk-ecr-deployment v3 to resolve deployment failure due to
deprecated AWS Lambda Go v1.x runtime.
Update CloudFormation bootstrap template for cfn-nag permissions
findings, to ensure `requests` install for CFn callback, and to
update from soon-EoL Python 3.8 Lambda runtime.
Update CDK OCR & thumbnailer deployments to PyTorch 2.2 inference
container. Still TODO: Update notebooks once validated.
Force building the Lambda from scratch as per comments on:
cdklabs/cdk-ecr-deployment#651
Update main notebook flow to work with SageMaker Studio JupyterLab
spaces (replacing SMStudio Classic since 2023-12) and upgrade SM
HuggingFace container bases. Also upgrade TRP.js to latest version.
Using PDFjs v4 requires us to shift the main app entrypoint to an ES
module, which in turn requires a workaround because SMGT/A2I
environment will not *actually run* module scripts by default due to
the way the user content iframe gets initialised. We could probably
consider switching TRP.js imports to ESM now too!
Run npm update & fix tsconfig for current versions of base libs.
Update extras notebook for 2024+ SMStudio, new HF container versions.
Also fix bootstrap scale-up-from-zero not getting triggered because
CW alarm was not initialised.
Not had time to fix this yet but the rest of the flow is updated
already so want to prioritize visibility at least.
Tested the notebooks end-to-end on v1.9 with no issues
@athewsey athewsey marked this pull request as ready for review July 31, 2024 17:36
@athewsey athewsey merged commit 6aec16b into main Jul 31, 2024
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.

1 participant