返回指南
RUNTIME / EASY

llamafile

Distributing a whole GGUF model as one runnable executable on Linux, macOS, Windows and BSD

一手来源
DifficultyEasySetup profile
Platforms5cpu · apple · nvidia · amd · intel
APIOpenAI + Anthropic-compatible:8080
01 / INSTALL & RUN

安装方式取决于操作系统。以下命令是示例或模板,请先替换占位符并核对量化版本、文件格式、驱动和运行时支持;内存适配不保证部署成功。

  1. 1
    InstallDownload a prebuilt .llamafile for your model, or the llamafile binary plus an external GGUF
  2. 2
    Start a model./llamafile -m <downloaded-model.gguf> -ngl 999
  3. 3
    Connect your app

    OpenAI + Anthropic-compatible · :8080. Keep the service bound to localhost unless you add authentication and network controls.

注意

Windows can only execute files under 4 GB, so larger models need the standalone binary with external GGUF weights. Vulkan covers Intel and other GPUs, but AMD multi-GPU offload can break.

02 / COMPATIBLE MODELS

代表性开放权重模型

Alibaba Qwen

Qwen3.6 27B

27BQ4 / NVFP4 estimate
估算内存
~18.5 GB
上下文
262K native
Alibaba Qwen

Qwen3.8 27B

27BQ4 estimate
估算内存
~19.5 GB
上下文
262K native
Alibaba Qwen

Qwen3.6 35B-A3B

35B3B active · Q4 / NVFP4 MoE
估算内存
~25 GB
上下文
262K native
DeepSeek

DeepSeek V4 Flash

284B13B active · Official FP4 + FP8 mixed
估算内存
~176 GB
上下文
1M native
Google

Gemma 3 1B

1BINT4 / GGUF Q4
估算内存
~1.4 GB
上下文
32K
Meta

Llama 3.2 3B

3BGGUF Q4
估算内存
~2.8 GB
上下文
128K