Model selection

From awslabs/agent-plugins · View interactive version

Model selection is an AI agent skill from the GitHub repository awslabs/agent-plugins. Selects a base model for the user's use case by querying SageMaker Hub. Use when the user asks which model to use, wants to select or change their base model, mentions a model name or family (e.g., "Llama", "Mistral", "Nova"), or wants to evaluate a base model — always activate even for known model

How to use this skill

Skill file

Model Selection

Guides the user through selecting a base model based on their use case.

When to Use

Prerequisites

Workflow

Step 1: Check Region

Run:

python -c "import boto3; print(boto3.session.Session().region_name)"

Step 2: Discover Hub

  1. List all available SageMaker Hubs in the user's region by calling the SageMaker ListHubs API using the aws___call_aws tool.
  2. From the results, filter out any hub whose HubDescription contains "AI Registry" — these do not contain JumpStart models.
  3. The remaining hubs are eligible (e.g., SageMakerPublicHub and any private hubs).
  4. If exactly one eligible hub exists, use it automatically — do not ask the user.
  5. If multiple eligible hubs exist, present them to the user and ask which one to use. Example:

```

I found the following model hubs:

Which hub would you like to use?

```

  1. Store the selected hub name for use in subsequent steps.

Step 3: Select Base Model

First, retrieve all available SageMaker Hub model names by running: python model-selection/scripts/get_model_names.py <hub-name>.

Present all available models to the user with their licenses before making any recommendations. Cross-reference the model list with references/model-licenses.md and display each as <model name> - [<license>](<url>). For example: "Qwen3-4B - Apache 2.0"

If you already know the model the user wants to use (from conversation context or planning files), confirm that it's in the list, display its license, and move on. Otherwise, help the user pick a model following the instructions in references/model-selection.md.

Important: Make sure to remember this list of available models when helping with model selection. Don't recommend a model that's not available to the user.

Step 4: Confirm Selection

Present a summary to the user:

Here's what we've selected:
- Base model: [model name]

Ask if they'd like to proceed with this model.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.