yi-coder

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
Hızlı Kurulum (Ollama kuruluysa)
ollama run yi-coder

Ollama kurulu değil mi? ollama.com/download — Windows, macOS ve Linux için ücretsiz. İlk çalıştırmada model indirilir, sonrası tamamen çevrimdışıdır.

Varyantlar

Boyut büyüdükçe kalite artar, donanım ihtiyacı yükselir. Başlangıç için küçük varyantı deneyin.

EtiketBoyutBağlamGirdiKomut
latest 5.0GB 128K Text ollama run yi-coder:latest
1.5b 866MB 128K Text ollama run yi-coder:1.5b
9b 5.0GB 128K Text ollama run yi-coder:9b
1.5b-base 866MB 128K Text ollama run yi-coder:1.5b-base
1.5b-base-q2_K 635MB 128K Text ollama run yi-coder:1.5b-base-q2_K
1.5b-base-q3_K_S 723MB 128K Text ollama run yi-coder:1.5b-base-q3_K_S
1.5b-base-q3_K_M 786MB 128K Text ollama run yi-coder:1.5b-base-q3_K_M
1.5b-base-q3_K_L 826MB 128K Text ollama run yi-coder:1.5b-base-q3_K_L
1.5b-base-q4_0 866MB 128K Text ollama run yi-coder:1.5b-base-q4_0
1.5b-base-q4_1 950MB 128K Text ollama run yi-coder:1.5b-base-q4_1
1.5b-base-q4_K_S 904MB 128K Text ollama run yi-coder:1.5b-base-q4_K_S
1.5b-base-q4_K_M 964MB 128K Text ollama run yi-coder:1.5b-base-q4_K_M
1.5b-base-q5_0 1.0GB 128K Text ollama run yi-coder:1.5b-base-q5_0
1.5b-base-q5_1 1.1GB 128K Text ollama run yi-coder:1.5b-base-q5_1
1.5b-base-q5_K_S 1.1GB 128K Text ollama run yi-coder:1.5b-base-q5_K_S
1.5b-base-q5_K_M 1.1GB 128K Text ollama run yi-coder:1.5b-base-q5_K_M
1.5b-base-q6_K 1.3GB 128K Text ollama run yi-coder:1.5b-base-q6_K
1.5b-base-q8_0 1.6GB 128K Text ollama run yi-coder:1.5b-base-q8_0
1.5b-base-fp16 3.0GB 128K Text ollama run yi-coder:1.5b-base-fp16
1.5b-chat 866MB 128K Text ollama run yi-coder:1.5b-chat
1.5b-chat-q2_K 635MB 128K Text ollama run yi-coder:1.5b-chat-q2_K
1.5b-chat-q3_K_S 723MB 128K Text ollama run yi-coder:1.5b-chat-q3_K_S
1.5b-chat-q3_K_M 786MB 128K Text ollama run yi-coder:1.5b-chat-q3_K_M
1.5b-chat-q3_K_L 826MB 128K Text ollama run yi-coder:1.5b-chat-q3_K_L
1.5b-chat-q4_0 866MB 128K Text ollama run yi-coder:1.5b-chat-q4_0

42 varyant daha var — tümü için ollama.com.

Model Detayları ve Benchmarklar (kaynak: ollama.com)

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
}'

References

Hugging Face

GitHub