Commit c98185c
authored
feat(pt): support multitask argcheck (#3925)
Note that:
1. docs for multitask args are not supported, may need help.
2. `trim_pattern="_*"` is not supported for repeat dict Argument, may
need to update dargs.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Enhanced training configuration to support multi-task mode with
additional arguments for data configuration.
- Updated example configurations to reflect multi-task mode changes.
- **Bug Fixes**
- Improved logic for updating and normalizing configuration during
training regardless of multi-task mode.
- **Dependencies**
- Upgraded `dargs` package requirement to version `>= 0.4.7`.
- **Tests**
- Added new test cases for multi-task scenarios in `TestExamples` class.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent e809e64 commit c98185c
File tree
5 files changed
+83
-22
lines changed- deepmd
- pt/entrypoints
- utils
- examples/water_multi_task/pytorch_example
- source/tests/common
5 files changed
+83
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 248 | + | |
| 249 | + | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2325 | 2325 | | |
2326 | 2326 | | |
2327 | 2327 | | |
2328 | | - | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
2329 | 2331 | | |
2330 | 2332 | | |
2331 | 2333 | | |
| |||
2364 | 2366 | | |
2365 | 2367 | | |
2366 | 2368 | | |
| 2369 | + | |
| 2370 | + | |
2367 | 2371 | | |
2368 | 2372 | | |
2369 | 2373 | | |
2370 | 2374 | | |
2371 | 2375 | | |
2372 | | - | |
| 2376 | + | |
2373 | 2377 | | |
2374 | 2378 | | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
2375 | 2393 | | |
2376 | 2394 | | |
2377 | 2395 | | |
| |||
2438 | 2456 | | |
2439 | 2457 | | |
2440 | 2458 | | |
2441 | | - | |
2442 | | - | |
2443 | | - | |
2444 | 2459 | | |
2445 | 2460 | | |
2446 | 2461 | | |
| |||
2472 | 2487 | | |
2473 | 2488 | | |
2474 | 2489 | | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
2475 | 2518 | | |
2476 | 2519 | | |
2477 | 2520 | | |
| |||
2502 | 2545 | | |
2503 | 2546 | | |
2504 | 2547 | | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
2509 | | - | |
2510 | | - | |
2511 | | - | |
2512 | | - | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
2513 | 2565 | | |
2514 | 2566 | | |
2515 | 2567 | | |
| |||
2524 | 2576 | | |
2525 | 2577 | | |
2526 | 2578 | | |
2527 | | - | |
2528 | | - | |
| 2579 | + | |
| 2580 | + | |
2529 | 2581 | | |
2530 | 2582 | | |
2531 | 2583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
57 | | - | |
| 65 | + | |
| 66 | + | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
61 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments