amazon-sagemaker-examples
amazon-sagemaker-examples copied to clipboard
Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
I tested the NB using SM Studio: Src: https://github.com/aws/amazon-sagemaker-examples/blob/master/aws_sagemaker_studio/sagemaker_neo_compilation_jobs/pytorch_torchvision/pytorch_torchvision_neo_studio.ipynb ## Issue ``` from sagemaker.model import NEO_IMAGE_ACCOUNT from sagemaker.fw_utils import create_image_uri model_name = name_from_base('TorchVision-ResNet18-Neo') image_uri = create_image_uri(region, 'neo-' + framework.lower(), target_device.replace('_',...
Does DeepAR support incremental learning? Or in other words: Does it accept the 'model_uri' argument? I want to update my model over time and I hope that training must not...
**Link to the notebook** https://github.com/aws/amazon-sagemaker-examples/blob/main/advanced_functionality/tensorflow_bring_your_own/tensorflow_bring_your_own.ipynb **Describe the bug** get-login is deprecated `$(aws ecr get-login --region ${region} --no-include-email)` **Solution** Replace line with `aws ecr get-login-password | docker login -u AWS --password-stdin...
**Link to the notebook** https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-pipelines/tabular/custom_callback_pipelines_step/sagemaker-pipelines-callback-step.ipynb **Describe the bug** The notebook fails to run end to end. 1/ The parameters passed to the callback step need to use Join 2/ The...
*Issue #, if available:* *Description of changes:* update codes compatible with SageMaker Python SDK v2 *Testing done:* Done ## Merge Checklist _Put an `x` in the boxes that apply. You...
2022-06-02 17:28:14 Failed - Training job failed ProfilerReport-1654189943: Stopping Traceback (most recent call last): File "code/EamesJointEmbedding/src/eames_joint_embedding/train/trigger_train.py", line 89, in launch_training(config, wait) File "code/EamesJointEmbedding/src/eames_joint_embedding/train/trigger_train.py", line 68, in launch_training estimator.fit(config["inputs"], wait=wait) File...
Hi all, I followed the script mode example [here](https://github.com/aws/amazon-sagemaker-examples/blob/c391082711d4297d157e3a546be29ef422a5974b/sagemaker-script-mode/sagemaker-script-mode.ipynb ) , specificaly [this](https://github.com/aws/amazon-sagemaker-examples/blob/c391082711d4297d157e3a546be29ef422a5974b/sagemaker-script-mode/xgboost_script/train_deploy_xgboost_with_dependencies.py). This is great and the cross_validation function [here](https://github.com/aws/amazon-sagemaker-examples/blob/c391082711d4297d157e3a546be29ef422a5974b/sagemaker-script-mode/my_custom_library/cross_validation_xgboost.py) returns errors and the model: ``` def cross_validation(df, K,...
Hi all, I followed the script mode example [here](https://github.com/aws/amazon-sagemaker-examples/blob/c391082711d4297d157e3a546be29ef422a5974b/sagemaker-script-mode/sagemaker-script-mode.ipynb ) , specificaly [this](https://github.com/aws/amazon-sagemaker-examples/blob/c391082711d4297d157e3a546be29ef422a5974b/sagemaker-script-mode/xgboost_script/train_deploy_xgboost_with_dependencies.py). The model fitted model is fitted like this: ``` model_location = args.model_dir + "/xgboost-model" pickle.dump(model, open(model_location, "wb"))...
## About Adds fairseq RoBERTa example notebook. Previously, https://github.com/aws/amazon-sagemaker-examples/pull/2964 did not get merged because the pinned commit leaks memory. Now that we have updated to the newest master in the...
I would like to use a Sagemaker Model with a custom VPC Configuration, which is currently not possible with Serverless Inference. Is this feature planned? More generally: Is there a...