StableCode

Stability AI

stablelm

From the team behind Stable Diffusion, this small code model offers an excellent coding assistant for those with lighter hardware.

Model info

Model

StableCode

Author

Stability AI

Arch

stablelm

Parameters

2.7B

Format

gguf

Size on disk

about 1.61 GB

Download and run StableCode

Open in LM Studio to view download options

Download stable-code-3b from the terminal

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

lms get stable-code-3b
If you don't have it yet, get it by running npx lmstudio install-cli

Call stable-code-3b from your code

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "stable-code-3b",
    "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