Commit dc20d8f
Fix LocalBackend fork_checkpoint to overwrite initial LoRA for vLLM
When forking a checkpoint, the source checkpoint was copied to
checkpoints/{source_step} in the destination model directory. However,
model.register(backend) already created an empty LoRA at checkpoints/0000.
When vLLM starts, it loads @0 — the empty 0000 checkpoint — not the
forked one. Fix by also copying the forked weights to checkpoints/0000
so vLLM loads the correct weights on startup.
Fixes #651
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4cbfa15 commit dc20d8f
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1437 | 1446 | | |
1438 | 1447 | | |
1439 | 1448 | | |
| |||
0 commit comments