יצירת מכונה באמצעות מסוף Google Cloud

כאן מוסבר איך ליצור מופע של Gemini Enterprise Agent Platform Workbench ולפתוח את JupyterLab באמצעות המסוף Google Cloud . בדף הזה מוסבר גם איך לעצור, להפעיל, לאפס או למחוק מופע.

לפני שמתחילים

  1. נכנסים לחשבון Google Cloud . אם אתם משתמשים חדשים ב- Google Cloud, צרו חשבון כדי שתוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.
  2. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the Notebooks API.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. 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.

    Enable the API

  5. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  6. Verify that billing is enabled for your Google Cloud project.

  7. Enable the Notebooks API.

    Roles required to enable APIs

    To enable APIs, you need the serviceusage.services.enable permission. 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.

    Enable the API

התפקידים הנדרשים

כדי לקבל את ההרשאות שנדרשות ליצירה ולניהול של מופע של Agent Platform Workbench, צריך לבקש מהאדמין להקצות לכם ב-IAM את התפקיד אדמין של מחברות (roles/notebooks.admin) בפרויקט. כדי לקרוא הסבר על מתן תפקידים, ראו איך מנהלים את הגישה ברמת הפרויקט, התיקייה והארגון.

יכול להיות שאפשר לקבל את ההרשאות הנדרשות גם באמצעות תפקידים בהתאמה אישית או תפקידים מוגדרים מראש.

יצירת מופע

  1. במסוף Google Cloud , עוברים לדף Instances.

    כניסה לדף Instances

  2. לוחצים על  יצירת פריט חדש.

  3. בשדה Name (שם), מזינים my-instance.

  4. לוחצים על יצירה.

כשמסיימים את המשימות שמתוארות במסמך הזה אפשר למחוק את המשאבים שיצרתם כדי להימנע מחיובים נוספים. מידע נוסף זמין בקטע הסרת המשאבים.

פתיחת JupyterLab

אחרי שיוצרים את המופע, Agent Platform Workbench מפעיל אותו באופן אוטומטי. הקישור Open JupyterLab מושבת בהתחלה בזמן שהמופע מוקצה. ממתינים עד שהסטטוס של המופע יהיה פעיל.

כשהמכונה מוכנה לשימוש, לוחצים על Open JupyterLab לצד שם המכונה.

מופע של Agent Platform Workbench ייפתח ב-JupyterLab.

פתיחת קובץ notebook חדש

  1. ב-JupyterLab, בוחרים באפשרות File > New > Notebook (קובץ > חדש > מחברת).

  2. בתיבת הדו-שיח Select kernel, בוחרים באפשרות Python 3 ואז לוחצים על Select.

    קובץ ה-notebook החדש ייפתח.

הפסקת המכונה

  1. נכנסים לדף Instances במסוף Google Cloud .

    כניסה לדף Instances

  2. בוחרים את המופע שרוצים לעצור.

  3. לוחצים על  הפסקה.

הפעלת המופע

  1. נכנסים לדף Instances במסוף Google Cloud .

    כניסה לדף Instances

  2. בוחרים את המופע שרוצים להפעיל.

  3. לוחצים על  התחלה.

איפוס המכונה

איפוס של מכונה מוחק בכוח את תוכן הזיכרון של המכונה ומחזיר אותה למצב ההתחלתי. מידע נוסף על איפוס מופע זמין במאמר פעולת איפוס.

  1. נכנסים לדף Instances במסוף Google Cloud .

    כניסה לדף Instances

  2. בוחרים את המופע שרוצים לאפס.

  3. לוחצים על איפוס ואז על איפוס כדי לאשר.

הסרת המשאבים

כדי לא לצבור חיובים לחשבון Google Cloud על המשאבים שבהם השתמשתם בדף הזה, פועלים לפי השלבים הבאים:

אם יצרתם פרויקט חדש כדי ללמוד על מופעים של Agent Platform Workbench ואתם כבר לא צריכים את הפרויקט, אתם יכולים למחוק אותו.

אם השתמשתם בפרויקט קיים Google Cloud , אתם צריכים למחוק את המשאבים שיצרתם כדי לא לצבור חיובים בחשבון:

  1. נכנסים לדף Instances במסוף Google Cloud .

    כניסה לדף Instances

  2. בוחרים את השורה שמכילה את המופע שרוצים למחוק.

  3. לוחצים על  מחיקה. (בהתאם לגודל החלון, יכול להיות שהלחצן מחיקה נמצא בתפריט האפשרויות ).

  4. כדי לאשר, לוחצים על אישור.

המאמרים הבאים

  1. מומלץ לקרוא את מבוא למופעים של Agent Platform Workbench.
  2. כדי להשתמש במחברת כדי להתחיל להשתמש ב-Gemini Enterprise Agent Platform ובשירותים אחרים, אפשר לעיין במדריכים בנושא מחברות של Agent Platform. Google Cloud