agent-platform-tuning
它能做什么
这项技能引导 AI 智能体使用 Google Cloud 的微调服务来微调 AI 模型。适合希望让模型用自己的示例进一步训练的人。
适用场景
- ✓当你想在 Google Cloud 上微调开源模型或 Gemini 模型时。
- ✓当你需要为 Agent Platform 上的模型微调任务准备训练数据时。
- ✓当你想从设置到完成模型全程监控微调任务时。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-tuning/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我用我自己的示例,在 Google Cloud 上微调一个开源模型。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先询问你的 Google Cloud 项目和区域,然后逐步指导你完成数据准备、任务设置和监控。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agent Platform Model Tuning
Overview
This skill provides procedural knowledge for fine-tuning Large Language Models (both Open Models and Gemini Models) using Agent Platform's tuning service. It covers the entire lifecycle from environment setup and data preparation to job configuration, monitoring, and deployment.
Workflow Decision Tree
Project & Region Verification Check: Has the user provided the Google Cloud project and region?
- No → STOP tool execution immediately. Do NOT run verification
commands (
gcloud services list,gcloud projects get-iam-policy), do NOT create resources, and do NOT begin dataset preparation. Prompt the user to specify or confirm the project and region (e.g. "Could you please specify which Google Cloud project and region you would like to use?").- If the user's inquiry is solely to check or verify environment readiness (APIs, IAM, service agents), ask ONLY for the project and region. Do NOT ask for the model category.
- If the user is requesting a tuning workflow and also omitted whether they want to tune an Open Model or a Gemini Model, you may ask both questions together.
- Yes → Proceed.
- No → STOP tool execution immediately. Do NOT run verification
commands (
Model Category Identification: Has the user explicitly stated whether they want to tune an Open Model or a Gemini Model?
- No →
- EXCEPTION for Environment Verification Inquiries: If the user is only asking to check or verify that the environment, APIs, IAM permissions, or service agents are ready for tuning, do NOT ask for the model category. Verify the environment once the project and region are known and confirm readiness.
- Otherwise, STOP tool execution. Ask the user if they want to tune an Open Model or a Gemini Model. General Setup and Prerequisite Inquiries (e.g., "What environment setup is needed?"): If the user asks what environment setup, prerequisites, APIs, or permissions are needed to start fine-tuning, and has not yet chosen a model category:
- Describe the setup requirements (APIs, IAM permissions/service agents, and Python SDKs).
- Regarding Cloud Storage: state that an existing Cloud Storage bucket
is needed for datasets and artifacts (e.g.,
gs://<existing-bucket>). CRITICAL: Do NOT instruct the user to create a bucket, do NOT output agcloud storage buckets createcommand in setup instructions, and do NOT assume a non-existent bucket exists (users may not have bucket creation permissions and will provide their own existing bucket). - You MUST explicitly conclude your response by asking whether they want to tune an Open Model or a Gemini Model. Never provide setup instructions without asking for the model category choice. (Note: if they ask to actively check or verify a project whose ID or region is missing, ask for the project and region first without running tool calls).
- If the user provides a specific tuning purpose, you should recommend
three models: one Open Model, one Gemini Model, and a third generally
recommended choice. Briefly list the pros and cons of each (e.g., Gemini
models might be more expensive, etc.). CRITICAL: You must read
references/models.mdduring this step and only recommend models explicitly listed in that catalog. Never recommend uncataloged or unsupported models likegoogle/gemma-2-9b-it,gemma-2, orMistral— only recommend supported models such as Gemma 3 (google/gemma3@gemma-3-12b-it), Qwen 3 (qwen/qwen3@qwen3-8b), or Llama 3.1 (meta/llama3_1@llama-3.1-8b). For Gemini models, ONLY recommendgemini-2.5-flash(recommended for general/coding/chat) orgemini-2.5-pro. Never recommendgemini-1.5-flash-002,gemini-1.5-pro-002, orgemini-1.5-flash, which are deprecated and unsupported by the tuning service. If the user names a model that is not in the catalog, follow the fallback rule in that catalog. Do not proceed with model configuration until the category is confirmed. - Yes → Procee
- No →
常见问题
使用它需要 Google Cloud 项目吗?
需要。在运行任何命令之前,本技能会先询问你的项目和区域。
它能微调开源模型和 Gemini 模型吗?
可以。两者都支持,它会询问你想微调哪一种。
它会替我部署微调后的模型吗?
不会。部署和端点设置由单独的技能负责。
详情
作者的原始描述
Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use `agent-platform-deploy`), or managing serving endpoints (use `agent-platform-endpoint-management`).
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10211
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。