DeepSeek Coder 是一個功能強大的程式碼模型,使用兩兆個程式碼和自然語言 tokens 訓練而成。
1.3b 6.7b 33b
601.6K 提取次數 更新於 14 個月前
更新於 14 個月前
14 個月前
2c83b95953cd · 815MB
模型
架構llama
·
參數1.35B
·
量化Q4_K_S
815MB
許可證
DEEPSEEK 授權協議 1.0 版本,2023 年 10 月 23 日 版權 (c) 2023 DeepSeek 第一節:PR
14kB
Readme
DeepSeek Coder 是從頭開始訓練的,其中 87% 為程式碼,13% 為英文和中文的自然語言。每個模型都預先在兩兆個 tokens 上進行訓練。
可用的模型
13 億參數模型
ollama run deepseek-coder
67 億參數模型
ollama run deepseek-coder:6.7b
330 億參數模型
ollama run deepseek-coder:33b
CLI
開啟終端機並執行 ollama run deepseek-coder
API
使用 curl 的範例
curl -X POST https://127.0.0.1:11434/api/generate -d '{
"model": "deepseek-coder",
"prompt":"Why is the sky blue?"
}'