refactor patcher

This commit is contained in:
hiyouga
2024-04-24 03:02:23 +08:00
parent 07737a3d2d
commit aa2b79eb23
14 changed files with 598 additions and 394 deletions

View File

@@ -47,6 +47,8 @@ TRAINING_STAGES = {
STAGES_USE_PAIR_DATA = ["rm", "dpo", "orpo"]
SUPPORTED_CLASS_FOR_S2ATTN = ["llama"]
V_HEAD_WEIGHTS_NAME = "value_head.bin"
V_HEAD_SAFE_WEIGHTS_NAME = "value_head.safetensors"