Questions tagged [amazon-sagemaker-studio]
106 questions
0
votes
0 answers
AWS Sagemaker, InvokeEndpoint operation, Model error: pass an offload_folder for model submodules?
So, I deployed 2 sagemaker endpoints (of Large Language Models) following their AWS official tutorial notebook here:…

Mustapha Unubi Momoh
- 125
- 1
- 9
0
votes
0 answers
Importing custom modules in schedulling AWS Sagemaker Pipelines
I understand that AWS Sagemaker Pipelines can be run on a scheduler using EventBridge. However, I will like to check if AWS Sagemaker Pipelines allows the user to import custom modules inside the code? All the examples that I had found online all…

ac123
- 15
- 4
0
votes
1 answer
AWS Sagemaker pipeline creating throwing error
I am newbie in using sagemaker pipeline .While following this AWS MLOPs workshop https://catalog.us-east-1.prod.workshops.aws/workshops/741835d3-a2bf-4cb6-81f0-d0bb4a62edca/en-US/03-lab-03
I am getting error on notebook 3 at step 67…

Ananda Roy
- 67
- 1
- 12
0
votes
1 answer
Sagemaker Kernel Error- Failed to Launch App: Error Retrieving Credentials
I am trying to start my Sagemaker studio instance but it consistently gives this error:
Failed to start kernel
Failed to launch app [None]. Error when retrieving credentials from container-role: Error retrieving metadata: Received non 200 response…

MSS
- 35
- 4
0
votes
1 answer
Sagemaker environment variable with .env
[Background]
I am used to use xx.py and defining a .env file in python project in Pycharm, and by doing
import os
os.environ['abc']
I will get the 'abc' variable defined in .env file.
[Question]
Now I need to work with sagemake studio, what is the…

Mapotofu
- 268
- 2
- 4
- 15
0
votes
0 answers
Is it possible to omit header rows when exporting a SageMaker DataWrangler flow to s3 (via a Jupyer Notebook)?
I am exporting a DataWrangler flow to s3 via a Jupyter Notebook using SageMaker Studio. Each of the resulting CSV files (each containing a part of the transformed dataset) include a header row with the column names. However when using a CSV file as…

Thomas Hopkins
- 671
- 2
- 10
- 20
0
votes
1 answer
How to call and pass custom arguments to a python script in sagemaker steps/pipeline?
I have some processing job that i run as a step in sagemaker pipelines, i pass the my python script filename/path to the script processor and also specify command = ['python3']. my main.py file can take an argument and locally i can call it as such…

haju
- 95
- 6
0
votes
0 answers
Sagemaker Pro code lists files, but s3file.glob() not working
So I have this code:
from pathlib import PosixPath
import numpy as np
import re
import os
import json
import s3fs
import argparse
import sagemaker
import cv2
import random
import boto3
import botocore
import tensorflow as tf
print(f"tensorflow:…

Leigh
- 518
- 5
- 12
0
votes
1 answer
Limiting instances types on aws sagemaker via iam policy
I am trying to limit sagemker studio from launching anything that is 48xl, 32xl, or 24xl
here is the IAM policy but not sure why its not working,
{
"Action": [
"sagemaker:CreateApp"
],
"Resource": [
…

Purple_haze
- 68
- 1
- 10
0
votes
1 answer
FileNotFound Error in AWS SageMaker while using sagemaker.image_uris.retrieve()
I want to import linear learner algorithm container, and my code doesn't work
from sagemaker import image_uris
container = sagemaker.image_uris.retrieve("linear-learner", region=boto3.Session().region_name, version="latest")
and this is the…
0
votes
1 answer
how to get sagemaker studio profile name inside a sagemaker notebook?
I have set up a sagemaker domain and added some user profile. I log into the sagemaker studio, select a user profile and it starts the studio for me. i open a new notebook. inside the notebook, i install sagemaker and import additional libraries.…

haju
- 95
- 6
0
votes
1 answer
SSL validation failed for sagemaker endpoint when an image is passed for inference
I trained a custom yolov5 model and deployed it to a sagemaker endpoint bby referring this blog : https://aws.amazon.com/blogs/machine-learning/scale-yolov5-inference-with-amazon-sagemaker-endpoints-and-aws-lambda/
Model Deployment :
model =…
0
votes
0 answers
AWS customer churn prediction out of memory
I am looking to create an inference pipeline using AWS SageMaker, similar to shown here. However, the key difference is our data is stored across multiple normalised tables and too large to fit in reasonable memory.
For example, the ETL'd data sits…

FChm
- 2,515
- 1
- 17
- 37
0
votes
0 answers
Is it possible to store custom graphics (such as ROC-Curve) in Sagemaker Model Registry?
I try to store some graphics with my Pipeline/Model in Sagemaker. So far, I've only been able to store Metrics in a JSON/PropertyFile, but I would like to store some visualizations as well.
Is this possible with Sagemaker (Studio) Model Registry?
In…

stats-hb
- 958
- 13
- 31
0
votes
1 answer
SageMaker Studio Notebooks
Do sage maker studio notebooks generate a token whenever it is started? Because I am not able to find the token in .jupyter/jupyter_notebook_config.json. I am actually trying to connect to this jupyter notebook remotely but facing issues..

Meghana S
- 75
- 6