Commit 0d53531
committed
Fix LocalBackend fork to load forked LoRA on both vLLM and trainer
Two fixes after _experimental_fork_checkpoint copies the checkpoint:
1. Overwrite checkpoints/0000 with the forked weights so vLLM loads
the correct adapter on startup (it uses @0 by default).
2. Invalidate the UnslothService _state cache so the trainer
re-initializes with the forked checkpoint path instead of the
base model.1 parent dc20d8f commit 0d53531
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
1437 | | - | |
1438 | | - | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
1439 | 1440 | | |
1440 | 1441 | | |
1441 | 1442 | | |
1442 | | - | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1443 | 1446 | | |
1444 | 1447 | | |
1445 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
1446 | 1463 | | |
1447 | 1464 | | |
1448 | 1465 | | |
| |||
0 commit comments