You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 53fb00a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .agents/skills/writing-tests/references/test-examples.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,10 +111,11 @@ Guidelines for choosing models:
111
111
Categories match task types: `causal-lm`, `encoder`, `seq2seq`, `audio`,
112
112
`vision`, `vision-language`, `diffusion`.
113
113
114
-
**Required fields:**
114
+
**Required fields** (enforced by `testdata/cases/schema.json`; `tests/yaml_schema_test.py` validates every YAML on every PR):
115
115
116
116
```yaml
117
117
model_id: "Qwen/Qwen2.5-1.5B-Instruct"# HuggingFace model ID
118
+
model_type: "qwen2"# HF config.model_type — must match a key in mobius._registry
118
119
revision: "main"# Git revision / commit SHA
119
120
task_type: "text-generation"# Task type string
120
121
dtype: "float32"# "float32", "float16", or "bfloat16"
@@ -125,6 +126,8 @@ inputs:
125
126
- "Here is my poem:"# Text prompt(s); use this default
126
127
```
127
128
129
+
`model_type` is the value the registry lookup uses (see `_create_default_registry()` in `src/mobius/_registry.py`). It is **also** what `tests/model_coverage_test.py` keys on — every registered `model_type` must either appear in some YAML's `model_type` field or be added to `_COVERAGE_SKIP` with a reason. Omit it and the schema test fails; provide a value the registry doesn't know and the coverage test still flags it.
130
+
128
131
For image models, use `images:` instead of (or alongside) `prompts:`:
129
132
130
133
```yaml
@@ -209,8 +212,11 @@ Golden files must be committed alongside new test case YAML files.
0 commit comments