ktransformers icon indicating copy to clipboard operation
ktransformers copied to clipboard

api 请求报错

Open devin2255 opened this issue 1 year ago • 4 comments

执行命令: ktransformers --model_path /home/LLM_models/DeepSeek-R1 --gguf_path /home/LLM_models/DeepSeek-R1-Q4_K_M --optimize_config_path /home/ktransformers/ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-multi-gpu-marlin.yaml --port 10002

报错信息: | RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1!

devin2255 avatar Feb 12 '25 15:02 devin2255

执行命令: ktransformers --model_path /home/LLM_models/DeepSeek-R1 --gguf_path /home/LLM_models/DeepSeek-R1-Q4_K_M --optimize_config_path /home/ktransformers/ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-multi-gpu.yaml --port 10002 成功启动 接口速度如下: Performance(T/s): prefill 10.807339496819642, decode 3.9502590162318056. Time(s): tokenize 0.0021657943725585938, prefill 3.5161290168762207, decode 115.94176435470581 GPU: H20 * 8 内存: 1.9T

devin2255 avatar Feb 12 '25 16:02 devin2255

你是不是调整过yaml,里面有个transfer你也要改一下。 不行的话你试试把最后两行的cuda:0改成cuda:1

ceerRep avatar Feb 13 '25 03:02 ceerRep

你是不是调整过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

ArYuZzz avatar Feb 13 '25 05:02 ArYuZzz

This issue has been automatically closed due to inactivity for 60 days.

If you believe this issue is still relevant, please feel free to reopen it with additional information or context.

Thank you for your contribution to KTransformers!


此 issue 因超过 60 天无活动而被自动关闭。

如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。

感谢您对 KTransformers 的贡献!

ErvinXie avatar Dec 11 '25 03:12 ErvinXie