|
29 | 29 |
|
30 | 30 | MINIMAL_YAML = """\ |
31 | 31 | model_id: "test-org/test-model" |
| 32 | +model_type: "test_model" |
32 | 33 | revision: "abc123" |
33 | 34 | task_type: "text-generation" |
34 | 35 | dtype: "float32" |
|
40 | 41 |
|
41 | 42 | VL_YAML = """\ |
42 | 43 | model_id: "test-org/test-vl" |
| 44 | +model_type: "test_vl" |
43 | 45 | revision: "def456" |
44 | 46 | task_type: "qwen-vl" |
45 | 47 | dtype: "float32" |
|
57 | 59 |
|
58 | 60 | SKIP_YAML = """\ |
59 | 61 | model_id: "test-org/skip-model" |
| 62 | +model_type: "test_skip" |
60 | 63 | revision: "aaa111" |
61 | 64 | task_type: "text-generation" |
62 | 65 | dtype: "float32" |
@@ -293,19 +296,19 @@ def _setup_cases(self, tmp_path: Path) -> Path: |
293 | 296 | _write_yaml( |
294 | 297 | causal, |
295 | 298 | "model-a.yaml", |
296 | | - 'model_id: "a"\nrevision: "1"\ntask_type: "text-generation"' |
| 299 | + 'model_id: "a"\nmodel_type: "a"\nrevision: "1"\ntask_type: "text-generation"' |
297 | 300 | '\ndtype: "float32"\nlevel: "L4+L5"\n', |
298 | 301 | ) |
299 | 302 | _write_yaml( |
300 | 303 | causal, |
301 | 304 | "model-b.yaml", |
302 | | - 'model_id: "b"\nrevision: "2"\ntask_type: "text-generation"' |
| 305 | + 'model_id: "b"\nmodel_type: "b"\nrevision: "2"\ntask_type: "text-generation"' |
303 | 306 | '\ndtype: "float32"\nlevel: "L4"\n', |
304 | 307 | ) |
305 | 308 | _write_yaml( |
306 | 309 | encoder, |
307 | 310 | "model-c.yaml", |
308 | | - 'model_id: "c"\nrevision: "3"\n' |
| 311 | + 'model_id: "c"\nmodel_type: "c"\nrevision: "3"\n' |
309 | 312 | 'task_type: "feature-extraction"' |
310 | 313 | '\ndtype: "float32"\nlevel: "L4"\n', |
311 | 314 | ) |
@@ -362,7 +365,7 @@ def test_malformed_yaml_skipped(self, tmp_path: Path): |
362 | 365 | _write_yaml( |
363 | 366 | root, |
364 | 367 | "good.yaml", |
365 | | - 'model_id: "ok"\nrevision: "1"\n' |
| 368 | + 'model_id: "ok"\nmodel_type: "ok"\nrevision: "1"\n' |
366 | 369 | 'task_type: "text-generation"' |
367 | 370 | '\ndtype: "float32"\nlevel: "L4"\n', |
368 | 371 | ) |
|
0 commit comments