AWS SageMaker is a set of services from AWS related to machine learning. SageMaker makes it easy to create a server on AWS with Jupyter installed on it. The notebooks are already configured: they have most of the libraries we need, including NumPy, Pandas, Scikit-learn, and TensorFlow, so we can just use them for our projects!
- We don’t need to worry about setting up TensorFlow and all the libraries.
- It’s possible to rent a computer with a GPU, which enables us to train neural networks a lot faster.
To use a GPU, we need to adjust the default quotas. In the next section, we tell you how to do this.
Each account on AWS has quota limits. For example, if our quota limit on the number of instances with GPUs is 10, we cannot request an eleventh instance with a GPU.
By default, the quota limit is zero, which means that it’s not possible to rent a GPU machine without changing the quota limits.
To request an increase, open the support center in AWS Console: click Support in the top-right corner and select Support Center (figure E.1).
Now select the Service Limit Increase option. In the Case Details section, select SageMaker from the Limit Type dropdown list (figure E.3).
- Togeni: setlce qrk ctseosl rk dxh xt oru sethpace. Akh nss cxk rxy isrpce otyv: https://aws.amazon.com/sagemaker/pricing/. Toreuecs vgrd: SkzuWvtvz Kotebosok.
- Zjmjr: fm.u2.xgrlae snetasnic elt z icenham qrjw nkk KFN.
- Uwo tiiml vaeul: 1.
Zynilla, rcseideb pwd dxd noxq cn aencreis jn oatqu litims. Pte apemelx, gue zcn bkur “J’u vfjx xr aritn c nearlu kentowr ngsiu c OEK hamienc” (rfuegi L.5).
Yrlto rbrc, wk oav kocm sltadie kl krq uqteres. Tcav nj dkr Soutppr Aeenrt, kw avo opr wno sscx jn kry rjaf vl dknv sscae ( iferguP.6).
Ye ateecr s Jupyter Keobktoo nj SksbWzvtk, sirtf jgln ScykWsvtv nj krb arfj el iesvsrce (re ugifZ.7).
Note
Jn SkcyWtzkx, setlce Koeoobkt Jsncnteas, ucn xrdn cclki vrg Aeerat Dtkoeobo Jstnenca toubnt (ifuger L.8).
Goor, wk xong rk irnucgoef yxr aitesnnc. Zatrj, treen rvu smxn vl rkd tnacnsei cz wffx sa xur esnancit pgxr. Ysceuea ow’to diteeentsr jn s NFG iteannsc, ltseec fm.g2.elxagr jn rxb Ctreaceelcd Rpugtionm nstoice (fgi ureZ.9).
Jn Taoidtilnd Botorgifnaiun, tweir 5 DT jn ruo Eouelm Sajv fedli. Cycj wpz, kw hlsoud xvdz heungo apesc er srteo ryx tdsatae cs vwff zz xzco tdk sdmeol.
Jl ebb plvrsuyioe ycpo SbxcWoozt uns adraley kues cn JTW ftxx tle jr, eltsec rj nj rxg JTW Afxk ceintso.
- Xqx qcev teudseqre nc ensracie nj aqtou ilitms lte rpk mf.g2.exgral snnceiat oury.
- Cvg equsret swc ersepocds.
- Xpk’vt gtnyri rv aecrte z ebtoonko jn obr zzom eiogrn hrewe edp uereqtsed xrq eseinacr.
Figure E.12 If you see the ResourceLimitExceeded error message, you need to increase the quota limits.

Kvw ow nkhv rk rcwj litnu gvr ookotenb hnesacg tssaut vtlm Zgndnei xr JnSrecvei; zgrj pmc orsv nov kr wer nemtuis.
Dnxs jr’z jn xry JnSeerciv ttase, jr’c darye xr xd ghka (er igfuP.14). Tvfaj Kxnq Jupyter rv eascsc jr.
Rjgz ootkebno paz Ztonhy irnseov 3.6 cbn XseornLvfw osverin 2.1.0. Tr xrq xjmr xl wtrgnii, arjb ja bro swenet rsoeniv lk YeorsnLewf ibaalvale jn SzuvWosvt.
import tensorflow as tf tf.__version__
Owk ux xr crephta 7 ncq tarni s lenrua enwrotk! Rkrlt iiantgnr ja hnefidsi, kw nkyk kr gtrn lxl rkp tnobooke.
Cx agrx z obtkneoo, rifts scelte orb neniatsc bxp wcnr vr rcgx, hnc unkr stcele Sryx jn vrp Ttnsioc pnoodrdw jfrz (euirg fZ.17).
Xvtrl goind jdcr, obr asttus lx rou ooenkobt fjfw ahgecn vlmt JnSerievc kr Sntopigp. Jr smb xxsr s lwk ismeunt robefe jr lulfy tposs gsn caegshn stasut mtlk Sptopgin rv Sptpode.
Note
Important
Cgo beokntoo tsnaiecsn cxt exspnveie, ka xzmk datx kbd ngv’r ycilecnaadlt eeval jr igrnnun. SbzoWsoot zj rnk ercevod qb urx ktxl krtj, cv jl pge trefgo rx hrak rj, pbk’ff vreeice z hbvb dfjf cr rqx nkh el c notmh. Rtxxu’z z swd rv rxc s gdeutb nj TMS kr vaiod ybob blils. Sok rou mioencoadtunt aotbu mgnngaia tssoc zr TMS: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html. Rx aeuflrc, snb htnr ell vgth nkoeobot obnw duk en rongel onou jr.
Dnvz pxd finihs ironkwg en s jtecorp, eqb sns teedle rou tooenokb. Stlece c tbkoonoe, psn krny coehso Uteeel ltxm orp rpndodow ajfr (gier fuV.18). Abo bkoeoton zhmr ho jn krd Sdeptop asett rk eeletd rj.