[GH-ISSUE #161] 抱歉打扰一下 我想知道在deepseek-v3的部署中的指令问题 #89

Closed
opened 2026-10-29 14:34:00 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @naginoa on GitHub (Feb 12, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/161

numactl -N 1 -m 1 python ./ktransformers/local_chat.py --model_path <your model path> --gguf_path <your gguf path>  --prompt_file <your prompt txt file>  --cpu_infer 33 --max_new_tokens 1000

上述指令中的model_path是指 ds官方的模型文件, gguf是指 llamacpp的量化模型文件。这两种文件是都需要的吗?一般来说推理不是只需要上述一种就可以吗?

Originally created by @naginoa on GitHub (Feb 12, 2025). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/161 ``` numactl -N 1 -m 1 python ./ktransformers/local_chat.py --model_path <your model path> --gguf_path <your gguf path> --prompt_file <your prompt txt file> --cpu_infer 33 --max_new_tokens 1000 ``` 上述指令中的model_path是指 ds官方的模型文件, gguf是指 llamacpp的量化模型文件。这两种文件是都需要的吗?一般来说推理不是只需要上述一种就可以吗?
Author
Owner

@lys791227 commented on GitHub (Feb 12, 2025):

so,I am same

numactl -N 1 -m 1 python ./ktransformers/local_chat.py --model_path <your model path> --gguf_path <your gguf path>  --prompt_file <your prompt txt file>  --cpu_infer 33 --max_new_tokens 1000

上述指令中的model_path是指 ds官方的模型文件, gguf是指 llamacpp的量化模型文件。这两种文件是都需要的吗?一般来说推理不是只需要上述一种就可以吗?

<!-- gh-comment-id:2652957850 --> @lys791227 commented on GitHub (Feb 12, 2025): so,I am same > ``` > numactl -N 1 -m 1 python ./ktransformers/local_chat.py --model_path <your model path> --gguf_path <your gguf path> --prompt_file <your prompt txt file> --cpu_infer 33 --max_new_tokens 1000 > ``` > > 上述指令中的model_path是指 ds官方的模型文件, gguf是指 llamacpp的量化模型文件。这两种文件是都需要的吗?一般来说推理不是只需要上述一种就可以吗?
Author
Owner

@TingFree commented on GitHub (Feb 12, 2025):

readme has noted that:

--model_path (required): Name of the model (such as "deepseek-ai/DeepSeek-V2-Lite-Chat" which will automatically download configs from Hugging Face). Or if you already got local files you may directly use that path to initialize the model.

Note: .safetensors files are not required in the directory. We only need config files to build model and tokenizer.

<!-- gh-comment-id:2652977624 --> @TingFree commented on GitHub (Feb 12, 2025): readme has noted that: > --model_path (required): Name of the model (such as "deepseek-ai/DeepSeek-V2-Lite-Chat" which will automatically download configs from [Hugging Face](https://huggingface.co/deepseek-ai/DeepSeek-V2-Lite)). Or if you already got local files you may directly use that path to initialize the model. > > Note: .safetensors files are not required in the directory. We only need config files to build model and tokenizer.
Author
Owner

@naginoa commented on GitHub (Feb 12, 2025):

thank you so much!

<!-- gh-comment-id:2652983140 --> @naginoa commented on GitHub (Feb 12, 2025): thank you so much!
Author
Owner

@xibosun commented on GitHub (Feb 13, 2025):

thank you so much!

请问使用Deekseek V3 或 R1,对应的 --gguf_path 是什么呢?谢谢

<!-- gh-comment-id:2655415566 --> @xibosun commented on GitHub (Feb 13, 2025): > thank you so much! 请问使用Deekseek V3 或 R1,对应的 --gguf_path 是什么呢?谢谢
Author
Owner

@TingFree commented on GitHub (Feb 13, 2025):

@xibosun

for modelscope: https://modelscope.cn/models/unsloth/DeepSeek-R1-GGUF
for huggingface: https://huggingface.co/unsloth/DeepSeek-R1-GGUF

you can select DeepSeek-R1-Q4_K_M / DeepSeek-R1-Q2_K / ...
based on your machine

<!-- gh-comment-id:2655715847 --> @TingFree commented on GitHub (Feb 13, 2025): @xibosun for modelscope: https://modelscope.cn/models/unsloth/DeepSeek-R1-GGUF for huggingface: https://huggingface.co/unsloth/DeepSeek-R1-GGUF you can select DeepSeek-R1-Q4_K_M / DeepSeek-R1-Q2_K / ... based on your machine
Author
Owner

@xibosun commented on GitHub (Feb 13, 2025):

@xibosun

for modelscope: https://modelscope.cn/models/unsloth/DeepSeek-R1-GGUF for huggingface: https://huggingface.co/unsloth/DeepSeek-R1-GGUF

you can select DeepSeek-R1-Q4_K_M / DeepSeek-R1-Q2_K / ... based on your machine

thanks a lot!!!

<!-- gh-comment-id:2655764913 --> @xibosun commented on GitHub (Feb 13, 2025): > [@xibosun](https://github.com/xibosun) > > for modelscope: https://modelscope.cn/models/unsloth/DeepSeek-R1-GGUF for huggingface: https://huggingface.co/unsloth/DeepSeek-R1-GGUF > > you can select DeepSeek-R1-Q4_K_M / DeepSeek-R1-Q2_K / ... based on your machine thanks a lot!!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#89
No description provided.