[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AS0T2FF3R3YHFQZAF4X3F":3,"skill-same:01M69AS0T2FF3R3YHFQZAF4X3F":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":17,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M69AS0T2FF3R3YHFQZAF4X3F","osmo-lerobot-training","LeRobot模仿学习训练管理","Submit, monitor, analyze, and evaluate LeRobot imitation learning training jobs on OSMO with Azure ML MLflow integration and inference evaluation - Brought to you by microsoft\u002Fphysical-ai-toolchain","在 OSMO 上提交、监控、分析和评估 LeRobot 模仿学习训练任务，集成 Azure ML MLflow 并进行推理评估 —— 由 microsoft\u002Fphysical-ai-toolchain 提供。","microsoft\u002Fphysical-ai-toolchain","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69ARCAV4WR03MSZSQPHZ2S8",138,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fosmo-lerobot-training\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0NK93YXC7GERCH372ZVDF","AI 模型训练与微调","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,10,48,49],"training","osmo lerobot training","Evaluation","jobs","physical","integration","evaluate","with","monitor","learning","toolchain","mlflow","analyze","you","submit","Training Jobs","inference","ml","azure","2026-11-10 10:12:30",false,"---\nname: osmo-lerobot-training\ndescription: 'Submit, monitor, analyze, and evaluate LeRobot imitation learning training jobs on OSMO with Azure ML MLflow integration and inference evaluation - Brought to you by microsoft\u002Fphysical-ai-toolchain'\n---\n\n# OSMO LeRobot Training\n\nSubmit, monitor, analyze, and evaluate LeRobot behavioral cloning training workflows on the OSMO platform. Covers the full lifecycle: job submission, log streaming, Azure ML metric retrieval, training summary generation, and post-training inference evaluation.\n\nRead the skill file `.github\u002Fskills\u002Fosmo-lerobot-training\u002FSKILL.md` for parameter defaults, GPU configuration, and training duration estimates. Read [references\u002FDEFAULTS.md](references\u002FDEFAULTS.md) for known datasets, GPU profiles, and Azure environment auto-resolution.\n\n## Prerequisites\n\n| Requirement                               | Purpose                                 |\n|-------------------------------------------|-----------------------------------------|\n| `osmo` CLI                                | Workflow submission and monitoring      |\n| `az` CLI                                  | Azure authentication and model registry |\n| `terraform`                               | Infrastructure output resolution        |\n| `zip`                                     | Training payload packaging              |\n| Python 3.12+ with `azure-ai-ml`, `mlflow` | Metric retrieval from Azure ML          |\n\nAuthentication must be configured before any OSMO or Azure ML operations:\n\n```bash\naz login\nosmo login \u003Cservice-url> --method dev --username guest\n```\n\n## Quick Start\n\n### Train from Azure Blob Storage (typical production flow)\n\n```bash\nscripts\u002Fsubmit-osmo-lerobot-training.sh \\\n  -d my-robot-dataset \\\n  --from-blob \\\n  --storage-account mystorageaccount \\\n  --blob-prefix my-robot-dataset \\\n  --no-val-split \\\n  --steps 100000 \\\n  --batch-size 32 \\\n  --learning-rate 1e-4 \\\n  --save-freq 10000 \\\n  -j my-robot-act-train \\\n  --experiment-name my-robot-training \\\n  -r my-robot-act-model\n```\n\n### Train from HuggingFace Hub\n\n```bash\nscripts\u002Fsubmit-osmo-lerobot-training.sh -d lerobot\u002Faloha_sim_insertion_human\n```\n\n### Run Continuous Eval During Training (preferred)\n\nStart the background poller immediately after submitting training. It watches AzureML for new checkpoint versions and submits an inference job per version automatically, stopping when training reaches a terminal state.\n\n```bash\n# Launch in the background — runs until training completes\nnohup scripts\u002Fpoll-and-eval-checkpoints.sh \\\n  --model-name my-robot-act-model \\\n  --training-workflow-id lerobot-training-32 \\\n  --blob-prefix my-robot-dataset \\\n  --job-prefix my-robot-eval \\\n  --experiment-name my-robot-inference \\\n  --poll-interval 60 \\\n  --max-concurrent 2 \\\n  > \u002Ftmp\u002Fmy-robot-eval.log 2>&1 & disown\n\n# Monitor the poller\ntail -f \u002Ftmp\u002Fmy-robot-eval.log\n```\n\nThe poller caps concurrent inference workflows at `--max-concurrent` (default 2) to avoid cluster saturation. Submitted versions are tracked in `\u002Ftmp\u002F\u003Cmodel-name>-submitted-versions.txt`.\n\n### Run a Single Inference Job\n\n```bash\n# OSMO inference (GPU, evaluates against the same dataset)\nscripts\u002Fsubmit-osmo-lerobot-inference.sh \\\n  --from-aml-model \\\n  --model-name my-robot-act-model \\\n  --model-version 3 \\\n  --from-blob-dataset \\\n  --storage-account mystorageaccount \\\n  --blob-prefix my-robot-dataset \\\n  --mlflow-enable \\\n  --eval-episodes 10 \\\n  -j my-robot-eval \\\n  --experiment-name my-robot-inference\n\n# Local inference (CPU\u002FMPS, for quick validation)\npython scripts\u002Frun-local-lerobot-inference.py \\\n  --model-name my-robot-act-model \\\n  --model-version 3 \\\n  --dataset-dir \u002Fpath\u002Fto\u002Flocal\u002Fdataset \\\n  --episodes 5 \\\n  --output-dir outputs\u002Flocal-eval \\\n  --device cpu\n```\n\n## Post-Submission Browser Monitoring\n\nAfter every successful training or inference submission, open the OSMO workflow page in VS Code's SimpleBrowser so the user can track progress and access logs directly.\n\n**Steps:**\n\n1. Capture the workflow ID from the submission output (the line `Workflow ID - \u003Cid>`).\n2. Build the URL from the service URL used for `osmo login`: `\u003Cservice-url>\u002Fworkflows\u002F\u003Cworkflow-id>`. Don't rely on the `Workflow Overview` line, which can show an in-cluster address that a browser can't reach.\n3. Open it in the integrated browser with `open_browser_page` (VS Code SimpleBrowser). This tool is editor-provided and may be unavailable, for example under the OSMO Training Manager's `tools` list or outside VS Code. When it is unavailable, open the URL with the Playwright `browser_navigate` action, or print the URL for the user to open.\n4. Tell the user that the **Logs** tab on that page streams live output per task (e.g., `lerobot-train`, `lerobot-infer`).\n\n**Example after a training submission:**\n\n```text\nWorkflow ID - lerobot-training-31\nWorkflow Overview - \u003Cservice-url>\u002Fworkflows\u002Flerobot-training-31\n```\n\nOpen: `\u003Cservice-url>\u002Fworkflows\u002Flerobot-training-31`\n\n**Example after an inference submission:**\n\n```text\nWorkflow ID - lerobot-inference-20\nWorkflow Overview - \u003Cservice-url>\u002Fworkflows\u002Flerobot-inference-20\n```\n\nOpen: `\u003Cservice-url>\u002Fworkflows\u002Flerobot-inference-20`\n\n> The page has a **Logs** tab with per-task log streams. For training, select the `lerobot-train` task. For inference, select the `lerobot-infer` task. Use the OSMO CLI (`osmo workflow logs \u003Cid> -t \u003Ctask> -n 100`) as a fallback when the browser is not reachable.\n\n## Azure ML Portal Monitoring (Playwright)\n\nAfter submitting a training job, and whenever the background eval poller reports a new inference job, open the Azure ML portal with Playwright to view live metrics and trajectory plots. The steps use the Playwright MCP actions `browser_navigate`, `browser_snapshot`, `browser_click`, and `browser_take_screenshot`. Each harness exposes them under its own identifiers, so use the host's tool search to find the navigate, snapshot, click, and screenshot tools before calling them.\n\nWhen no browser tools are available, report the portal URL and use `osmo workflow logs \u003Cid> -t \u003Ctask> -n 100` for progress.\n\n### Training Metrics — Open Immediately After Submission\n\nAfter the training job is submitted, navigate to the training experiment page and open the **Metrics** tab:\n\n1. Construct the experiment URL from Azure environment variables in `scripts\u002F.env`:\n\n   ```text\n   https:\u002F\u002Fml.azure.com\u002Fexperiments\u002F{experiment_name}?wsid=\u002Fsubscriptions\u002F{AZURE_SUBSCRIPTION_ID}\u002FresourceGroups\u002F{AZURE_RESOURCE_GROUP}\u002Fproviders\u002FMicrosoft.MachineLearningServices\u002Fworkspaces\u002F{AZUREML_WORKSPACE_NAME}\n   ```\n\n2. Navigate (`browser_navigate`) to that URL.\n3. Take a snapshot (`browser_snapshot`) to confirm the page loaded and identify the latest run row in the table.\n4. Click the first (most recent) run link.\n5. On the run detail page, take a snapshot (`browser_snapshot`) to locate the **Metrics** tab.\n6. Click **Metrics**.\n7. Take a screenshot (`browser_take_screenshot`) and show the live training curves to the user.\n\nKey metrics to surface: `train\u002Floss`, `train\u002Flearning_rate` (confirm `1e-04`, not `1e-05`), `train\u002Fgrad_norm`, `gpu_percent`.\n\nRefresh by navigating (`browser_navigate`) to the same URL again at any time.\n\n> See [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for exact click paths, tab selectors, and screenshot guidance.\n\n### Inference \u002F Eval Plots — Open When Poller Submits a Job\n\nWhile the background eval poller is running, monitor the poller log and navigate to Azure ML to view trajectory plots as each inference job completes:\n\n1. Tail the poller log to detect a new inference submission:\n\n   ```bash\n   tail -n 30 \u002Ftmp\u002F\u003Cmodel-name>-eval.log | grep -E \"Submitting|Workflow ID\"\n   ```\n\n2. Construct the inference experiment URL using the `--experiment-name` passed to the poller:\n\n   ```text\n   https:\u002F\u002Fml.azure.com\u002Fexperiments\u002F{inference_experiment_name}?wsid=\u002Fsubscriptions\u002F{AZURE_SUBSCRIPTION_ID}\u002FresourceGroups\u002F{AZURE_RESOURCE_GROUP}\u002Fproviders\u002FMicrosoft.MachineLearningServices\u002Fworkspaces\u002F{AZUREML_WORKSPACE_NAME}\n   ```\n\n3. Navigate (`browser_navigate`) to that URL.\n4. Take a snapshot (`browser_snapshot`) to identify the latest run row (most recently submitted checkpoint eval).\n5. Click that run.\n6. On the run detail page, click the **Images** tab.\n7. Take a screenshot (`browser_take_screenshot`) and show the trajectory plots to the user.\n\n> The **Images** tab contains per-episode trajectory plots logged by the inference job (`episode_NNN_trajectory.png` and `eval_summary.png`). They appear after the OSMO inference workflow reaches `completed` status. If images are not yet present, check `osmo workflow query \u003Cinference-workflow-id>` and wait for `completed`.\n\n## Parameters Reference\n\n### Training Submission Parameters\n\n| Parameter           | Flag                | Default                | Description                                    |\n|---------------------|---------------------|------------------------|------------------------------------------------|\n| Dataset repo ID     | `-d`, `--dataset`   | (required)             | HuggingFace dataset or blob dataset name       |\n| Policy type         | `-p`, `--policy`    | `act`                  | `act` or `diffusion`                           |\n| Job name            | `-j`, `--job-name`  | `lerobot-act-training` | Unique job identifier                          |\n| Training steps      | `--steps`           | `100000`               | Total training iterations                      |\n| Batch size          | `--batch-size`      | `32`                   | Training batch size (64 for 48GB GPUs)         |\n| Learning rate       | `--learning-rate`   | `1e-4`                 | Maps to `--policy.optimizer_lr` internally     |\n| Save frequency      | `--save-freq`       | `5000`                 | Checkpoint interval (model registered at each) |\n| Validation split    | `--val-split`       | `0.1`                  | Ratio for train\u002Fval split                      |\n| No val split        | `--no-val-split`    | —                      | Disable validation splitting                   |\n| Register checkpoint | `-r`                | (none)                 | Model name for Azure ML registration           |\n| From blob           | `--from-blob`       | `false`                | Use Azure Blob Storage as data source          |\n| Storage account     | `--storage-account` | (terraform)            | Azure Storage account name                     |\n| Blob prefix         | `--blob-prefix`     | (none)                 | Blob path prefix for dataset                   |\n\n### Inference Submission Parameters\n\n| Parameter         | Flag                      | Default    | Description                                 |\n|-------------------|---------------------------|------------|---------------------------------------------|\n| Policy repo ID    | `--policy-repo-id`        | (required) | HuggingFace repo, or use `--from-aml-model` |\n| From AML model    | `--from-aml-model`        | `false`    | Load from AzureML model registry            |\n| Model name        | `--model-name`            | (none)     | AzureML model registry name                 |\n| Model version     | `--model-version`         | (none)     | AzureML model version                       |\n| Dataset repo ID   | `-d`, `--dataset-repo-id` | (none)     | HuggingFace dataset                         |\n| From blob dataset | `--from-blob-dataset`     | `false`    | Download dataset from Azure Blob            |\n| Eval episodes     | `--eval-episodes`         | `10`       | Number of episodes to evaluate              |\n| MLflow enable     | `--mlflow-enable`         | `false`    | Log trajectory plots to AzureML             |\n\n### Continuous Evaluation Parameters (`poll-and-eval-checkpoints.sh`)\n\n| Parameter         | Flag                     | Default           | Description                                 |\n|-------------------|--------------------------|-------------------|---------------------------------------------|\n| Model name        | `--model-name`           | (required)        | AzureML model registry name to watch        |\n| Training workflow | `--training-workflow-id` | (required)        | OSMO workflow ID of the training job        |\n| Blob prefix       | `--blob-prefix`          | (required)        | Blob path prefix for the evaluation dataset |\n| Storage account   | `--storage-account`      | (from .env)       | Azure Storage account                       |\n| Eval episodes     | `--eval-episodes`        | `10`              | Episodes per inference run                  |\n| Job prefix        | `--job-prefix`           | (from model name) | Prefix for inference job names              |\n| Experiment name   | `--experiment-name`      | (from model name) | MLflow experiment for inference runs        |\n| Poll interval     | `--poll-interval`        | `60`              | Seconds between AzureML registry polls      |\n| Max concurrent    | `--max-concurrent`       | `2`               | Max simultaneous inference workflows        |\n\n### GPU Configuration Guidelines\n\n| GPU          | VRAM             | Recommended Batch Size | Notes                                                               |\n|--------------|------------------|------------------------|---------------------------------------------------------------------|\n| A10          | 24GB             | 32                     | Standard configuration                                              |\n| RTX PRO 6000 | 96GB (whole GPU) | 64                     | Requires `mig.strategy: single`; fractional sizes have 48GB or 24GB |\n| H100         | 80GB             | 128                    | Standard MIG disabled                                               |\n\n### Azure ML Context\n\nResolved from CLI flags > environment variables > Terraform outputs:\n\n| Variable        | Flag                      | Env Var                  |\n|-----------------|---------------------------|--------------------------|\n| Subscription ID | `--azure-subscription-id` | `AZURE_SUBSCRIPTION_ID`  |\n| Resource group  | `--azure-resource-group`  | `AZURE_RESOURCE_GROUP`   |\n| Workspace name  | `--azure-workspace-name`  | `AZUREML_WORKSPACE_NAME` |\n\n## Training Completion Estimation\n\nEstimate training duration based on dataset and configuration:\n\n| Dataset Size              | Steps   | GPU          | Approximate Duration |\n|---------------------------|---------|--------------|----------------------|\n| 20K frames \u002F 64 episodes  | 10,000  | A10          | ~30 minutes          |\n| 20K frames \u002F 64 episodes  | 100,000 | A10          | ~5 hours             |\n| 80K frames \u002F 174 episodes | 100,000 | A10          | ~8 hours             |\n| 20K frames \u002F 64 episodes  | 100,000 | RTX PRO 6000 | ~3 hours             |\n\nCheckpoints are registered to AzureML at every `--save-freq` interval. Jobs may be evicted on spot GPU instances — checkpoints already registered remain available for inference even if the job is interrupted.\n\n## OSMO CLI Reference\n\nSee [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for full CLI and SDK documentation.\n\n```bash\nosmo workflow query \u003Cworkflow-id>\nosmo workflow logs \u003Cworkflow-id> -n 100\nosmo workflow logs \u003Cworkflow-id> --error\nosmo workflow list\nosmo workflow cancel \u003Cworkflow-id>\n```\n\n### Checkpoint Poller Commands\n\n```bash\n# Start continuous eval loop in background\nnohup scripts\u002Fpoll-and-eval-checkpoints.sh \\\n  --model-name \u003Cmodel-name> \\\n  --training-workflow-id \u003Cworkflow-id> \\\n  --blob-prefix \u003Cdataset-blob-prefix> \\\n  > \u002Ftmp\u002F\u003Cmodel-name>-eval.log 2>&1 & disown\n\n# Monitor poller\ntail -f \u002Ftmp\u002F\u003Cmodel-name>-eval.log\n\n# Check which versions have been submitted\ncat \u002Ftmp\u002F\u003Cmodel-name>-submitted-versions.txt\n\n# Stop the poller early\npkill -f poll-and-eval-checkpoints\n```\n\n## Key Metrics Logged\n\n| Metric                | Description                                      |\n|-----------------------|--------------------------------------------------|\n| `train\u002Floss`          | Training loss per step                           |\n| `train\u002Fgrad_norm`     | Gradient norm                                    |\n| `train\u002Flearning_rate` | Current learning rate (verify `1e-4` not `1e-5`) |\n| `val\u002Floss`            | Validation loss (when val split enabled)         |\n| `gpu_percent`         | GPU utilization (when system metrics enabled)    |\n\n## Troubleshooting\n\n| Symptom                                           | Likely Cause                                          | Resolution                                                                                                                                                                           |\n|---------------------------------------------------|-------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `lr: 1e-05` in logs                               | `LEARNING_RATE` not mapped                            | Verify `train.py` maps to `--policy.optimizer_lr`                                                                                                                                    |\n| `KeyError: chunk_index`                           | v3.0 dataset not converted                            | Verify `download_dataset.py` has `patch_info_paths()`                                                                                                                                |\n| `codebase_version` warning                        | Dataset still marked v3.0                             | Verify `patch_info_paths()` sets `codebase_version = \"v2.1\"`                                                                                                                         |\n| `CUDA_ERROR_NO_DEVICE`                            | MIG strategy misconfigured                            | Set `mig.strategy: single` for vGPU nodes                                                                                                                                            |\n| VM eviction mid-training                          | Spot GPU preempted                                    | Checkpoints already registered to AML survive eviction                                                                                                                               |\n| `ImportError: patch_info_paths`                   | Payload missing training fixes                        | Ensure `training\u002Fil\u002F` includes `download_dataset.py` with `patch_info_paths`                                                                                                         |\n| OOM during training                               | Batch size too large                                  | Reduce `--batch-size` (32 for 24GB, 64 for 48GB)                                                                                                                                     |\n| Poller exits immediately                          | Training workflow already terminal                    | Check `osmo workflow query \u003Cid>`; rerun poller or submit inference manually                                                                                                          |\n| Poller stalls at max-concurrent                   | Inference jobs not finishing                          | Check inference workflow status; increase `--max-concurrent` or cancel stuck jobs                                                                                                    |\n| Many pending inference jobs after stopping poller | Poller submitted jobs faster than cluster could drain | `osmo workflow list` only returns the last 12 — iterate over expected ID range to cancel all: `for id in $(seq \u003Cfirst> \u003Clast>); do osmo workflow cancel lerobot-inference-$id; done` |\n| `info: command not found` in poller               | `common.sh` not sourced                               | Verify `scripts\u002Flib\u002Fcommon.sh` exists and is readable                                                                                                                                |\n\nSee [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for detailed debugging commands.\n\n> Brought to you by microsoft\u002Fphysical-ai-toolchain\n","# OSMO LeRobot Training\n\nSubmit, monitor, analyze, and evaluate LeRobot behavioral cloning training workflows on the OSMO platform. Covers the full lifecycle: job submission, log streaming, Azure ML metric retrieval, training summary generation, and post-training inference evaluation.\n\nRead the skill file `.github\u002Fskills\u002Fosmo-lerobot-training\u002FSKILL.md` for parameter defaults, GPU configuration, and training duration estimates. Read [references\u002FDEFAULTS.md](references\u002FDEFAULTS.md) for known datasets, GPU profiles, and Azure environment auto-resolution.\n\n## Prerequisites\n\n| Requirement                               | Purpose                                 |\n|-------------------------------------------|-----------------------------------------|\n| `osmo` CLI                                | Workflow submission and monitoring      |\n| `az` CLI                                  | Azure authentication and model registry |\n| `terraform`                               | Infrastructure output resolution        |\n| `zip`                                     | Training payload packaging              |\n| Python 3.12+ with `azure-ai-ml`, `mlflow` | Metric retrieval from Azure ML          |\n\nAuthentication must be configured before any OSMO or Azure ML operations:\n\n```bash\naz login\nosmo login \u003Cservice-url> --method dev --username guest\n```\n\n## Quick Start\n\n### Train from Azure Blob Storage (typical production flow)\n\n```bash\nscripts\u002Fsubmit-osmo-lerobot-training.sh \\\n  -d my-robot-dataset \\\n  --from-blob \\\n  --storage-account mystorageaccount \\\n  --blob-prefix my-robot-dataset \\\n  --no-val-split \\\n  --steps 100000 \\\n  --batch-size 32 \\\n  --learning-rate 1e-4 \\\n  --save-freq 10000 \\\n  -j my-robot-act-train \\\n  --experiment-name my-robot-training \\\n  -r my-robot-act-model\n```\n\n### Train from HuggingFace Hub\n\n```bash\nscripts\u002Fsubmit-osmo-lerobot-training.sh -d lerobot\u002Faloha_sim_insertion_human\n```\n\n### Run Continuous Eval During Training (preferred)\n\nStart the background poller immediately after submitting training. It watches AzureML for new checkpoint versions and submits an inference job per version automatically, stopping when training reaches a terminal state.\n\n```bash\n# Launch in the background — runs until training completes\nnohup scripts\u002Fpoll-and-eval-checkpoints.sh \\\n  --model-name my-robot-act-model \\\n  --training-workflow-id lerobot-training-32 \\\n  --blob-prefix my-robot-dataset \\\n  --job-prefix my-robot-eval \\\n  --experiment-name my-robot-inference \\\n  --poll-interval 60 \\\n  --max-concurrent 2 \\\n  > \u002Ftmp\u002Fmy-robot-eval.log 2>&1 & disown\n\n# Monitor the poller\ntail -f \u002Ftmp\u002Fmy-robot-eval.log\n```\n\nThe poller caps concurrent inference workflows at `--max-concurrent` (default 2) to avoid cluster saturation. Submitted versions are tracked in `\u002Ftmp\u002F\u003Cmodel-name>-submitted-versions.txt`.\n\n### Run a Single Inference Job\n\n```bash\n# OSMO inference (GPU, evaluates against the same dataset)\nscripts\u002Fsubmit-osmo-lerobot-inference.sh \\\n  --from-aml-model \\\n  --model-name my-robot-act-model \\\n  --model-version 3 \\\n  --from-blob-dataset \\\n  --storage-account mystorageaccount \\\n  --blob-prefix my-robot-dataset \\\n  --mlflow-enable \\\n  --eval-episodes 10 \\\n  -j my-robot-eval \\\n  --experiment-name my-robot-inference\n\n# Local inference (CPU\u002FMPS, for quick validation)\npython scripts\u002Frun-local-lerobot-inference.py \\\n  --model-name my-robot-act-model \\\n  --model-version 3 \\\n  --dataset-dir \u002Fpath\u002Fto\u002Flocal\u002Fdataset \\\n  --episodes 5 \\\n  --output-dir outputs\u002Flocal-eval \\\n  --device cpu\n```\n\n## Post-Submission Browser Monitoring\n\nAfter every successful training or inference submission, open the OSMO workflow page in VS Code's SimpleBrowser so the user can track progress and access logs directly.\n\n**Steps:**\n\n1. Capture the workflow ID from the submission output (the line `Workflow ID - \u003Cid>`).\n2. Build the URL from the service URL used for `osmo login`: `\u003Cservice-url>\u002Fworkflows\u002F\u003Cworkflow-id>`. Don't rely on the `Workflow Overview` line, which can show an in-cluster address that a browser can't reach.\n3. Open it in the integrated browser with `open_browser_page` (VS Code SimpleBrowser). This tool is editor-provided and may be unavailable, for example under the OSMO Training Manager's `tools` list or outside VS Code. When it is unavailable, open the URL with the Playwright `browser_navigate` action, or print the URL for the user to open.\n4. Tell the user that the **Logs** tab on that page streams live output per task (e.g., `lerobot-train`, `lerobot-infer`).\n\n**Example after a training submission:**\n\n```text\nWorkflow ID - lerobot-training-31\nWorkflow Overview - \u003Cservice-url>\u002Fworkflows\u002Flerobot-training-31\n```\n\nOpen: `\u003Cservice-url>\u002Fworkflows\u002Flerobot-training-31`\n\n**Example after an inference submission:**\n\n```text\nWorkflow ID - lerobot-inference-20\nWorkflow Overview - \u003Cservice-url>\u002Fworkflows\u002Flerobot-inference-20\n```\n\nOpen: `\u003Cservice-url>\u002Fworkflows\u002Flerobot-inference-20`\n\n> The page has a **Logs** tab with per-task log streams. For training, select the `lerobot-train` task. For inference, select the `lerobot-infer` task. Use the OSMO CLI (`osmo workflow logs \u003Cid> -t \u003Ctask> -n 100`) as a fallback when the browser is not reachable.\n\n## Azure ML Portal Monitoring (Playwright)\n\nAfter submitting a training job, and whenever the background eval poller reports a new inference job, open the Azure ML portal with Playwright to view live metrics and trajectory plots. The steps use the Playwright MCP actions `browser_navigate`, `browser_snapshot`, `browser_click`, and `browser_take_screenshot`. Each harness exposes them under its own identifiers, so use the host's tool search to find the navigate, snapshot, click, and screenshot tools before calling them.\n\nWhen no browser tools are available, report the portal URL and use `osmo workflow logs \u003Cid> -t \u003Ctask> -n 100` for progress.\n\n### Training Metrics — Open Immediately After Submission\n\nAfter the training job is submitted, navigate to the training experiment page and open the **Metrics** tab:\n\n1. Construct the experiment URL from Azure environment variables in `scripts\u002F.env`:\n\n   ```text\n   https:\u002F\u002Fml.azure.com\u002Fexperiments\u002F{experiment_name}?wsid=\u002Fsubscriptions\u002F{AZURE_SUBSCRIPTION_ID}\u002FresourceGroups\u002F{AZURE_RESOURCE_GROUP}\u002Fproviders\u002FMicrosoft.MachineLearningServices\u002Fworkspaces\u002F{AZUREML_WORKSPACE_NAME}\n   ```\n\n2. Navigate (`browser_navigate`) to that URL.\n3. Take a snapshot (`browser_snapshot`) to confirm the page loaded and identify the latest run row in the table.\n4. Click the first (most recent) run link.\n5. On the run detail page, take a snapshot (`browser_snapshot`) to locate the **Metrics** tab.\n6. Click **Metrics**.\n7. Take a screenshot (`browser_take_screenshot`) and show the live training curves to the user.\n\nKey metrics to surface: `train\u002Floss`, `train\u002Flearning_rate` (confirm `1e-04`, not `1e-05`), `train\u002Fgrad_norm`, `gpu_percent`.\n\nRefresh by navigating (`browser_navigate`) to the same URL again at any time.\n\n> See [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for exact click paths, tab selectors, and screenshot guidance.\n\n### Inference \u002F Eval Plots — Open When Poller Submits a Job\n\nWhile the background eval poller is running, monitor the poller log and navigate to Azure ML to view trajectory plots as each inference job completes:\n\n1. Tail the poller log to detect a new inference submission:\n\n   ```bash\n   tail -n 30 \u002Ftmp\u002F\u003Cmodel-name>-eval.log | grep -E \"Submitting|Workflow ID\"\n   ```\n\n2. Construct the inference experiment URL using the `--experiment-name` passed to the poller:\n\n   ```text\n   https:\u002F\u002Fml.azure.com\u002Fexperiments\u002F{inference_experiment_name}?wsid=\u002Fsubscriptions\u002F{AZURE_SUBSCRIPTION_ID}\u002FresourceGroups\u002F{AZURE_RESOURCE_GROUP}\u002Fproviders\u002FMicrosoft.MachineLearningServices\u002Fworkspaces\u002F{AZUREML_WORKSPACE_NAME}\n   ```\n\n3. Navigate (`browser_navigate`) to that URL.\n4. Take a snapshot (`browser_snapshot`) to identify the latest run row (most recently submitted checkpoint eval).\n5. Click that run.\n6. On the run detail page, click the **Images** tab.\n7. Take a screenshot (`browser_take_screenshot`) and show the trajectory plots to the user.\n\n> The **Images** tab contains per-episode trajectory plots logged by the inference job (`episode_NNN_trajectory.png` and `eval_summary.png`). They appear after the OSMO inference workflow reaches `completed` status. If images are not yet present, check `osmo workflow query \u003Cinference-workflow-id>` and wait for `completed`.\n\n## Parameters Reference\n\n### Training Submission Parameters\n\n| Parameter           | Flag                | Default                | Description                                    |\n|---------------------|---------------------|------------------------|------------------------------------------------|\n| Dataset repo ID     | `-d`, `--dataset`   | (required)             | HuggingFace dataset or blob dataset name       |\n| Policy type         | `-p`, `--policy`    | `act`                  | `act` or `diffusion`                           |\n| Job name            | `-j`, `--job-name`  | `lerobot-act-training` | Unique job identifier                          |\n| Training steps      | `--steps`           | `100000`               | Total training iterations                      |\n| Batch size          | `--batch-size`      | `32`                   | Training batch size (64 for 48GB GPUs)         |\n| Learning rate       | `--learning-rate`   | `1e-4`                 | Maps to `--policy.optimizer_lr` internally     |\n| Save frequency      | `--save-freq`       | `5000`                 | Checkpoint interval (model registered at each) |\n| Validation split    | `--val-split`       | `0.1`                  | Ratio for train\u002Fval split                      |\n| No val split        | `--no-val-split`    | —                      | Disable validation splitting                   |\n| Register checkpoint | `-r`                | (none)                 | Model name for Azure ML registration           |\n| From blob           | `--from-blob`       | `false`                | Use Azure Blob Storage as data source          |\n| Storage account     | `--storage-account` | (terraform)            | Azure Storage account name                     |\n| Blob prefix         | `--blob-prefix`     | (none)                 | Blob path prefix for dataset                   |\n\n### Inference Submission Parameters\n\n| Parameter         | Flag                      | Default    | Description                                 |\n|-------------------|---------------------------|------------|---------------------------------------------|\n| Policy repo ID    | `--policy-repo-id`        | (required) | HuggingFace repo, or use `--from-aml-model` |\n| From AML model    | `--from-aml-model`        | `false`    | Load from AzureML model registry            |\n| Model name        | `--model-name`            | (none)     | AzureML model registry name                 |\n| Model version     | `--model-version`         | (none)     | AzureML model version                       |\n| Dataset repo ID   | `-d`, `--dataset-repo-id` | (none)     | HuggingFace dataset                         |\n| From blob dataset | `--from-blob-dataset`     | `false`    | Download dataset from Azure Blob            |\n| Eval episodes     | `--eval-episodes`         | `10`       | Number of episodes to evaluate              |\n| MLflow enable     | `--mlflow-enable`         | `false`    | Log trajectory plots to AzureML             |\n\n### Continuous Evaluation Parameters (`poll-and-eval-checkpoints.sh`)\n\n| Parameter         | Flag                     | Default           | Description                                 |\n|-------------------|--------------------------|-------------------|---------------------------------------------|\n| Model name        | `--model-name`           | (required)        | AzureML model registry name to watch        |\n| Training workflow | `--training-workflow-id` | (required)        | OSMO workflow ID of the training job        |\n| Blob prefix       | `--blob-prefix`          | (required)        | Blob path prefix for the evaluation dataset |\n| Storage account   | `--storage-account`      | (from .env)       | Azure Storage account                       |\n| Eval episodes     | `--eval-episodes`        | `10`              | Episodes per inference run                  |\n| Job prefix        | `--job-prefix`           | (from model name) | Prefix for inference job names              |\n| Experiment name   | `--experiment-name`      | (from model name) | MLflow experiment for inference runs        |\n| Poll interval     | `--poll-interval`        | `60`              | Seconds between AzureML registry polls      |\n| Max concurrent    | `--max-concurrent`       | `2`               | Max simultaneous inference workflows        |\n\n### GPU Configuration Guidelines\n\n| GPU          | VRAM             | Recommended Batch Size | Notes                                                               |\n|--------------|------------------|------------------------|---------------------------------------------------------------------|\n| A10          | 24GB             | 32                     | Standard configuration                                              |\n| RTX PRO 6000 | 96GB (whole GPU) | 64                     | Requires `mig.strategy: single`; fractional sizes have 48GB or 24GB |\n| H100         | 80GB             | 128                    | Standard MIG disabled                                               |\n\n### Azure ML Context\n\nResolved from CLI flags > environment variables > Terraform outputs:\n\n| Variable        | Flag                      | Env Var                  |\n|-----------------|---------------------------|--------------------------|\n| Subscription ID | `--azure-subscription-id` | `AZURE_SUBSCRIPTION_ID`  |\n| Resource group  | `--azure-resource-group`  | `AZURE_RESOURCE_GROUP`   |\n| Workspace name  | `--azure-workspace-name`  | `AZUREML_WORKSPACE_NAME` |\n\n## Training Completion Estimation\n\nEstimate training duration based on dataset and configuration:\n\n| Dataset Size              | Steps   | GPU          | Approximate Duration |\n|---------------------------|---------|--------------|----------------------|\n| 20K frames \u002F 64 episodes  | 10,000  | A10          | ~30 minutes          |\n| 20K frames \u002F 64 episodes  | 100,000 | A10          | ~5 hours             |\n| 80K frames \u002F 174 episodes | 100,000 | A10          | ~8 hours             |\n| 20K frames \u002F 64 episodes  | 100,000 | RTX PRO 6000 | ~3 hours             |\n\nCheckpoints are registered to AzureML at every `--save-freq` interval. Jobs may be evicted on spot GPU instances — checkpoints already registered remain available for inference even if the job is interrupted.\n\n## OSMO CLI Reference\n\nSee [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for full CLI and SDK documentation.\n\n```bash\nosmo workflow query \u003Cworkflow-id>\nosmo workflow logs \u003Cworkflow-id> -n 100\nosmo workflow logs \u003Cworkflow-id> --error\nosmo workflow list\nosmo workflow cancel \u003Cworkflow-id>\n```\n\n### Checkpoint Poller Commands\n\n```bash\n# Start continuous eval loop in background\nnohup scripts\u002Fpoll-and-eval-checkpoints.sh \\\n  --model-name \u003Cmodel-name> \\\n  --training-workflow-id \u003Cworkflow-id> \\\n  --blob-prefix \u003Cdataset-blob-prefix> \\\n  > \u002Ftmp\u002F\u003Cmodel-name>-eval.log 2>&1 & disown\n\n# Monitor poller\ntail -f \u002Ftmp\u002F\u003Cmodel-name>-eval.log\n\n# Check which versions have been submitted\ncat \u002Ftmp\u002F\u003Cmodel-name>-submitted-versions.txt\n\n# Stop the poller early\npkill -f poll-and-eval-checkpoints\n```\n\n## Key Metrics Logged\n\n| Metric                | Description                                      |\n|-----------------------|--------------------------------------------------|\n| `train\u002Floss`          | Training loss per step                           |\n| `train\u002Fgrad_norm`     | Gradient norm                                    |\n| `train\u002Flearning_rate` | Current learning rate (verify `1e-4` not `1e-5`) |\n| `val\u002Floss`            | Validation loss (when val split enabled)         |\n| `gpu_percent`         | GPU utilization (when system metrics enabled)    |\n\n## Troubleshooting\n\n| Symptom                                           | Likely Cause                                          | Resolution                                                                                                                                                                           |\n|---------------------------------------------------|-------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `lr: 1e-05` in logs                               | `LEARNING_RATE` not mapped                            | Verify `train.py` maps to `--policy.optimizer_lr`                                                                                                                                    |\n| `KeyError: chunk_index`                           | v3.0 dataset not converted                            | Verify `download_dataset.py` has `patch_info_paths()`                                                                                                                                |\n| `codebase_version` warning                        | Dataset still marked v3.0                             | Verify `patch_info_paths()` sets `codebase_version = \"v2.1\"`                                                                                                                         |\n| `CUDA_ERROR_NO_DEVICE`                            | MIG strategy misconfigured                            | Set `mig.strategy: single` for vGPU nodes                                                                                                                                            |\n| VM eviction mid-training                          | Spot GPU preempted                                    | Checkpoints already registered to AML survive eviction                                                                                                                               |\n| `ImportError: patch_info_paths`                   | Payload missing training fixes                        | Ensure `training\u002Fil\u002F` includes `download_dataset.py` with `patch_info_paths`                                                                                                         |\n| OOM during training                               | Batch size too large                                  | Reduce `--batch-size` (32 for 24GB, 64 for 48GB)                                                                                                                                     |\n| Poller exits immediately                          | Training workflow already terminal                    | Check `osmo workflow query \u003Cid>`; rerun poller or submit inference manually                                                                                                          |\n| Poller stalls at max-concurrent                   | Inference jobs not finishing                          | Check inference workflow status; increase `--max-concurrent` or cancel stuck jobs                                                                                                    |\n| Many pending inference jobs after stopping poller | Poller submitted jobs faster than cluster could drain | `osmo workflow list` only returns the last 12 — iterate over expected ID range to cancel all: `for id in $(seq \u003Cfirst> \u003Clast>); do osmo workflow cancel lerobot-inference-$id; done` |\n| `info: command not found` in poller               | `common.sh` not sourced                               | Verify `scripts\u002Flib\u002Fcommon.sh` exists and is readable                                                                                                                                |\n\nSee [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for detailed debugging commands.\n\n> Brought to you by microsoft\u002Fphysical-ai-toolchain\n",{"name":5,"description":7},"main","e15a97f765c004fa06a15a68853ec488fdd33de0",".github\u002Fskills\u002Fosmo-lerobot-training",72,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 17:25:41",{"source":9,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add microsoft\u002Fphysical-ai-toolchain --skill osmo-lerobot-training",{"tool":70,"command":71},"bunx","bunx skills add microsoft\u002Fphysical-ai-toolchain --skill osmo-lerobot-training",{"tool":73,"command":74},"pnpm","pnpm dlx skills add microsoft\u002Fphysical-ai-toolchain --skill osmo-lerobot-training","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fosmo-lerobot-training\u002FSKILL.md",true,[78,84],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002FDEFAULTS.md","REFERENCE","参考文档",3873,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fosmo-lerobot-training\u002Freferences\u002FDEFAULTS.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002FREFERENCE.md",19899,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fosmo-lerobot-training\u002Freferences\u002FREFERENCE.md",[89,97,104,111,118,125],{"skillNo":90,"name":91,"nameZh":17,"description":92,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":96},"01M78JTQEPW7M3HRGHF4SBB2P4","submit-lerobot-training","Submit a LeRobot imitation learning training job to OSMO with configurable policy, dataset, and Azure ML logging. Use when the user runs \u002Fsubmit-lerobot-training.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsubmit-lerobot-training\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":98,"name":99,"nameZh":17,"description":100,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":96},"01M78JTMTZY0EDECA60C6C9TR3","start-dataviewer","Launch the dataviewer app with an optional dataset path, open it in the browser, and optionally run a VLM judge smoke pass. Use when the user runs \u002Fstart-dataviewer.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fstart-dataviewer\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":17,"description":107,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":96},"01M78JT7VKCVSEM8N7SR67973R","dataviewer-annotate","One-shot: launch the dataviewer with the VLM judge enabled and run the multi-step VLM-as-judge pipeline across an entire dataset. Use when the user runs \u002Fdataviewer-annotate.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdataviewer-annotate\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":17,"description":114,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":96},"01M78JT5SY9QXT8X7KQX2A9EJ5","check-training-status","Check status, stream logs, and retrieve Azure ML metrics for a running or completed OSMO LeRobot training job. Use when the user runs \u002Fcheck-training-status.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcheck-training-status\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":17,"description":121,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":96},"01M78JT2TMR9AKTKGMJ7D0HMT4","chatlog","Create and maintain structured conversation chatlogs capturing problems, solutions, and lessons learned. Use when the user runs \u002Fchatlog.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fchatlog\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":128,"description":129,"descriptionZh":130,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":131,"categories":132,"keywords":135,"publishedAt":50},"01M69AS2WAAD5CZ9S9CBSEZ226","synthetic-data","NVIDIA Cosmos合成数据生成","Generate synthetic training data using NVIDIA Cosmos world foundation models for SDG pipelines","使用 NVIDIA Cosmos 世界基础模型为 SDG 管道生成合成训练数据。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsynthetic-data\u002FSKILL.md",[133,134],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[136,137,138,139,140,141,142,143,31,144,145,146,147],"synthetic data","data","synthetic","world","NVIDIA","generate","for","models","cosmos","pipelines","Training Data","foundation"]