Instructions to use webmp3/Sakura-Inkling-2-Mini-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Use Docker
docker model run hf.co/webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webmp3/Sakura-Inkling-2-Mini-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "webmp3/Sakura-Inkling-2-Mini-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
- Ollama
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with Ollama:
ollama run hf.co/webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with Docker Model Runner:
docker model run hf.co/webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
- Lemonade
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Sakura-Inkling-2-Mini-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use webmp3/Sakura-Inkling-2-Mini-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add README_zh.md
Browse files- README_zh.md +22 -0
README_zh.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sakura · Inkling-2-Mini GGUF
|
| 2 |
+
|
| 3 |
+
**需要 llama.cpp b12600 或更新版本。** 这是制作并测试这些文件所用的版本,包含循环架构 Inkling 2 Mini(拉取请求 #32694)。更旧的版本,以及内置旧版 llama.cpp 的 Ollama 或 LM Studio,无法加载这些文件。
|
| 4 |
+
|
| 5 |
+
- 原始模型:[thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini),Apache-2.0。文件由 ggml-org 的 BF16 GGUF([ggml-org/Inkling-2-Mini-GGUF](https://huggingface.co/ggml-org/Inkling-2-Mini-GGUF))量化而来,我没有自己从原始权重转换;重要性矩阵与视觉投影文件 `mmproj` 均为 ggml-org 的,原样复用。
|
| 6 |
+
- 文件:Q4_K_M(内存紧张时)、Q5_K_M(均衡)、Q6_K(最接近原模型)。图像输入请把 `mmproj` 文件放在模型文件旁。
|
| 7 |
+
- **llama.cpp**(b12600 或更新版本):
|
| 8 |
+
|
| 9 |
+
```bash
|
| 10 |
+
# download a llama.cpp release b12600 or newer from https://github.com/ggml-org/llama.cpp/releases
|
| 11 |
+
# (or build it: git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp && cmake -B build && cmake --build build -j)
|
| 12 |
+
llama-server -hf webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M -c 8192 --port 8080
|
| 13 |
+
# or with local files, including image input:
|
| 14 |
+
llama-server -m Sakura-Inkling-2-Mini-Q4_K_M.gguf --mmproj mmproj-Inkling-2-Mini-BF16.gguf -c 8192 --port 8080
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
然后打开 http://127.0.0.1:8080,或使用兼容 OpenAI 的接口 `http://127.0.0.1:8080/v1`。
|
| 18 |
+
- **Ollama**(作者未测试;需要包含 `inkling2_loop` 架构的 Ollama 版本):`ollama run hf.co/webmp3/Sakura-Inkling-2-Mini-GGUF:Q4_K_M`,或在已下载文件旁使用 Modelfile(`FROM ./Sakura-Inkling-2-Mini-Q4_K_M.gguf`,`PARAMETER num_ctx 8192`)。
|
| 19 |
+
- **LM Studio**(作者未测试;需要其 llama.cpp 运行时包含 `inkling2_loop` 架构的版本):在 Discover 标签页搜索 `webmp3/Sakura-Inkling-2-Mini-GGUF`,下载文件,GPU 卸载按内存尽量调高,上下文长度 8192;图像输入时把 `mmproj` 文件放在同一文件夹。
|
| 20 |
+
- 校验:张量类型与同一工具 `--dry-run` 的计划一致;文件可加载并生成文本;已测量相对 `Q8_0` 的 KLD;每次上传后按 SHA-256 回读。
|
| 21 |
+
- 已测量:各文件相对 `Q8_0` 的平均 KLD 与首选词元一致率(一段很短的留出文本,5 个块,每块 256 个词元,见上表)。未测量:基准测试、长上下文、使用这些文件的图像输入、速度、GPU 后端、与原始检查点的一致性。原始检查点第 0 至 19 层的 4 位专家来自 NVFP4,与这里的 K 量化格式不同,因此多了一次舍入,代价未与原始模型比较。
|
| 22 |
+
|