Text Generation
GGUF
Japanese
English
llama.cpp
Mixture of Experts
expert-pruning
intel-mac
cpu
local-agent
imatrix
conversational
Instructions to use miutti/intel-mac-local-llm 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 miutti/intel-mac-local-llm 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 miutti/intel-mac-local-llm:UD-Q2_K_XL # Run inference directly in the terminal: llama cli -hf miutti/intel-mac-local-llm:UD-Q2_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf miutti/intel-mac-local-llm:UD-Q2_K_XL # Run inference directly in the terminal: llama cli -hf miutti/intel-mac-local-llm:UD-Q2_K_XL
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 miutti/intel-mac-local-llm:UD-Q2_K_XL # Run inference directly in the terminal: ./llama-cli -hf miutti/intel-mac-local-llm:UD-Q2_K_XL
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 miutti/intel-mac-local-llm:UD-Q2_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf miutti/intel-mac-local-llm:UD-Q2_K_XL
Use Docker
docker model run hf.co/miutti/intel-mac-local-llm:UD-Q2_K_XL
- LM Studio
- Jan
- vLLM
How to use miutti/intel-mac-local-llm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "miutti/intel-mac-local-llm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "miutti/intel-mac-local-llm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/miutti/intel-mac-local-llm:UD-Q2_K_XL
- Ollama
How to use miutti/intel-mac-local-llm with Ollama:
ollama run hf.co/miutti/intel-mac-local-llm:UD-Q2_K_XL
- Unsloth Desktop
- Pi
How to use miutti/intel-mac-local-llm with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf miutti/intel-mac-local-llm:UD-Q2_K_XL
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": "miutti/intel-mac-local-llm:UD-Q2_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use miutti/intel-mac-local-llm with Docker Model Runner:
docker model run hf.co/miutti/intel-mac-local-llm:UD-Q2_K_XL
- Lemonade
How to use miutti/intel-mac-local-llm with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull miutti/intel-mac-local-llm:UD-Q2_K_XL
Run and chat with the model
lemonade run user.intel-mac-local-llm-UD-Q2_K_XL
List all available models
lemonade list
- Hermes Agent
How to use miutti/intel-mac-local-llm with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf miutti/intel-mac-local-llm:UD-Q2_K_XL
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 miutti/intel-mac-local-llm:UD-Q2_K_XL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use miutti/intel-mac-local-llm with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf miutti/intel-mac-local-llm:UD-Q2_K_XL
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 "miutti/intel-mac-local-llm:UD-Q2_K_XL" \ --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"
Download source/lib/trellis.py from miutti/intel-mac-local-llm: direct link, hf CLI and curl.
- Browser
- Download file 2.74 kB
-
https://huggingface.co/miutti/intel-mac-local-llm/resolve/main/source/lib/trellis.py
- Command line
-
hf download hf://miutti/intel-mac-local-llm/source/lib/trellis.py
-
curl -L -o trellis.py https://huggingface.co/miutti/intel-mac-local-llm/resolve/main/source/lib/trellis.py
2.74 kB
| """トレリス符号化量子化(QTIP方式の中核)。 | |
| k-means辞書の限界: k個をまとめると候補が 2^(k×bit) で爆発し、k=32が壁。 | |
| トレリスは重みを1個ずつ符号化しつつ「直近Lビットの履歴」を状態として持ち、 | |
| 系列全体の誤差が最小になる経路をViterbiで厳密に探す。 | |
| 再生値は状態番号から計算で生成するので**コードブックを保存しない**。 | |
| 高速化の鍵(ビットシフトトレリスの構造): | |
| 遷移は next = ((state << K) | code) & (2^L - 1)。 | |
| K=1 のとき、ある次状態 j の前状態は必ず 2つだけ: j>>1 と (j>>1) + 2^(L-1)。 | |
| この「バタフライ構造」のおかげで、全状態・全行を一度に配列演算で処理できる。 | |
| """ | |
| import numpy as np | |
| def gen_values(L, seed=0): | |
| """状態ごとの再生値。保存不要=シードだけで再現できる。""" | |
| rng = np.random.default_rng(seed) | |
| v = rng.standard_normal(1 << L) | |
| return ((v - v.mean()) / v.std()).astype(np.float32) | |
| def quantize_rows(X, L=10, seed=0): | |
| """X: (N, T) の各行をトレリス符号化(K=1bit/要素)。全行を同時に処理する。""" | |
| N, T = X.shape | |
| S = 1 << L | |
| H = S >> 1 | |
| vals = gen_values(L, seed) # (S,) | |
| j = np.arange(S) | |
| p0 = (j >> 1) # 前状態その1 | |
| p1 = p0 + H # 前状態その2 | |
| cost = np.zeros((N, S), np.float32) | |
| back = np.empty((T, N, S), np.bool_) # Trueなら前状態はp1側 | |
| for t in range(T): | |
| c0 = cost[:, p0] | |
| c1 = cost[:, p1] | |
| take1 = c1 < c0 | |
| back[t] = take1 | |
| base = np.where(take1, c1, c0) | |
| d = vals[None, :] - X[:, t:t + 1] | |
| cost = base + d * d | |
| # 後ろ向き復元 | |
| s = np.argmin(cost, axis=1).astype(np.int64) # (N,) | |
| out = np.empty((N, T), np.float32) | |
| rows = np.arange(N) | |
| for t in range(T - 1, -1, -1): | |
| out[:, t] = vals[s] | |
| take1 = back[t, rows, s] | |
| s = (s >> 1) + np.where(take1, H, 0) | |
| return out | |
| def quantize_matrix(W, G=256, L=10, seed=0, ls_scale=True): | |
| """行列全体。グループ(=行の一区間)ごとにスケール、中身を1bitトレリスで符号化。 | |
| 実効ビット = 1 + スケールのビット/G。""" | |
| X = W.reshape(-1, G) | |
| s = np.abs(X).max(1, keepdims=True) | |
| s[s == 0] = 1 | |
| R = quantize_rows((X / s).astype(np.float32), L=L, seed=seed) | |
| if ls_scale: | |
| num = (X * R).sum(1, keepdims=True) | |
| den = (R * R).sum(1, keepdims=True) | |
| den[den == 0] = 1 | |
| s = num / den | |
| return (R * s).reshape(W.shape).astype(np.float32), 1.0 + 8.0 / G | |