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/tools/kernel_window.swift from miutti/intel-mac-local-llm: direct link, hf CLI and curl.
- Browser
- Download file 6.32 kB
-
https://huggingface.co/miutti/intel-mac-local-llm/resolve/main/source/kernel/tools/kernel_window.swift
- Command line
-
hf download hf://miutti/intel-mac-local-llm/source/kernel/tools/kernel_window.swift
-
curl -L -o kernel_window.swift https://huggingface.co/miutti/intel-mac-local-llm/resolve/main/source/kernel/tools/kernel_window.swift
6.32 kB
| // kernel_window.swift — カーネルの窓(WKWebView)。/Applications/カーネル.app/Contents/MacOS/kernel-window の元。 | |
| // 作り方: swiftc -O -o kernel-window kernel_window.swift -framework Cocoa -framework WebKit | |
| // 10/3: 前の窓は元の文が残っておらず、メニューが無かった。macOS は「編集」メニューが無いと | |
| // ⌘C・⌘V・⌘X・⌘A が WKWebView に届かず、コピー・貼り付けができなかった(本人)。メニューを付けて作り直した。 | |
| import Cocoa | |
| import WebKit | |
| final class Mado: NSObject, NSApplicationDelegate, NSWindowDelegate, WKNavigationDelegate, WKUIDelegate { | |
| let url: URL | |
| var window: NSWindow! | |
| var web: WKWebView! | |
| init(url: URL) { self.url = url } | |
| func applicationDidFinishLaunching(_ notification: Notification) { | |
| NSApp.mainMenu = menu() | |
| let config = WKWebViewConfiguration() | |
| config.preferences.setValue(true, forKey: "developerExtrasEnabled") | |
| web = WKWebView(frame: .zero, configuration: config) | |
| web.navigationDelegate = self | |
| web.uiDelegate = self | |
| window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 1180, height: 820), | |
| styleMask: [.titled, .closable, .miniaturizable, .resizable], | |
| backing: .buffered, defer: false) | |
| window.title = "カーネル" | |
| window.contentView = web | |
| window.delegate = self | |
| window.center() | |
| window.setFrameAutosaveName("kernel-window") | |
| window.makeKeyAndOrderFront(nil) | |
| NSApp.activate(ignoringOtherApps: true) | |
| web.load(URLRequest(url: url)) | |
| } | |
| // ── メニュー(編集が無いと ⌘C・⌘V が効かない)── | |
| func menu() -> NSMenu { | |
| let main = NSMenu() | |
| func add(_ title: String, _ items: [(String, Selector?, String)]) { | |
| let top = NSMenuItem() | |
| let sub = NSMenu(title: title) | |
| for (name, action, key) in items { | |
| if name == "-" { sub.addItem(.separator()); continue } | |
| sub.addItem(NSMenuItem(title: name, action: action, keyEquivalent: key)) | |
| } | |
| top.submenu = sub | |
| main.addItem(top) | |
| } | |
| add("カーネル", [("カーネルを隠す", #selector(NSApplication.hide(_:)), "h"), ("-", nil, ""), | |
| ("カーネルを終了", #selector(NSApplication.terminate(_:)), "q")]) | |
| add("編集", [("取り消す", Selector(("undo:")), "z"), ("やり直す", Selector(("redo:")), "Z"), ("-", nil, ""), | |
| ("切り取り", #selector(NSText.cut(_:)), "x"), ("コピー", #selector(NSText.copy(_:)), "c"), | |
| ("貼り付け", #selector(NSText.paste(_:)), "v"), ("すべてを選択", #selector(NSText.selectAll(_:)), "a")]) | |
| add("表示", [("読み込み直す", #selector(reload), "r")]) | |
| add("ウインドウ", [("しまう", #selector(NSWindow.performMiniaturize(_:)), "m"), | |
| ("閉じる", #selector(NSWindow.performClose(_:)), "w")]) | |
| return main | |
| } | |
| @objc func reload() { web.reload() } | |
| // ── 閉じたら終わる。Dock を押したら前に出す ── | |
| func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { true } | |
| func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool { | |
| window.makeKeyAndOrderFront(nil) | |
| return true | |
| } | |
| // ── うちのサーバー以外へ行くリンクは、ふだんのブラウザで開く ── | |
| func webView(_ webView: WKWebView, decidePolicyFor action: WKNavigationAction, | |
| decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) { | |
| if let target = action.request.url, action.navigationType == .linkActivated, target.host != url.host { | |
| NSWorkspace.shared.open(target) | |
| decisionHandler(.cancel) | |
| return | |
| } | |
| decisionHandler(.allow) | |
| } | |
| func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, | |
| for action: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? { | |
| if let target = action.request.url { NSWorkspace.shared.open(target) } // target="_blank" | |
| return nil | |
| } | |
| // ── つながらない時は、何が起きたかを窓に出す(黙って白い窓にしない)── | |
| func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error) { | |
| FileHandle.standardError.write("kernel-window: 読み込み失敗: \(error.localizedDescription)\n".data(using: .utf8)!) | |
| webView.loadHTMLString(""" | |
| <meta charset="utf-8"><body style="font-family:-apple-system;padding:2em"> | |
| <h2>うちうちのサーバーにつながりませんでした</h2> | |
| <p>記録: <code>~/Library/Logs/kernel-ai.log</code></p> | |
| <p>いったん閉じて、もう一度アイコンを押してみてください。</p></body> | |
| """, baseURL: nil) | |
| } | |
| // ── confirm()・alert() も出す(前の窓では黙って false になっていた)── | |
| func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, | |
| initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping () -> Void) { | |
| let alert = NSAlert() | |
| alert.messageText = message | |
| alert.runModal() | |
| completionHandler() | |
| } | |
| func webView(_ webView: WKWebView, runJavaScriptConfirmPanelWithMessage message: String, | |
| initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping (Bool) -> Void) { | |
| let alert = NSAlert() | |
| alert.messageText = message | |
| alert.addButton(withTitle: "OK") | |
| alert.addButton(withTitle: "やめる") | |
| completionHandler(alert.runModal() == .alertFirstButtonReturn) | |
| } | |
| } | |
| guard CommandLine.arguments.count >= 2, let url = URL(string: CommandLine.arguments[1]) else { | |
| FileHandle.standardError.write("使い方: kernel-window <URL>\n".data(using: .utf8)!) | |
| exit(2) | |
| } | |
| let app = NSApplication.shared | |
| app.setActivationPolicy(.regular) | |
| let mado = Mado(url: url) | |
| app.delegate = mado | |
| app.run() | |