Commit 9acc507
committed
fix(core): disable swa_full for non-SWA models (sync llama.cpp upstream #20291)
- Fallback `context_params.swa_full` to False if `_n_swa == 0` and emit a warning.
- Updated `is_hybrid` validation to use the resolved `self.context_params.swa_full` state.1 parent 955ac33 commit 9acc507
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
482 | 489 | | |
483 | 490 | | |
484 | 491 | | |
485 | | - | |
| 492 | + | |
486 | 493 | | |
487 | 494 | | |
488 | 495 | | |
489 | 496 | | |
490 | | - | |
| 497 | + | |
491 | 498 | | |
492 | 499 | | |
493 | 500 | | |
| |||
0 commit comments