RamaLama
$ ramalama 基金会 低风险RamaLama(ramalama)可在无根 OCI 容器(Podman/Docker)中或通过 --nocontainer 直接运行与服务本地 AI 模型。支持从 Hugging Face、Ollama 与 OCI 镜像仓拉取模型,并在 ramalama list、ramalama inspect 与 ramalama models 中支持 --json。
brew install ramalama ramalama 直接在宿主机上通过 Podman/Docker 容器隔离推理运行时并检查 GGUF 模型元数据。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
list、inspect 与 models 支持 --json,ramalama run <model> <prompt> 支持单次非交互推理。
ramalama list --json,inspect --json, andmodels --jsonemit structured JSONramalama inforeports engine and hardware detection cleanly
默认使用 Podman/Docker 无根容器隔离模型运行时,避免污染宿主机环境。
- Containerized execution by default via Podman/Docker (
--engine)
在 macOS 与 Linux 上可通过 Homebrew、pip、dnf 与安装脚本获取,但容器模式依赖 Podman 或 Docker。
- Installable via
brew install ramalamaandpip install ramalama
将 Hugging Face、Ollama 与 OCI 模型仓统一于同一容器化接口(支持 llama.cpp、vllm、mlx)。
- Supports
--runtime {llama.cpp,vllm,mlx}and multiple model registries
由 containers 组织(Podman 同源)维护,MIT 协议开源。
- Active
containers/ramalamarepo under MIT license
提供完整 man 手册、子命令 --help 以及 ramalama.ai 官方文档。
- Structured subcommand help and ramalama.ai documentation
安全边界、鉴权与放权指南
本地推理无需认证;OCI 镜像仓登录使用 Podman/Docker 凭据(~/.config/containers/auth.json),受限 Hugging Face 权重使用 HF_TOKEN。
containers 组织开源的 MIT 工具;需本地 GPU/内存及 Podman/Docker(或使用 --nocontainer)。
# RamaLama Agent Rules - Prefer `ramalama list --json` and `ramalama info` before downloading multi-GB weights. - Do not invoke `ramalama run <model>` without a prompt argument or `ramalama serve`, as bare `run` opens an interactive chat session and `serve` blocks.
Agent 高频安全命令配方
只读查询(安全推荐)
ramalama list --json
以结构化 JSON 输出本地已存储的模型名称、来源、体积与修改时间。
ramalama info
输出检测到的 GPU/加速器、容器引擎(podman/docker)及存储路径。
受控写入与预演
ramalama inspect smollm:135m --all --json
以 JSON 输出 GGUF 头部元数据与张量结构而不进入交互聊天循环。
核心优势
- + 容器原生无根隔离,避免宿主机 Python/CUDA 依赖冲突。
- +
ramalama list --json、inspect --json与models --json便于 Agent 解析。
注意事项与踩坑点
- ! 容器模式需要安装 Podman 或 Docker(除非显式传入
--nocontainer)。 - ! 不直接原生支持 Windows(需通过 WSL2)。