DeepSeek-V4-Flash fine-tuning: can a merged model keep the same FP4+FP8 format as the base model, or is BF16 the only supported merge output?

#40
by zhangshuai121 - opened

I am fine-tuning deepseek-ai/DeepSeek-V4-Flash with ms-swift / Megatron LoRA.
The official base model uses a mixed low-precision format: MoE expert weights are FP4 and most other weights are FP8. After LoRA fine-tuning, if I use merge_lora, the merged full model becomes BF16/F16 and is much larger than the original base checkpoint.
I want to know whether anyone has successfully produced a fine-tuned / merged DeepSeek-V4-Flash checkpoint that keeps the same format and size characteristics as the official base model, namely FP4 experts + FP8 non-expert weights.
Questions:
Is merged BF16/F16 currently the expected and only supported output after LoRA merge?
Is there an official or community workflow to merge LoRA back into the original FP4+FP8 mixed checkpoint format?
Can post-training quantization restore the exact official DeepSeek-V4-Flash format, or would it only produce a different quantized format such as generic FP8/AWQ/GPTQ?
Are there known serving engines that support DeepSeek-V4-Flash LoRA adapters directly, including modules such as wq_a, wkv, wo_b, linear_fc1, or linear_fc2?
In my tests, the base model can start successfully, but serving the LoRA adapter separately has compatibility issues depending on the target modules. I am trying to understand whether preserving the base model’s original precision layout after fine-tuning is possible, or whether the practical options are currently limited to BF16 merged weights or base-plus-LoRA serving.

Sign up or log in to comment