יצירת מכונה באמצעות מסוף Google Cloud
כאן מוסבר איך ליצור מופע של Gemini Enterprise Agent Platform Workbench ולפתוח את JupyterLab באמצעות המסוף Google Cloud . בדף הזה מוסבר גם איך לעצור, להפעיל, לאפס או למחוק מופע.
לפני שמתחילים
- נכנסים לחשבון Google Cloud . אם אתם משתמשים חדשים ב- Google Cloud, צרו חשבון כדי שתוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Notebooks API.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Notebooks API.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
התפקידים הנדרשים
כדי לקבל את ההרשאות שנדרשות ליצירה ולניהול של מופע של Agent Platform Workbench, צריך לבקש מהאדמין להקצות לכם ב-IAM את התפקיד אדמין של מחברות (roles/notebooks.admin) בפרויקט.
כדי לקרוא הסבר על מתן תפקידים, ראו איך מנהלים את הגישה ברמת הפרויקט, התיקייה והארגון.
יכול להיות שאפשר לקבל את ההרשאות הנדרשות גם באמצעות תפקידים בהתאמה אישית או תפקידים מוגדרים מראש.
יצירת מופע
במסוף Google Cloud , עוברים לדף Instances.
לוחצים על יצירת פריט חדש.
בשדה Name (שם), מזינים
my-instance.לוחצים על יצירה.
כשמסיימים את המשימות שמתוארות במסמך הזה אפשר למחוק את המשאבים שיצרתם כדי להימנע מחיובים נוספים. מידע נוסף זמין בקטע הסרת המשאבים.
פתיחת JupyterLab
אחרי שיוצרים את המופע, Agent Platform Workbench מפעיל אותו באופן אוטומטי. הקישור Open JupyterLab מושבת בהתחלה בזמן שהמופע מוקצה. ממתינים עד שהסטטוס של המופע יהיה פעיל.
כשהמכונה מוכנה לשימוש, לוחצים על Open JupyterLab לצד שם המכונה.
מופע של Agent Platform Workbench ייפתח ב-JupyterLab.
פתיחת קובץ notebook חדש
ב-JupyterLab, בוחרים באפשרות File > New > Notebook (קובץ > חדש > מחברת).
בתיבת הדו-שיח Select kernel, בוחרים באפשרות Python 3 ואז לוחצים על Select.
קובץ ה-notebook החדש ייפתח.
הפסקת המכונה
נכנסים לדף Instances במסוף Google Cloud .
בוחרים את המופע שרוצים לעצור.
לוחצים על הפסקה.
הפעלת המופע
נכנסים לדף Instances במסוף Google Cloud .
בוחרים את המופע שרוצים להפעיל.
לוחצים על התחלה.
איפוס המכונה
איפוס של מכונה מוחק בכוח את תוכן הזיכרון של המכונה ומחזיר אותה למצב ההתחלתי. מידע נוסף על איפוס מופע זמין במאמר פעולת איפוס.
נכנסים לדף Instances במסוף Google Cloud .
בוחרים את המופע שרוצים לאפס.
לוחצים על איפוס ואז על איפוס כדי לאשר.
הסרת המשאבים
כדי לא לצבור חיובים לחשבון Google Cloud על המשאבים שבהם השתמשתם בדף הזה, פועלים לפי השלבים הבאים:
אם יצרתם פרויקט חדש כדי ללמוד על מופעים של Agent Platform Workbench ואתם כבר לא צריכים את הפרויקט, אתם יכולים למחוק אותו.
אם השתמשתם בפרויקט קיים Google Cloud , אתם צריכים למחוק את המשאבים שיצרתם כדי לא לצבור חיובים בחשבון:
נכנסים לדף Instances במסוף Google Cloud .
בוחרים את השורה שמכילה את המופע שרוצים למחוק.
לוחצים על מחיקה. (בהתאם לגודל החלון, יכול להיות שהלחצן מחיקה נמצא בתפריט האפשרויות ).
כדי לאשר, לוחצים על אישור.
איפוס ואז על איפוס כדי לאשר.