Gemma 3 4B

google

gemma

来自 Google 的最先进的图像+文本输入模型,基于与 Gemini 模型相同的研究和技术构建

模型信息

模型

Gemma 3 4B

作者

google

架构

gemma

参数

4B

格式

gguf

磁盘占用空间

大约 3.34 GB

下载并运行Gemma 3 4B

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

从终端下载 gemma-3-4b

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

lms get gemma-3-4b

从你的代码中调用 gemma-3-4b

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma-3-4b",
    "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-ai/lmstudio-bug-tracker 中报告错误。

了解更多