MaxMys

Results issues of MaxMys

batch_size=4 A100-80G GLM和通义,都会溢出。可能代码问题。 ![image](https://github.com/hiyouga/LLaMA-Efficient-Tuning/assets/2140087/1a7ad33e-168a-4bb3-bf29-398b6e34470f)

solved

https://github.com/hiyouga/LLaMA-Efficient-Tuning/blob/e21ae0135610bad8116cadbe4b184aac8e279d7c/src/llmtuner/tuner/core/loader.py#L103C3-L106C54 要不然会出现,模型用的是checkpoint,但是配置仍然用的原来的

solved

会导致训练阶段模型始终以bfloat16加载 https://github.com/hiyouga/LLaMA-Efficient-Tuning/blob/dd51c242032ce3f878cb191dc144536db4a2bb45/src/llmtuner/tuner/core/loader.py#L102 ![image](https://github.com/hiyouga/LLaMA-Efficient-Tuning/assets/2140087/facccacd-6fe5-4c66-82b6-16bb71bd6a21)

solved

https://github.com/hiyouga/LLaMA-Efficient-Tuning/blob/dd51c242032ce3f878cb191dc144536db4a2bb45/src/llmtuner/tuner/core/loader.py#L74 需要根据trainer.fp16, trainer.bf16来设置config里面的几个参数。不然SFT会报错 参考 1、通义的代码 @see QWenConfig#26行 & 2、modeling_qwen.py# 779

solved

参数: full / fp16 环境:多机多卡 ---- 和上次那个错误差不多 File "/root/.cache/huggingface/modules/transformers_modules/modeling_qwen.py", line 130, in forward -- assert all((i.dtype in [torch.float16, torch.bfloat16] for i in (q, k, v)))

solved

![image](https://github.com/QwenLM/Qwen-7B/assets/2140087/5bbf5db1-ae17-4422-9b95-98db122a3115)

bug

### 起始日期 | Start Date _No response_ ### 实现PR | Implementation PR _No response_ ### 相关Issues | Reference Issues _No response_ ### 摘要 | Summary 3B的有计划吗 ### 基本示例 | Basic...

question