Instructions to use Felipe97/llama-cpp-compiled 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 Felipe97/llama-cpp-compiled 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 Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Felipe97/llama-cpp-compiled # Run inference directly in the terminal: llama cli -hf Felipe97/llama-cpp-compiled
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 Felipe97/llama-cpp-compiled # Run inference directly in the terminal: ./build/bin/llama cli -hf Felipe97/llama-cpp-compiled
Use Docker
docker model run hf.co/Felipe97/llama-cpp-compiled
- Llama new
- LM Studio
- Jan
- Ollama
How to use Felipe97/llama-cpp-compiled with Ollama:
ollama run hf.co/Felipe97/llama-cpp-compiled
- Unsloth Desktop
- Docker Model Runner
How to use Felipe97/llama-cpp-compiled with Docker Model Runner:
docker model run hf.co/Felipe97/llama-cpp-compiled
- Lemonade
How to use Felipe97/llama-cpp-compiled with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Felipe97/llama-cpp-compiled
Run and chat with the model
lemonade run user.llama-cpp-compiled-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download tools/server/tests/fixtures/mcp_grandchild_server.py from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 3.15 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/server/tests/fixtures/mcp_grandchild_server.py
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/server/tests/fixtures/mcp_grandchild_server.py
-
curl -L -o mcp_grandchild_server.py https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/server/tests/fixtures/mcp_grandchild_server.py
3.15 kB
| #!/usr/bin/env python3 | |
| """ | |
| MCP server (NDJSON JSON-RPC over stdio) that spawns a long-lived grandchild which inherits | |
| this process's stdin/stdout/stderr and keeps them open. | |
| This reproduces the reader-teardown deadlock: killing the direct MCP child (SIGKILL, which is | |
| all subprocess_terminate() does) does NOT close the stdout/stderr pipe write ends, because the | |
| grandchild still holds them. A server that reads those pipes with a blocking read would then | |
| wait forever for an EOF that never arrives, hanging teardown (both warmup shutdown at startup | |
| and process shutdown). The polled, running-aware reader must exit regardless. | |
| """ | |
| import json | |
| import os | |
| import subprocess | |
| import sys | |
| # Spawn a grandchild that inherits our std handles (fds 0/1/2 = the MCP pipes) and lives well | |
| # past any teardown in the tests. We do NOT redirect its stdio, so it keeps the pipe write ends | |
| # open even after this process is killed. | |
| subprocess.Popen([sys.executable, "-c", "import time; time.sleep(30)"]) | |
| TOOLS = [ | |
| { | |
| "name": "echo", | |
| "description": "Echo back the input message", | |
| "inputSchema": { | |
| "type": "object", | |
| "properties": {"message": {"type": "string", "description": "Message to echo"}}, | |
| "required": ["message"], | |
| }, | |
| } | |
| ] | |
| def handle_initialize(params, req_id): | |
| return { | |
| "jsonrpc": "2.0", | |
| "id": req_id, | |
| "result": { | |
| "protocolVersion": "2024-11-05", | |
| "capabilities": {"tools": {}}, | |
| "serverInfo": {"name": "grandchild-test", "version": "1.0"}, | |
| }, | |
| } | |
| def handle_tools_list(params, req_id): | |
| return {"jsonrpc": "2.0", "id": req_id, "result": {"tools": TOOLS}} | |
| def handle_tools_call(params, req_id): | |
| if params.get("name") == "echo": | |
| message = params.get("arguments", {}).get("message", "") | |
| return { | |
| "jsonrpc": "2.0", | |
| "id": req_id, | |
| "result": {"content": [{"type": "text", "text": f"echo: {message}"}]}, | |
| } | |
| return {"jsonrpc": "2.0", "id": req_id, "error": {"code": -32602, "message": "Unknown tool"}} | |
| HANDLERS = { | |
| "initialize": handle_initialize, | |
| "tools/list": handle_tools_list, | |
| "tools/call": handle_tools_call, | |
| } | |
| def main(): | |
| sys.stdout = os.fdopen(sys.stdout.fileno(), "w", buffering=1) | |
| sys.stderr = os.fdopen(sys.stderr.fileno(), "w", buffering=1) | |
| for line in sys.stdin: | |
| line = line.strip() | |
| if not line: | |
| continue | |
| try: | |
| request = json.loads(line) | |
| except json.JSONDecodeError: | |
| continue | |
| method = request.get("method") | |
| req_id = request.get("id") | |
| params = request.get("params", {}) | |
| if req_id is None: | |
| continue # notification, no response | |
| handler = HANDLERS.get(method) | |
| if handler: | |
| response = handler(params, req_id) | |
| else: | |
| response = {"jsonrpc": "2.0", "id": req_id, "error": {"code": -32601, "message": f"Method not found: {method}"}} | |
| sys.stdout.write(json.dumps(response) + "\n") | |
| sys.stdout.flush() | |
| if __name__ == "__main__": | |
| main() | |