<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jia Wei Teh</title>
    <description>The latest articles on Forem by Jia Wei Teh (@jiaweiteh).</description>
    <link>https://forem.com/jiaweiteh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F722498%2F65793165-59e9-409b-92aa-9ba0eba09ad0.jpg</url>
      <title>Forem: Jia Wei Teh</title>
      <link>https://forem.com/jiaweiteh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jiaweiteh"/>
    <language>en</language>
    <item>
      <title>Getting Started with Amazon SageMaker Studio Lab</title>
      <dc:creator>Jia Wei Teh</dc:creator>
      <pubDate>Sun, 12 Dec 2021 14:55:43 +0000</pubDate>
      <link>https://forem.com/aws-builders/getting-started-with-amazon-sagemaker-studio-lab-ok</link>
      <guid>https://forem.com/aws-builders/getting-started-with-amazon-sagemaker-studio-lab-ok</guid>
      <description>&lt;p&gt;The best way to learn data science and machine learning is with hands-on labs, tutorials and experimentations. Unfortunately, there are common pain points that add a layer of friction to get aspiring data scientists started.&lt;/p&gt;

&lt;p&gt;These struggles include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;setting up hardware like GPU or frameworks installation on personal laptops&lt;/li&gt;
&lt;li&gt;cloud-hosted ML environments are easy to set up but expensive&lt;/li&gt;
&lt;li&gt;lack persistent storage on free options (i.e. your data and environment will reset after the session expires)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In the latest AWS &lt;a href="https://reinvent.awsevents.com" rel="noopener noreferrer"&gt;re:Invent 2021&lt;/a&gt;, the AWS team announced the launch of SageMaker Studio Lab (currently in preview) to address these challenges and eliminate the setup hassle.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Amazon Sagemaker Studio is a free, no-configuration service that allows developers, academics and data scientist to learn and experiment with machine learning.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Unlike SageMaker Notebook Instances or SageMaker Studio, where you need to set up an AWS account (and the need for a credit card), you now &lt;strong&gt;only need&lt;/strong&gt; a valid &lt;strong&gt;email address&lt;/strong&gt; to register for an account and start experimenting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Overview
&lt;/h3&gt;

&lt;p&gt;AWS SageMaker Studio Lab is free (yes, FREE!). You can even choose between CPU or GPU, depending on your project needs.&lt;br&gt;
Your account is allocated &lt;strong&gt;15 GB&lt;/strong&gt; of persistent storage, and 16GB of RAM. What this means is you can save your project and dataset in the cloud (no need to start from scratch every time)&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For those who are familiar with AWS, the underlying resources are as follow — &lt;code&gt;G4dn.xlarge&lt;/code&gt; for GPU and &lt;code&gt;T3.xlarge&lt;/code&gt; for CPU instances (subject to change)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  Account Registration and Creation
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Visit &lt;a href="https://studiolab.sagemaker.aws/" rel="noopener noreferrer"&gt;https://studiolab.sagemaker.aws/&lt;/a&gt; and request an account. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fill up the form with your details&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faano9abth0npn69xxpeo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faano9abth0npn69xxpeo.png" alt="Request Form (screenshot from author)"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Wait for request approval (AWS claimed the process is &lt;em&gt;within 1 to 5 business days&lt;/em&gt;. I have gotten my account approved the next day after my request)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Upon receiving your approval email, you can follow the account creation instruction, proceed with the sign-up link from the email.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxzen1944a62mmij6mvd6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxzen1944a62mmij6mvd6.png" alt="Account Creation (screenshot from author)"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Exploring the Interface
&lt;/h2&gt;

&lt;p&gt;Upon reaching the landing page, you will need to start your project runtime. You’ll need to select between CPU and GPU runtime, and the sessions last from 12 (CPU) and 4 (GPU) respectively.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcql1mahupp0w9jafof17.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcql1mahupp0w9jafof17.png" alt="Home/Welcome page of SageMaker Studio Lab (screenshot from author)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the session is timed out, you will have to restart the project runtime again. Don’t worry, all your files will be saved on the persistent project storage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsl7yv7opwul8ccwyxnlr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsl7yv7opwul8ccwyxnlr.png" alt="Check your remaining time for your session"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Learn and Experiment
&lt;/h2&gt;
&lt;h4&gt;
  
  
  AWS Machine Learning University (MLU)
&lt;/h4&gt;

&lt;p&gt;MLU notebooks contain materials used to train Amazon’s own developers on machine learning. Courses include&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Natural Language Processing&lt;/li&gt;
&lt;li&gt;Tabular Data&lt;/li&gt;
&lt;li&gt;Computer Vision&lt;/li&gt;
&lt;li&gt;Decision Trees and Ensemble Methods&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
  
  
  Dive Into DeepLearning (D2L)
&lt;/h4&gt;

&lt;p&gt;Interactive notebooks (over 150 Jupyter Notebooks) that teach the fundamentals of machine learning, adopted from 300 universities, including Stanford, MIT, Harvard and Cambridge.&lt;/p&gt;
&lt;h4&gt;
  
  
  Hugging Face
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://huggingface.co" rel="noopener noreferrer"&gt;Hugging Face&lt;/a&gt; is the home of the Transformers library and the latest NLP, speech and computer vision models. Here, you can explore and learn from the notebooks in this &lt;a href="https://github.com/huggingface/notebooks" rel="noopener noreferrer"&gt;repository&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Jupyter Lab Interface
&lt;/h2&gt;

&lt;p&gt;Since it is based on the open-source JupyterLab, you can take advantage of open-source Jupyter extensions to run your Jupyter notebooks.&lt;/p&gt;

&lt;p&gt;You can also have full control with your (virtual) environment to leverage frameworks such as PyTorch, TensorFlow, MxNet, Hugging Face and libraries such as Scikit Learn, Pandas and NumPy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu63mn37csihreeej7s74.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu63mn37csihreeej7s74.png" alt="A typical Jupyter Lab interface on SageMaker Studio Lab (screenshot from author)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can clone your own Github repository and work on SageMaker Studio Lab as it has integration to Github and to Git for version control.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdolf0eil9anop0anui8m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdolf0eil9anop0anui8m.png" alt="Cloning your own repo to work on SageMaker Studio Lab (screenshot from author)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Furthermore, if you have a public Github repo with Jupyter Notebook, you can make it easy for others to open your notebooks in SageMaker Studio Lab.&lt;/p&gt;

&lt;p&gt;All you need to do is to add the &lt;code&gt;Open in Studio Lab&lt;/code&gt; link (badge) to your &lt;code&gt;README.md&lt;/code&gt; file or notebook. The markdown to be included is as follow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[![Open In Studio Lab]
(https://studiolab.sagemaker.aws/studiolab.svg)]
(https://studiolab.sagemaker.aws/import/github/org/repo/blob/master/path/to/notebook.ipynb)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The created badge will look like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zrabcn4z56pw5l374h7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zrabcn4z56pw5l374h7.png" alt="“Open in Studio Lab” badge"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Bonus: Hackathon
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs0865upbqzyoocpye2yt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs0865upbqzyoocpye2yt.png" alt="AWS Disaster Response Hackathon"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the time of writing (December 2021), there’s an ongoing hackathon (AWS Disaster Response Hackathon) where you can explore and train your models in SageMaker Studio Lab. The deadline is 7 Feb 2022, 5:00 pm EST.&lt;/p&gt;

&lt;p&gt;Read more:&lt;br&gt;
&lt;a href="https://awsdisasterresponse.devpost.com" rel="noopener noreferrer"&gt;https://awsdisasterresponse.devpost.com&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Thank you for reading this article and I hope you will find it insightful. Get your SageMaker Studio Lab before the waitlist is getting longer.&lt;/p&gt;

&lt;p&gt;Happy learning everyone.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>python</category>
      <category>machinelearning</category>
      <category>deeplearning</category>
    </item>
  </channel>
</rss>
