AnswerDotAI / fsdp_qlora

Training LLMs with QLoRA + FSDP
Apache License 2.0
1.42k stars 188 forks source link

`Converting the State Dict.ipynb` - Runtine error because Unexpected keys #70

Closed chwenjun225 closed 2 months ago

chwenjun225 commented 2 months ago

I was successfully finetune my data with llama2-7b-hf, then save model trained as model_state_dict.safetensors, and then I use Converting the State Dict.ipynb. It get Runtime Error when I run peft_model.load_state_dict(new_sd)

{ "name": "RuntimeError", "message": "Error(s) in loading state_dict for PeftModelForCausalLM: \tUnexpected key(s) in state_dict: \"base_model.model.model.layers.0.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.0.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.0.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.0.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.0.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.0.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.0.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.0.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.0.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.0.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.0.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.0.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.0.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.0.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.0.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.0.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.0.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.0.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.0.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.0.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.0.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.1.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.1.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.1.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.1.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.1.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.1.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.1.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.1.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.1.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.1.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.1.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.1.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.1.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.1.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.1.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.1.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.1.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.1.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.1.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.1.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.1.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.2.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.2.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.2.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.2.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.2.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.2.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.2.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.2.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.2.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.2.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.2.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.2.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.2.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.2.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.2.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.2.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.2.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.2.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.2.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.2.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.2.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.3.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.3.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.3.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.3.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.3.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.3.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.3.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.3.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.3.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.3.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.3.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.3.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.3.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.3.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.3.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.3.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.3.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.3.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.3.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.3.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.3.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.4.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.4.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.4.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.4.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.4.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.4.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.4.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.4.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.4.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.4.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.4.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.4.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.4.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.4.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.4.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.4.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.4.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.4.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.4.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.4.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.4.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.5.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.5.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.5.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.5.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.5.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.5.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.5.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.5.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.5.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.5.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.5.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.5.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.5.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.5.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.5.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.5.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.5.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.5.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.5.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.5.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.5.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.6.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.6.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.6.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.6.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.6.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.6.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.6.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.6.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.6.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.6.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.6.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.6.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.6.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.6.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.6.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.6.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.6.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.6.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.6.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.6.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.6.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.7.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.7.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.7.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.7.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.7.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.7.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.7.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.7.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.7.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.7.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.7.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.7.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.7.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.7.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.7.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.7.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.7.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.7.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.7.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.7.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.7.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.8.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.8.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.8.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.8.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.8.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.8.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.8.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.8.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.8.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.8.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.8.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.8.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.8.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.8.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.8.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.8.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.8.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.8.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.8.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.8.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.8.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.9.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.9.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.9.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.9.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.9.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.9.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.9.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.9.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.9.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.9.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.9.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.9.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.9.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.9.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.9.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.9.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.9.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.9.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.9.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.9.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.9.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.10.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.10.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.10.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.10.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.10.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.10.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.10.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.10.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.10.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.10.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.10.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.10.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.10.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.10.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.10.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.10.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.10.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.10.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.10.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.10.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.10.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.11.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.11.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.11.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.11.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.11.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.11.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.11.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.11.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.11.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.11.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.11.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.11.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.11.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.11.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.11.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.11.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.11.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.11.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.11.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.11.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.11.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.12.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.12.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.12.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.12.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.12.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.12.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.12.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.12.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.12.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.12.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.12.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.12.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.12.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.12.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.12.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.12.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.12.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.12.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.12.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.12.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.12.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.13.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.13.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.13.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.13.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.13.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.13.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.13.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.13.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.13.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.13.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.13.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.13.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.13.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.13.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.13.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.13.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.13.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.13.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.13.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.13.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.13.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.14.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.14.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.14.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.14.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.14.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.14.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.14.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.14.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.14.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.14.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.14.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.14.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.14.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.14.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.14.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.14.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.14.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.14.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.14.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.14.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.14.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.15.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.15.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.15.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.15.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.15.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.15.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.15.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.15.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.15.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.15.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.15.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.15.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.15.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.15.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.15.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.15.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.15.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.15.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.15.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.15.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.15.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.16.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.16.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.16.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.16.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.16.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.16.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.16.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.16.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.16.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.16.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.16.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.16.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.16.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.16.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.16.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.16.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.16.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.16.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.16.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.16.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.16.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.17.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.17.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.17.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.17.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.17.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.17.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.17.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.17.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.17.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.17.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.17.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.17.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.17.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.17.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.17.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.17.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.17.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.17.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.17.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.17.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.17.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.18.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.18.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.18.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.18.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.18.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.18.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.18.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.18.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.18.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.18.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.18.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.18.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.18.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.18.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.18.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.18.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.18.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.18.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.18.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.18.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.18.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.19.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.19.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.19.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.19.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.19.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.19.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.19.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.19.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.19.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.19.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.19.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.19.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.19.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.19.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.19.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.19.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.19.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.19.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.19.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.19.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.19.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.20.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.20.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.20.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.20.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.20.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.20.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.20.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.20.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.20.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.20.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.20.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.20.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.20.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.20.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.20.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.20.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.20.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.20.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.20.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.20.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.20.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.21.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.21.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.21.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.21.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.21.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.21.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.21.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.21.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.21.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.21.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.21.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.21.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.21.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.21.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.21.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.21.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.21.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.21.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.21.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.21.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.21.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.22.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.22.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.22.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.22.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.22.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.22.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.22.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.22.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.22.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.22.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.22.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.22.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.22.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.22.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.22.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.22.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.22.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.22.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.22.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.22.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.22.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.23.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.23.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.23.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.23.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.23.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.23.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.23.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.23.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.23.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.23.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.23.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.23.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.23.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.23.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.23.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.23.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.23.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.23.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.23.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.23.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.23.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.24.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.24.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.24.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.24.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.24.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.24.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.24.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.24.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.24.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.24.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.24.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.24.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.24.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.24.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.24.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.24.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.24.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.24.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.24.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.24.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.24.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.25.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.25.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.25.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.25.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.25.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.25.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.25.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.25.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.25.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.25.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.25.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.25.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.25.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.25.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.25.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.25.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.25.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.25.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.25.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.25.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.25.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.26.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.26.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.26.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.26.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.26.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.26.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.26.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.26.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.26.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.26.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.26.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.26.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.26.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.26.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.26.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.26.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.26.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.26.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.26.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.26.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.26.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.27.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.27.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.27.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.27.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.27.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.27.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.27.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.27.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.27.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.27.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.27.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.27.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.27.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.27.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.27.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.27.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.27.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.27.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.27.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.27.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.27.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.28.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.28.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.28.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.28.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.28.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.28.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.28.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.28.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.28.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.28.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.28.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.28.self_attn.o_proj.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.28.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.28.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.28.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.28.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.28.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.28.mlp.up_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.28.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.28.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.28.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.29.self_attn.q_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.29.self_attn.q_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.29.self_attn.q_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.29.self_attn.k_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.29.self_attn.k_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.29.self_attn.k_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.29.self_attn.v_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.29.self_attn.v_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.29.self_attn.v_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.29.self_attn.o_proj.weight.absmax\", \"base_model.model.model.layers.29.self_attn.o_proj.weight.quant_map\", \"base_model.model.model.layers.29.self_attn.o_proj.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.29.mlp.gate_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.29.mlp.gate_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.29.mlp.gate_proj.base_layer.weight.quant_state.bitsandbytesnf4\", \"base_model.model.model.layers.29.mlp.up_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.29.mlp.up_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.29.mlp.up_proj.base_layer.weight.quant_state.bitsandbytes__nf4\", \"base_model.model.model.layers.29.mlp.down_proj.base_layer.weight.absmax\", \"base_model.model.model.layers.29.mlp.down_proj.base_layer.weight.quant_map\", \"base_model.model.model.layers.29.mlp.down_proj.base_layer.weight.quant_state.bitsandbytesnf4\", ...

chwenjun225 commented 2 months ago

Oh, damn, I found the way, cause the model = get_peft_model(model, peft_config) we loaded at the absmax, quant_state, quant_state.bitsandbytes__nf4 so we need to remove these keys before load it in to model, here the solution:

new_sd = model.state_dict()

# Create a list to store keys to remove
keys_to_remove = []

for k in new_sd:
    if 'lora' in k:
        new_sd[k] = tensors[k]
    elif ('.absmax' in k) or ('.quant_state.bitsandbytes__nf4' in k) or ('.quant_map' in k): 
        keys_to_remove.append(k)
    else:
        continue

# Iterate over the list of keys to remove and delete them from the dictionary
for k in keys_to_remove:
    del new_sd[k]

model.load_state_dict(new_sd)