代碼編輯器用戶指南 - Amazon SageMaker

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

代碼編輯器用戶指南

本節中的主題提供使用程式碼編輯器的指南,包括如何啟動 AWS 服務、新增連線、關閉資源等等。建立程式碼編輯器空間之後,您可以直接透過瀏覽器存取您的程式碼編輯器工作階段。

在程式碼編輯器環境中,您可以執行下列動作:

  • 存取所有保留在主目錄中的成品

  • 克隆您的 GitHub 存儲庫並提交更改

  • 存取 SageMaker Python開發套件

您可以返回 Studio 檢閱在程式碼編輯器環境中建立的任何資產,例如實驗、管道或訓練工作。

檢查程式碼編輯器的版本

下列步驟說明如何檢查程式碼編輯器應用程式的版本。

檢查程式碼編輯器應用程式版本
  1. 啟動並執行程式碼編輯器空間,然後瀏覽至程式碼編輯器應用程式 UI。如需詳細資訊,請參閱 在 Studio 中啟動程式碼編輯器應用程式

  2. 在程式碼編輯器 UI 的左上角,選擇選單按鈕 ( )。然後,選擇「幫助」。然後,選擇關於

注意

目前版本的 SageMaker 程式碼編輯器是以 1.83.1 版的Code-OSS、Visual Studio Code-為基礎。Open Source

程式碼編輯器應用程式實例和

只有某些實例與代碼編輯器應用程序兼容。您可以從「執行個體」下拉式功能表中選擇與使用案例相容的執行個體類型。

快速啟動執行個體的啟動速度比其他執行個體快得多。如需 Studio 中快速啟動執行個體類型的詳細資訊,請參閱可與 Studio 經典版搭配使用的執行個體類型.

注意

如果您在設定程式碼編輯器應用程式時使用 GPU 執行個體類型,也必須使用 GPU 映像檔。當您選取執行個體類型時,程式碼編輯器空間 UI 會自動選取相容的映像檔。

在空間內,您的資料存放在 Amazon EBS 磁碟區中,該磁碟區會與執行個體的生命週期獨立存在。變更執行個體時,不會遺失資料。如果您的程式碼編輯器空間是Running,您必須先停止空間,才能變更執行個體類型。

下表列出每個區域的可用程式碼編輯器 CPU 和 GPU 映像檔的 ARN。

區域 CPU GPU
us-east-1 arn:aws:sagemaker:us-east-1:885854791233:image/sagemaker-distribution-cpu arn:aws:sagemaker:us-east-1:885854791233:image/sagemaker-distribution-gpu
us-east-2 arn:aws:sagemaker:us-east-2:37914896644:image/sagemaker-distribution-cpu arn:aws:sagemaker:us-east-2:37914896644:image/sagemaker-distribution-gpu
us-west-1 arn:aws:sagemaker:us-west-1:053634841547:image/sagemaker-distribution-cpu arn:aws:sagemaker:us-west-1:053634841547:image/sagemaker-distribution-gpu
us-west-2 arn:aws:sagemaker:us-west-2:542918446943:image/sagemaker-distribution-cpu arn:aws:sagemaker:us-west-2:542918446943:image/sagemaker-distribution-gpu
af-south-1 arn:aws:sagemaker:af-south-1:238384257742:image/sagemaker-distribution-cpu arn:aws:sagemaker:af-south-1:238384257742:image/sagemaker-distribution-gpu
ap-east-1 arn:aws:sagemaker:ap-east-1:523751269255:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-east-1:523751269255:image/sagemaker-distribution-gpu
ap-south-1 arn:aws:sagemaker:ap-south-1:245090515133:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-south-1:245090515133:image/sagemaker-distribution-gpu
ap-northeast-2 arn:aws:sagemaker:ap-northeast-2:064688005998:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-northeast-2:064688005998:image/sagemaker-distribution-gpu
ap-southeast-1 arn:aws:sagemaker:ap-southeast-1:022667117163:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-southeast-1:022667117163:image/sagemaker-distribution-gpu
ap-southeast-2 arn:aws:sagemaker:ap-southeast-2:648430277019:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-southeast-2:648430277019:image/sagemaker-distribution-gpu
ap-northeast-1 arn:aws:sagemaker:ap-northeast-1:010972774902:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-northeast-1:010972774902:image/sagemaker-distribution-gpu
ca-central-1 arn:aws:sagemaker:ca-central-1:481561238223:image/sagemaker-distribution-cpu arn:aws:sagemaker:ca-central-1:481561238223:image/sagemaker-distribution-gpu
eu-central-1 arn:aws:sagemaker:eu-central-1:545423591354:image/sagemaker-distribution-cpu arn:aws:sagemaker:eu-central-1:545423591354:image/sagemaker-distribution-gpu
eu-west-1 arn:aws:sagemaker:eu-west-1:819792524951:image/sagemaker-distribution-cpu arn:aws:sagemaker:eu-west-1:819792524951:image/sagemaker-distribution-gpu
eu-west-2 arn:aws:sagemaker:eu-west-2:021081402939:image/sagemaker-distribution-cpu arn:aws:sagemaker:eu-west-2:021081402939:image/sagemaker-distribution-gpu
eu-west-3 arn:aws:sagemaker:eu-west-3:856416204555:image/sagemaker-distribution-cpu arn:aws:sagemaker:eu-west-3:856416204555:image/sagemaker-distribution-gpu
eu-north-1 arn:aws:sagemaker:eu-north-1:175620155138:image/sagemaker-distribution-cpu arn:aws:sagemaker:eu-north-1:175620155138:image/sagemaker-distribution-gpu
eu-south-1 arn:aws:sagemaker:eu-south-1:810671768855:image/sagemaker-distribution-cpu arn:aws:sagemaker:eu-south-1:810671768855:image/sagemaker-distribution-gpu
sa-east-1 arn:aws:sagemaker:sa-east-1:567556641782:image/sagemaker-distribution-cpu arn:aws:sagemaker:sa-east-1:567556641782:image/sagemaker-distribution-gpu
ap-northeast-3 arn:aws:sagemaker:ap-northeast-3:564864627153:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-northeast-3:564864627153:image/sagemaker-distribution-gpu
ap-southeast-3 arn:aws:sagemaker:ap-southeast-3:370607712162:image/sagemaker-distribution-cpu arn:aws:sagemaker:ap-southeast-3:370607712162:image/sagemaker-distribution-gpu
me-south-1 arn:aws:sagemaker:me-south-1:523774347010:image/sagemaker-distribution-cpu arn:aws:sagemaker:me-south-1:523774347010:image/sagemaker-distribution-gpu
me-central-1 arn:aws:sagemaker:me-central-1:358593528301:image/sagemaker-distribution-cpu arn:aws:sagemaker:me-central-1:358593528301:image/sagemaker-distribution-gpu
il-central-1 arn:aws:sagemaker:il-central-1:080319125002:image/sagemaker-distribution-cpu arn:aws:sagemaker:il-central-1:080319125002:image/sagemaker-distribution-gpu
cn-north-1 arn:aws:sagemaker:cn-north-1:674439102856:image/sagemaker-distribution-cpu arn:aws:sagemaker:cn-north-1:674439102856:image/sagemaker-distribution-gpu
cn-northwest-1 arn:aws:sagemaker:cn-northwest-1:651871951035:image/sagemaker-distribution-cpu arn:aws:sagemaker:cn-northwest-1:651871951035:image/sagemaker-distribution-gpu
us-gov-west-1 arn:aws:sagemaker:us-gov-west-1:300992924816:image/sagemaker-distribution-cpu arn:aws:sagemaker:us-gov-west-1:300992924816:image/sagemaker-distribution-gpu
us-gov-east-1 arn:aws:sagemaker:us-gov-east-1:300993876623:image/sagemaker-distribution-cpu arn:aws:sagemaker:us-gov-east-1:300993876623:image/sagemaker-distribution-gpu

如果遇到執行個體限制,請聯絡您的管理員。若要為使用者取得更多儲存空間和運算,系統管理員可以要求增加使用者的 AWS 配額。如需有關請求增加配額的詳細資訊,請參閱 Amazon SageMaker 端點和配額