Gemma 2 2B

Google

gemma2

“谷歌的 Llama”,Gemma 受益于谷歌训练其旗舰 Gemini 模型的经验,在低功耗或自动完成/起草任务方面提供出色的性能。

模型信息

模型

Gemma 2 2B

作者

Google

架构

gemma2

参数

2B

格式

gguf

磁盘大小

大约 1.71 GB

下载并运行Gemma 2 2B

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

从终端下载 gemma-2-2b

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

lms get gemma-2-2b

从你的代码中调用 gemma-2-2b

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

下一步:构建!🔨

了解更多