Yi-Coder is a series of open-source code language models that delivers state-of-the-art coding performance with fewer than 10 billion parameters.
1.5b
9b
59.9K Pulls Updated 2 months ago
Updated 2 months ago
2 months ago
301ce2e5ec7b · 6.6GB
model
archllama
·
parameters8.83B
·
quantizationQ5_1
6.6GB
params
{"stop":["\u003c|endoftext|\u003e","\u003c|im_end|\u003e","\u003cfim_prefix\u003e","\u003cfim_suffix
135B
template
{{- if .Messages }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -
527B
license
Apache License
Version 2.0, January 2004
11kB
Readme
Yi-Coder is excelling in long-context understanding with a maximum context length of 128K tokens. It supports 52 major programming languages.
Sizes
- 9B:
ollama run yi-coder:9b
- 1.5B:
ollama run yi-coder:1.5b
Usage
Chat
ollama run yi-coder
Code completion
curl http://localhost:11434/api/generate -d '{
"model": "yi-coder",
"prompt": "def compute_gcd(a, b):",
"suffix": " return result",
"options": {
"temperature": 0
},
"stream": false
}'