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/kernel/bake.py from miutti/intel-mac-local-llm: direct link, hf CLI and curl.
- Browser
- Download file 3.62 kB
-
https://huggingface.co/miutti/intel-mac-local-llm/resolve/main/source/kernel/bake.py
- Command line
-
hf download hf://miutti/intel-mac-local-llm/source/kernel/bake.py
-
curl -L -o bake.py https://huggingface.co/miutti/intel-mac-local-llm/resolve/main/source/kernel/bake.py
3.62 kB
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| bake.py -- 抜いた表を「焼く」 | |
| 巨大な表(2.35GB, 7168次元)から必要な語だけ取り出し、 | |
| 次元を落として小さな表にする。以後は掛け算がほぼゼロになる。 | |
| ・次元削減はランダム射影(決定的な種を使う)。 | |
| Johnson–Lindenstrauss の定理より、内積・角度はおおむね保たれる。 | |
| ・「1トークンで引ける語」だけを焼く。分割される語は表が壊れるため除外し、 | |
| その事実を印として残す(呼び出し側が別の手段に切り替えられるように) | |
| """ | |
| import os, json, math, random, time, sys | |
| from embed_cards import EmbedCards | |
| HERE = os.path.dirname(os.path.abspath(__file__)) | |
| OUT = os.path.join(HERE, "baked_cards.json") | |
| def projection(dim_in, dim_out, seed=20260823): | |
| """決定的なランダム射影行列。列ごとに生成してメモリを節約""" | |
| rng = random.Random(seed) | |
| s = 1.0 / math.sqrt(dim_out) | |
| return [[rng.gauss(0, 1) * s for _ in range(dim_in)] for _ in range(dim_out)] | |
| def bake(words, tag="Kimi-K2-Instruct", dim_out=256, verbose=True): | |
| e = EmbedCards(tag=tag) | |
| P = projection(e.dim, dim_out) | |
| baked, skipped = {}, [] | |
| t0 = time.time() | |
| for w in words: | |
| ids = e.encode(w) | |
| if len(ids) != 1: # 1トークンで引けない語は焼かない | |
| skipped.append((w, len(ids))) | |
| continue | |
| v = e.row(ids[0]) | |
| small = [sum(p[i] * v[i] for i in range(e.dim)) for p in P] | |
| n = math.sqrt(sum(x * x for x in small)) or 1.0 | |
| baked[w] = [round(x / n, 5) for x in small] # 正規化して丸める | |
| if verbose: | |
| print(f" 焼けた: {len(baked)} 語 / 除外: {len(skipped)} 語 " | |
| f"({time.time()-t0:.1f}秒)") | |
| return baked, skipped | |
| class Baked: | |
| """焼いた表。読み込みは一瞬、比較は256次元だけ""" | |
| def __init__(self, path=OUT): | |
| d = json.load(open(path, encoding="utf-8")) | |
| self.v = d["vecs"]; self.meta = d["meta"] | |
| def has(self, w): return w in self.v | |
| def similarity(self, a, b): | |
| va, vb = self.v.get(a), self.v.get(b) | |
| if not va or not vb: return None # 引けない=別の手段へ | |
| return sum(x * y for x, y in zip(va, vb)) # すでに正規化済み | |
| def nearest(self, w, candidates): | |
| va = self.v.get(w) | |
| if not va: return None, 0.0 | |
| best, sc = None, -2.0 | |
| for c in candidates: | |
| vb = self.v.get(c) | |
| if not vb: continue | |
| s = sum(x * y for x, y in zip(va, vb)) | |
| if s > sc: best, sc = c, s | |
| return best, sc | |
| if __name__ == "__main__": | |
| import kernel | |
| # 焼く対象=エンジンが知っている語+概念の値+動作でよく使う語 | |
| words = set(kernel.SEED.keys()) | |
| for slot, vals in kernel.vocab_table().items(): | |
| words.update(vals) | |
| words.update(["猫","犬","石","川","橋","箸","写真","画像","動画","音楽", | |
| "移動","削除","整理","複製","検索","一覧","合計","重複", | |
| "書類","資料","保存","作成","変更","確認"]) | |
| words = sorted(w for w in words if w) | |
| print(f"■ 焼く語: {len(words)} 語") | |
| baked, skipped = bake(words) | |
| json.dump({"meta": {"source": "Kimi-K2-Instruct", "dim": 256, | |
| "skipped": skipped}, "vecs": baked}, | |
| open(OUT, "w", encoding="utf-8"), ensure_ascii=False) | |
| print(f" → {OUT} ({os.path.getsize(OUT)/1e6:.1f} MB)") | |