Skip to content
On this page

deepseek

魔塔社区

AnythingLLM

DeepSeek-R1-Distill-Qwen-7B-GGUF 模型下载

ollama

ModelFile文件

myllama2.modelfile

FROM ./DeepSeek-R1-Distill-Qwen-1.5B-Q8_0.gguf    
PARAMETER temperature 0.7                       
PARAMETER top_p 0.95
PARAMETER top_k 40
PARAMETER repeat_penalty 1.1
PARAMETER min_p 0.05
PARAMETER num_ctx 1024                 
PARAMETER num_thread 4                  
PARAMETER num_gpu 8                     


# 设置对话终止符
PARAMETER stop "<|begin▁of▁sentence|>"
PARAMETER stop "<|end▁of▁sentence|>"
PARAMETER stop "<|User|>"
PARAMETER stop "<|Assistant|>"


SYSTEM """
"""

TEMPLATE """{{- if .System }}{{ .System }}{{ end }} 
{{- range $i, $_ := .Messages }} 
{{- $last := eq (len (slice $.Messages $i)) 1}}
{{- if eq .Role "user" }}<|User|>{{ .Content }}
{{- else if eq .Role "assistant" }}<|Assistant|>{{ .Content }}{{- if not $last }}<|end▁of▁sentence|>{{- end }}
{{- end }}
{{- if and $last (ne .Role "assistant") }}<|Assistant|>{{- end }} 
{{- end }}"""

ollama 创建模型

https://www.huwangyun.cn/blog/custom-llm-models-with-ollama-modelfile

ollama create myllama2 --file myllama2.modelfile

启动模型

ollama run myllama2

lm studio 更改 镜像源

https://www.cnblogs.com/com3/p/18224574

ollama命令

ollama run deepseek-r1:7b --verbose

--verbose 启用详细输出模式

回复/bye 退出聊天

ollama ps

显存要求

参数量显存需求
1.5B无需GPU
7B8GB
8B8GB
14B16GB
32B24GB
70B48GB
671B480GB

粤ICP备2024285819号