charger
charger
+1
> I don't understand the issue. Do you just need to run inference? If that is the case, DS-inference is compatible with all Huggingface models. Hello, I have the same...
By the way: model structure: gpt model link: https://huggingface.co/TsinghuaAI/CPM-Generate I want to train the model with 4 pipeline parallel and deepspeed.
> @AnShengqiang Its non-trivial to convert models for training. People are actively exploring this as far as I know. This repository saves something called a universal checkpoint which can be...
这么大的模型,用ollama 4bit可能都得120G内存以上。 有没有勇士尝试过?
need this too
 依次打印了各部分耗时: 总共1.51s耗时:3个操作加起来耗费 1.34s(PermuteSelf耗费0.431s,CatDirect耗费0.457s,ToDevice耗费0.455s)🫡
> @AnShengqiang llama.cpp代码比较老,里面算完logits后直接传回CPU了,可以参考chatglm.cpp里改一下,先topk再回CPU 这个可以的,前两个操作有希望规避不。这两个操作,也是随着batch size增大,耗时线性增长,能规避最好了。
> 你是怎么统计时间的?cuda 同步之前测试的时间不对,使用nv专用的性能测试工具。 这个时间是直接用chrono算时间,cout打印出来的(没能找到耗时算子,出此下策)。示例代码: ``` auto start_time = std::chrono::high_resolution_clock::now(); logits.ToDevice(DataDevice::CPU); auto end_time = std::chrono::high_resolution_clock::now(); auto duration = std::chrono::duration_cast(end_time - start_time); std::cout
最新进展: #351 已经解决了后两个耗时的问题。速度提升巨大🎉🎉🎉感谢 @ztxz16 与 @siemonchan 的贡献 🫡 目前仅剩余第一个耗时问题。