[Bug]: resume_from_checkpoint silently skips the root-level (trained) adapter when the checkpoint contains adapter subdirectories — DPO loss
![[Bug]: resume_from_checkpoint silently skips the root-level (trained) adapter when the checkpoint contains adapter subdirectories — DPO loss](https://www.chat-gpts.plus/wp-content/uploads/2026/11/50204-623d1300-768x403.jpg)
使用 resume_from_checkpoint 从包含 PEFT adapter 子目录的 checkpoint 恢复训练时, Trainer._load_from_checkpoint 只加载子目录中的非默认 adapter(如 ref ),会静默跳过存放在 checkpoint 根目录的 d





![[Question]: Welcome to nginx when launching from source](https://www.chat-gpts.plus/wp-content/uploads/2026/11/7401-7e19626b-768x403.jpg)
![[Question]: The retrieval testing of the knowledge base encountered an issue when flipping through the retrieved results.](https://www.chat-gpts.plus/wp-content/uploads/2026/11/8555-c8061813-768x403.jpg)
![[Bug]: KeyError: 'results'](https://www.chat-gpts.plus/wp-content/uploads/2026/11/6157-6e18c3a5-768x403.jpg)
