StableCode

Stability AI

stablelm

这款小型代码模型由 Stable Diffusion 背后的团队开发,为硬件配置较低的用户提供了出色的代码助手。

模型信息

模型

StableCode

作者

Stability AI

架构

stablelm

参数量

2.7B

格式

gguf

磁盘占用空间

大约 1.61 GB

下载并运行StableCode

在 LM Studio 中打开以查看下载选项

从终端下载 stable-code-3b

使用 lms — LM Studio 的开发者 CLI 下载模型。

lms get stable-code-3b

从你的代码中调用 stable-code-3b

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

下一步:构建!🔨

了解更多