StarCoder2 7B

BigCode

starcoder2

StarCoder2 系列模型还将推出 3B、15B 和 Chat 版本,为本地编码助手提供多样化的选择。

模型信息

模型

StarCoder2 7B

作者

BigCode

架构

starcoder2

参数

7B

格式

gguf

磁盘大小

大约 4.04 GB

下载并运行StarCoder2 7B

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

从终端下载 starcoder2-7b

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

lms get starcoder2-7b

从你的代码中调用 starcoder2-7b

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

下一步:构建!🔨

了解更多