ArYuZzz
ArYuZzz
> > I installed 0.3. > > Few notes, in my Ubuntu 22.04 installation was needed to add the: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install --only-upgrade libstdc++6...
> > > > I installed 0.3. > > > > Few notes, in my Ubuntu 22.04 installation was needed to add the: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo...
Is there any way to solve the problem under server mode?
> You can try to place more experts on the GPU using KExpertsMarlin. You can refer to the multi-GPU yaml example we provided for configuration. If you encounter any issues,...
Thanks, it works now.
Yes, you can. As the inference speed of v0.2 is already impressive enough, relatively, I think v0.3 may not accelerate more since the decode speed is same as v0.2
> 你是不是调整过yaml,里面有个transfer你也要改一下。 不行的话你试试把最后两行的cuda:0改成cuda:1 我使用现在官方提供的样例,报错。 https://github.com/kvcache-ai/ktransformers/blob/main/ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-multi-gpu-marlin.yaml
> llama.cpp项目有人提过相同的问题。[ggerganov](https://github.com/ggerganov)的答复是不好控制,“问题是,在你到达某一层之前,你无法提前知道哪些专家会被激活。因此,当你到达那一层时,你不能立即开始计算,而是需要先将数据移动到GPU上,这似乎会引入大量的延迟。” 我也试了虚拟内存,电脑卡死了。其实我觉得可以监控用户常用专家的加载情况,把部分不常加载的专家可以放在虚拟内存中,常加载的专家加载到物理内存中,从而减少物理内存的需求。实际上,llama.cpp在使用纯cpu推理Deepseek时,就只在内存中加载了激活专家层,实际内存占用控制在了60GB以下。 如果能够对MOE模型本身进行调整,采用动态的内存控制,也许训练设备成本也能压下来。 是否有某些手段,知道某个特定的专家层负责的功能呢?例如该层负责处理标点符号、翻译工作、领域知识等。
Meet similar problem when integrates with AnythingLLM
对于第一个问题,我在减少了使用的线程数后有所改善,但依旧有性能下降的情况。 对于第二个问题,我在AnythingLLM可以看到首次回复,但是终止符没有被正确生成,因此无法继续进行对话。 在openwebui中,则是和你出现了类似的问题。我没有配置转发。