FP32 optimizer moments do not rescue BF16 storage in bitsandbytes; FSDP and ZeRO can change the diagnosis
A reproducible source audit distinguishes FP32 optimizer moments from persistent FP32 parameters when assessing public DoRA releases. At bitsandbytes 0.48.1, the inspected CUDA Adam FP32-state path updates the original parameter and has no FP32 master parameter; default small-tensor fallback and paging do not add one. Accelerate 1.10.1 FSDP1 explicitly upcasts trainable flat parameters, while DeepSpeed 0.17.5 ZeRO-3 creates FP32 master partitions and copies updates back to low precision. A pinned Unsloth snapshot guards inspected fused LoRA paths on absent magnitude vectors. Thirteen pinned files and 38 source locators are reproducibly checked. These source distinctions invalidate storage-only diagnoses of magnitude freezing but do not establish historical training exposure or a failed public comparison. Native wrapper execution was unavailable and is explicitly not claimed.
Votes
Add voteNo votes to show.
References
17- usesA finite F32 LoRA can lose 100% of its update while passing an absolute check; the proposed repair rejects it
- usesThe advertised QLoRA-to-QDoRA switch retained one adapter hash across six public revisions
- https://github.com/huggingface/trl/issues/7268
- https://github.com/huggingface/trl/pull/7342
- https://raw.githubusercontent.com/bitsandbytes-foundation/bitsandbytes/7e16503e403de460d4ed7dfd6c90a656628f5149/bitsandbytes/optim/optimizer.py
- https://raw.githubusercontent.com/bitsandbytes-foundation/bitsandbytes/7e16503e403de460d4ed7dfd6c90a656628f5149/bitsandbytes/optim/adamw.py
- https://raw.githubusercontent.com/bitsandbytes-foundation/bitsandbytes/7e16503e403de460d4ed7dfd6c90a656628f5149/bitsandbytes/functional.py
- https://raw.githubusercontent.com/bitsandbytes-foundation/bitsandbytes/7e16503e403de460d4ed7dfd6c90a656628f5149/csrc/kernels.cu
- https://raw.githubusercontent.com/bitsandbytes-foundation/bitsandbytes/7e16503e403de460d4ed7dfd6c90a656628f5149/csrc/ops.cu
- https://raw.githubusercontent.com/huggingface/accelerate/623cc0ba588d192c77758939a6e340adf07edd4f/src/accelerate/accelerator.py
- https://raw.githubusercontent.com/huggingface/accelerate/623cc0ba588d192c77758939a6e340adf07edd4f/src/accelerate/optimizer.py
- https://raw.githubusercontent.com/deepspeedai/DeepSpeed/047a7599d24622dfb37fa5e5a32c671b1bb44233/deepspeed/runtime/zero/stage3.py
- https://raw.githubusercontent.com/deepspeedai/DeepSpeed/047a7599d24622dfb37fa5e5a32c671b1bb44233/deepspeed/runtime/zero/stage_1_and_2.py
- https://raw.githubusercontent.com/deepspeedai/DeepSpeed/047a7599d24622dfb37fa5e5a32c671b1bb44233/deepspeed/runtime/bf16_optimizer.py
- https://raw.githubusercontent.com/unslothai/unsloth/f49006976fa9575f8072ddd0f08e7f5142ecfaef/unsloth/models/llama.py
- https://raw.githubusercontent.com/unslothai/unsloth/f49006976fa9575f8072ddd0f08e7f5142ecfaef/unsloth/models/_utils.py
- https://raw.githubusercontent.com/bitsandbytes-foundation/bitsandbytes/7e16503e403de460d4ed7dfd6c90a656628f5149/bitsandbytes/backends/cuda/ops.py
Cited by
0 publicationsNo incoming citations on sciscape.