He Junxuan

Results comments of He Junxuan

Hi @Sinestro38 👋 Thank you so much for detailing this issue— I’ve encountered the exact same scenario recently and have been following this thread closely! I’d be grateful to ask:...

No. You can only get it using the raw method. Some researchers have modified the vLLM code to extract hidden states for a small number of models, but this changed...

> > 不,你只能用原始方法才能得到。一些研究人员修改了 vLLM 代码,提取了少量模型的隐藏状态,但这在旧版本的 vLLM(Qwen2.5 及之前)中已经改变了。这就是我使用原始方法的原因 > > [。](#) > > [@HJXA](https://github.com/HJXA)你好,请问你使用的那个原始方法是什么? Like this Code ```python hf_out = model( torch.tensor( [input_id + output["token_ids"][:-1]], device=model.device ), output_hidden_states=True, ) ```

> 确实变快了,我发现packing现在没有cache了,但重新启动后,也会直接load已有的,这是怎么实现的?缓存在哪里了 您好?请问一下真的会缓存吗,是怎么缓存的呢,我现在每次都要重新packing,感觉很折磨

请问4.0能否对packing后的数据进行缓存呢,我当前PT时,载入7亿样本数量后(tokenize过),往往需要packing几个小时

> > 请问4.0能否对packing后的数据进行缓存呢,我当前PT时,载入7亿样本数量后(tokenize过),往往需要packing几个小时 > > use cached_dataset https://github.com/modelscope/ms-swift/tree/main/examples/train/cached_dataset > > and use packing_num_proc 谢谢回答,在这个问题中packing_num_proc是更关键的,其能大大提升速度

相同的问题,在使用deepspeed时会报错,fsdp不会

> 要避开zero3的bug,可能需要min_lr_rate = min_lr / optimizer.defaults["lr"](这样自己转换一下) 是的,我之前的回答有问题

> 要避开zero3的bug,可能需要min_lr_rate = min_lr / optimizer.defaults["lr"](这样自己转换一下) 但是我的实际的训练的学习率结果如上,我还是遵照的之前的设置,其好像满足的就是 min_lr = lr * min_lr_rate,而不是像代码注释的那样是inital learning rate

> > 我遇到了类似的问题,但我无法使用上述解决方案,也许它只适用于 Zero1? > > [@GonyRosenman](https://github.com/GonyRosenman)正如我[之前](https://github.com/microsoft/DeepSpeed/issues/5199#issuecomment-2452622775)提到的,这些选项不受支持。如果您遇到的问题与本文最初描述的问题相同,请参阅以下文档: > > 1. https://deepspeed.readthedocs.io/en/latest/zero3.html#debugging > 2. https://deepspeed.readthedocs.io/en/latest/zero3.html#modifying-partitioned-states ```python backward(loss) [...] from deepspeed.runtime.zero.utils import is_zero_param from deepspeed.utils import safe_set_full_grad, safe_set_local_grad # Here is an...