disable pre_ffn and head_qk

This commit is contained in:
josc146 2024-05-10 16:41:26 +08:00
parent 2a55c8256d
commit 440b70eb15

View File

@ -116,9 +116,9 @@ const loraFinetuneParametersOptions: Array<[key: keyof LoraFinetuneParameters, t
['loraR', 'number', 'LoRA R'], ['loraR', 'number', 'LoRA R'],
['loraAlpha', 'number', 'LoRA Alpha'], ['loraAlpha', 'number', 'LoRA Alpha'],
['loraDropout', 'number', 'LoRA Dropout'], ['loraDropout', 'number', 'LoRA Dropout'],
['beta1', 'any', ''], ['beta1', 'any', '']
['preFfn', 'boolean', 'Pre-FFN'], // ['preFfn', 'boolean', 'Pre-FFN'],
['headQk', 'boolean', 'Head QK'] // ['headQk', 'boolean', 'Head QK']
]; ];
const showError = (e: any) => { const showError = (e: any) => {
@ -304,7 +304,7 @@ const LoraFinetune: FC = observer(() => {
`--ctx_len ${ctxLen} --epoch_steps ${loraParams.epochSteps} --epoch_count ${loraParams.epochCount} ` + `--ctx_len ${ctxLen} --epoch_steps ${loraParams.epochSteps} --epoch_count ${loraParams.epochCount} ` +
`--epoch_begin ${loraParams.epochBegin} --epoch_save ${loraParams.epochSave} ` + `--epoch_begin ${loraParams.epochBegin} --epoch_save ${loraParams.epochSave} ` +
`--micro_bsz ${loraParams.microBsz} --accumulate_grad_batches ${loraParams.accumGradBatches} ` + `--micro_bsz ${loraParams.microBsz} --accumulate_grad_batches ${loraParams.accumGradBatches} ` +
`--pre_ffn ${loraParams.preFfn ? '1' : '0'} --head_qk ${loraParams.headQk ? '1' : '0'} --lr_init ${loraParams.lrInit} --lr_final ${loraParams.lrFinal} ` + `--pre_ffn ${loraParams.preFfn ? '0' : '0'} --head_qk ${loraParams.headQk ? '0' : '0'} --lr_init ${loraParams.lrInit} --lr_final ${loraParams.lrFinal} ` +
`--warmup_steps ${loraParams.warmupSteps} ` + `--warmup_steps ${loraParams.warmupSteps} ` +
`--beta1 ${loraParams.beta1} --beta2 ${loraParams.beta2} --adam_eps ${loraParams.adamEps} ` + `--beta1 ${loraParams.beta1} --beta2 ${loraParams.beta2} --adam_eps ${loraParams.adamEps} ` +
`--devices ${loraParams.devices} --precision ${loraParams.precision} ` + `--devices ${loraParams.devices} --precision ${loraParams.precision} ` +