Questions tagged [amazon-sagemaker-studio]
106 questions
1
vote
1 answer
How to use Streamlit on Sagemaker Studio with an image terminal?
I have been trying to test a streamlit app on Sagemaker Studio.
If I run the streamlit hello command on the system terminal, the command executes properly and I'm able to access the app…

Sharat
- 147
- 7
1
vote
1 answer
Get the CSRF token for the running jupyter notebook on sagemaker studio
how do I get the CSRF token for a jupyter notebook on Amazon sagemaker studio?
I am running the following command in the notebook named "test.ipynb" on sagemaker studio notebook instance:
import requests
url =…

Meghana S
- 75
- 6
1
vote
1 answer
TypeError: Object of type Properties is not JSON serializable (Sagemaker Pipeline)
I am trying to set up a Sagemaker pipeline that has 2 steps: preprocessing then training an RF model.
The first step produces 3 outputs: a scaled_data.csv, train.csv, and test.csv. The second step should take train and test CSVs to train the RF…

MSS
- 35
- 4
1
vote
1 answer
How to connect to a git repo and run git commands in sagemaker studio?
I have set up a sagemaker studio , opened a terminal and cloned a project from gitlab repo, over https.
git clone https://somegilaburl/project
I dont' have access to save ssh keys, so i want to save my credentials as aws secret in secrets manager…

haju
- 95
- 6
1
vote
1 answer
Creating a sagemaker studio environment using lifecycle configuration
In Sagemaker Studio I created a new lifecycle configuration with a start up script that can set up a new environment with certain packages(BeautifulSoup for example). The script I wrote is as below:
#!bin/bash
set -eux
PACKAGE=BeautifulSoup
%pip…

kaalabhairava
- 35
- 4
1
vote
1 answer
How do I prevent users in sagemaker studio from spinning up new kernels when the total cost of the month exceeds a threshold?
I am currently in the process of setting something up with Sagemaker studio in my research lab. However, my supervisor was wondering whether is there a way to set the permissions such that no new user is allowed to spin up a new kernel/instance in…

terrygryffindor
- 145
- 6
1
vote
0 answers
Upload Sagemaker Model to S3 without encryption
I am training models in sagemaker with its Pytorch Module and Huggingface module.
When the training is done, It successfully uploads model artifacts into s3.
But the problem is the code automatically uploads the model with encryption though I did…

Sazzad
- 773
- 11
- 22
1
vote
1 answer
Sagemaker training job fails ""FileNotFoundError: [Errno 2] No such file or directory: '/opt/ml/input/data/training/annotations.json'"
When trying to use a Quick Start model in AWS Sagemaker, specifically for Object Detection, all fine tune models fail to train.
I'm attempting to fine tune a SSD Mobilenet V1 FPN 640x640 COCO '17 model.
The annotations and images are accepted, but…

Dylan Pierce
- 4,313
- 3
- 35
- 45
1
vote
0 answers
Why AWS Sagemaker Studio domain is hanging and showing 'Unknown user'
I'm trying to launch a SageMaker studio domain within VPC, but it's hanging all the time. if i check the app status inside my user profile, it shows me 'ready', but the studio interface keeps showing me the logo, also it keeps showing me the text…

wawawa
- 2,835
- 6
- 44
- 105
1
vote
1 answer
Deploy a Tensorflow model built using TF2 in TF1 format (no SavedModel bundles found!)
I have used Recommenders https://github.com/microsoft/recommenders library to train an NCF recommendation model. Currently I'm getting issues in deployment through Amazon TensorflowModel library
Model is saved using the following code
def…

Muhammad Humza
- 85
- 8
1
vote
2 answers
Sagemaker - UnkownServiceError for Session
I am trying to run a simple model in sagemaker.
When trying to run the following code I keep getting this error.
It is a very simple code that I saw in some tutorials and in sagemaker examples that are included in the Jupiter notebook.
Does anyone…

Naftali Shtern
- 41
- 4
1
vote
1 answer
how to run a batch transform job in sagemaker pipeline via custom inference code?
based on the aws documentation/example provided here ,…

arve
- 569
- 2
- 10
- 27
1
vote
0 answers
How to build docker images for multiple Sagemaker training applications?
Given one ML repository contains 3 training applications, briefly,
root
|__Dockerfile
|__requirements.txt (contains **heavy dependencies**, e.g., numpy, sklearn, etc. needed for all 3 apps)
|__app_0
| |__training_0.py
| …

PolarStorm
- 21
- 3
1
vote
1 answer
How to deploy the hugging face model via sagemaker pipeline
Below is the code to get the model from Hugging Face Hub and deploy the same model via sagemaker.
from sagemaker.huggingface import HuggingFaceModel
import sagemaker
role = sagemaker.get_execution_role()
# Hub Model configuration.…

Soumya
- 181
- 1
- 6
1
vote
1 answer
How to install additional packages in sagemaker pipeline
I want to add dependency packages in my sagemaker pipeline which will be used in Preprocess step.
I have tried to add it in required_packages in setup.py file but it's not working.
I think setup.py file is no use of at all.
required_packages =…

sid8491
- 6,622
- 6
- 38
- 64