Fine-tuned version of deepseek-ai/deepseek-coder-1.3b-base using 0.5B of TypeScript code
1,767 Pulls Updated 12 months ago
Updated 12 months ago
12 months ago
ee60758ecc30 · 776MB
model
archllama
·
parameters1.35B
·
quantizationQ4_0
776MB
template
{{ .Prompt }}
13B
params
{
"repeat_penalty": 1,
"stop": [
"<|end▁of▁sentence|>"
],
"temperatu
87B
Readme
Introduction
Fine-tuned version of deepseek-ai/deepseek-coder-1.3b-base using 0.5B of TypeScript code from bigcode/the-stack-dedup.
Usage
This model is for completion purposes only.
curl http://localhost:11434/api/generate \
-d '{ "model" : "codegpt/deepseek-coder-1.3b-typescript",
"prompt" : "class Person",
"stream" : false,
"options": {
"stop" : ["\n\n"]
}
}'
Fill In the Middle (FIM)
DeepSeek models support FIM. For example,
<|fim▁begin|>function quickSort(arr: number[]): number[] {
if (arr.length <= 1) {
return arr;
}
const pivot = arr[0];
const left = [];
const right = [];
<|fim▁hole|>
return [...quickSort(left), pivot, ...quickSort(right)];
}<|fim▁end|>
will generate
for (let i = 1; i < arr.length; i++) {
if (arr[i] < pivot) {
left.push(arr[i]);
} else {
right.push(arr[i]);
}
}