Yi Coder 9B

01-ai

llama

Yi Coder is a Llama fine-tune with expanded size, trained for code. Supports max 128K tokens and "52 major programming languages".

Model info

Model

Yi Coder 9B

Author

01-ai

Arch

llama

Parameters

9B

Format

gguf

Size on disk

about 5.04 GB

Download and run Yi Coder 9B

Open in LM Studio to view download options

Download yi-coder-9b from the terminal

Download the model using lms — LM Studio's developer CLI.

lms get yi-coder-9b
If you don't have it yet, get it by running npx lmstudio install-cli

Call yi-coder-9b from your code

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "yi-coder-9b",
    "messages": [
      { "role": "system", "content": "Always answer in rhymes." },
      { "role": "user", "content": "Introduce yourself." }
    ],
    "temperature": 0.7,
    "max_tokens": -1,
    "stream": true
  }'

Next Steps: Build! 🔨

Learn more