Text Generation
GGUF
English
Chinese
llama.cpp
lm-studio
coding
agentic
long-context
1M-context
function-calling
xcloudinfo
conversational
Instructions to use xCloudinfo/xGemable-12B-coder-v1.5-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 xCloudinfo/xGemable-12B-coder-v1.5-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 xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf xCloudinfo/xGemable-12B-coder-v1.5-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 xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
Use Docker
docker model run hf.co/xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use xCloudinfo/xGemable-12B-coder-v1.5-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xCloudinfo/xGemable-12B-coder-v1.5-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": "xCloudinfo/xGemable-12B-coder-v1.5-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
- Ollama
How to use xCloudinfo/xGemable-12B-coder-v1.5-GGUF with Ollama:
ollama run hf.co/xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use xCloudinfo/xGemable-12B-coder-v1.5-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xCloudinfo/xGemable-12B-coder-v1.5-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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use xCloudinfo/xGemable-12B-coder-v1.5-GGUF with Docker Model Runner:
docker model run hf.co/xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
- Lemonade
How to use xCloudinfo/xGemable-12B-coder-v1.5-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.xGemable-12B-coder-v1.5-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use xCloudinfo/xGemable-12B-coder-v1.5-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 xCloudinfo/xGemable-12B-coder-v1.5-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:8080/v1 hermes config set model.default xCloudinfo/xGemable-12B-coder-v1.5-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use xCloudinfo/xGemable-12B-coder-v1.5-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xCloudinfo/xGemable-12B-coder-v1.5-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:8080/v1 \ --custom-model-id "xCloudinfo/xGemable-12B-coder-v1.5-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"
Modelfile Q8_0: 加 TEMPLATE(關思考) + stop 標記
Browse files- Modelfile.Q8_0 +13 -7
Modelfile.Q8_0
CHANGED
|
@@ -1,5 +1,14 @@
|
|
| 1 |
FROM ./xGemable-12B-coder-v1.5-Q8_0.gguf
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# 解碼鐵則(gemma-4 極敏感,設錯會大幅劣化)
|
| 4 |
PARAMETER temperature 0.2
|
| 5 |
PARAMETER top_p 0.95
|
|
@@ -7,10 +16,7 @@ PARAMETER top_k 64
|
|
| 7 |
PARAMETER repeat_penalty 1.0
|
| 8 |
PARAMETER num_predict 1024
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
PARAMETER stop "
|
| 12 |
-
PARAMETER stop "
|
| 13 |
-
PARAMETER stop "
|
| 14 |
-
PARAMETER stop "\nHmm"
|
| 15 |
-
PARAMETER stop "\nBut wait"
|
| 16 |
-
PARAMETER stop "```\n\n"
|
|
|
|
| 1 |
FROM ./xGemable-12B-coder-v1.5-Q8_0.gguf
|
| 2 |
|
| 3 |
+
# 對話模板: gemma4 回合標記 + 預填空思考通道(關閉推敲模式)
|
| 4 |
+
TEMPLATE """{{- if .System }}<|turn>system
|
| 5 |
+
{{ .System }}<turn|>
|
| 6 |
+
{{ end }}{{- if .Prompt }}<|turn>user
|
| 7 |
+
{{ .Prompt }}<turn|>
|
| 8 |
+
{{ end }}<|turn>model
|
| 9 |
+
<|channel>thought
|
| 10 |
+
<channel|>{{ .Response }}"""
|
| 11 |
+
|
| 12 |
# 解碼鐵則(gemma-4 極敏感,設錯會大幅劣化)
|
| 13 |
PARAMETER temperature 0.2
|
| 14 |
PARAMETER top_p 0.95
|
|
|
|
| 16 |
PARAMETER repeat_penalty 1.0
|
| 17 |
PARAMETER num_predict 1024
|
| 18 |
|
| 19 |
+
# 回合結尾與通道標記即停
|
| 20 |
+
PARAMETER stop "<turn|>"
|
| 21 |
+
PARAMETER stop "<|turn>"
|
| 22 |
+
PARAMETER stop "<|channel>"
|
|
|
|
|
|
|
|
|