•
llama
Yi Coder 是一个基于 Llama 微调的模型,扩展了尺寸,专为代码训练。支持最大 128K tokens 和 “52 种主要编程语言”。
模型信息
模型
Yi Coder 9B
作者
01-ai
架构
llama
参数量
9B
格式
gguf
磁盘占用空间
大约 5.04 GB
使用 lms
— LM Studio 的开发者 CLI 下载模型。
lms get yi-coder-9b
curl https://127.0.0.1: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
}'
lms log stream
以查看发送到 LLM 的提示。lmstudio.js
- LM Studio SDK 文档 (TypeScript)lms log stream
- 流式服务器日志lms
- LM Studio CLI 文档