karma list
The karma list
command group provides discovery and listing functionality for all KARMA resources.
karma list [COMMAND] [OPTIONS]
Subcommands
Section titled “Subcommands”karma list models
- List all available modelskarma list datasets
- List all available datasetskarma list metrics
- List all available metricskarma list all
- List all resources (models, datasets, and metrics)
karma list models
Section titled “karma list models”List all available models in the registry.
karma list models [OPTIONS]
Options
Section titled “Options”Option | Type | Default | Description |
---|---|---|---|
--format | table|simple|csv | table | Output format |
Examples
Section titled “Examples”# Table format (default)karma list models
# Simple text formatkarma list models --format simple
# CSV formatkarma list models --format csv
Output
Section titled “Output”The table format shows:
- Model Name
- Status (Available/Unavailable)
- Modality (Text, Audio, Vision, etc.)
karma list datasets
Section titled “karma list datasets”List all available datasets in the registry with optional filtering.
karma list datasets [OPTIONS]
Options
Section titled “Options”Option | Type | Default | Description |
---|---|---|---|
--task-type TEXT | TEXT | - | Filter by task type (e.g., ‘mcqa’, ‘vqa’, ‘translation’) |
--metric TEXT | TEXT | - | Filter by supported metric (e.g., ‘accuracy’, ‘bleu’) |
--format | table|simple|csv | table | Output format |
--show-args | FLAG | false | Show detailed argument information |
Examples
Section titled “Examples”# List all datasetskarma list datasets
# Filter by task typekarma list datasets --task-type mcqa
# Filter by metrickarma list datasets --metric bleu
# Show detailed argument informationkarma list datasets --show-args
# Multiple filterskarma list datasets --task-type translation --metric bleu
# CSV outputkarma list datasets --format csv
Output
Section titled “Output”The table format shows:
- Dataset Name
- Task Type
- Metrics
- Required Args
- Processors
- Split
- Commit Hash
With --show-args
, additional details are shown:
- Required arguments with examples
- Optional arguments with defaults
- Processor information
- Usage examples
karma list metrics
Section titled “karma list metrics”List all available metrics in the registry.
karma list metrics [OPTIONS]
Options
Section titled “Options”Option | Type | Default | Description |
---|---|---|---|
--format | table|simple|csv | table | Output format |
Examples
Section titled “Examples”# Table format (default)karma list metrics
# Simple text formatkarma list metrics --format simple
# CSV formatkarma list metrics --format csv
Output
Section titled “Output”Shows all registered metrics including:
- KARMA native metrics
- HuggingFace Evaluate metrics (as fallback)
karma list all
Section titled “karma list all”List both models, datasets, and metrics in one command.
karma list all [OPTIONS]
Options
Section titled “Options”Option | Type | Default | Description |
---|---|---|---|
--format | table|simple | table | Output format (CSV not supported) |
Examples
Section titled “Examples”# Show all resourceskarma list all
# Simple formatkarma list all --format simple
Output
Section titled “Output”Displays:
- MODELS section with all available models
- DATASETS section with all available datasets
- METRICS section with all available metrics
Common Usage Patterns
Section titled “Common Usage Patterns”Discovery Workflow
Section titled “Discovery Workflow”# 1. See what models are availablekarma list models
# 2. See what datasets work with medical taskskarma list datasets --task-type mcqa
# 3. Check what metrics are availablekarma list metrics
# 4. Get detailed info about a specific datasetkarma info dataset openlifescienceai/pubmedqa
Integration Workflow
Section titled “Integration Workflow”# Export for scriptskarma list models --format csv > models.csvkarma list datasets --format csv > datasets.csv
# Check compatibilitykarma list datasets --metric exact_match
Development Workflow
Section titled “Development Workflow”# Quick overviewkarma list all
# Detailed dataset analysiskarma list datasets --show-args --format table
Output Formats
Section titled “Output Formats”Table Format
Section titled “Table Format”- Rich formatted tables with colors and styling
- Best for interactive use
- Default format
Simple Format
Section titled “Simple Format”- Plain text, one item per line
- Good for scripting and piping
- Minimal formatting
CSV Format
Section titled “CSV Format”- Comma-separated values
- Best for data processing and exports
- Machine-readable format
See Also
Section titled “See Also”- Info Commands - Get detailed information about specific resources
- CLI Basics - General CLI usage
- Supported Resources - Complete resource listing