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/ui/src/lib/services/read-media.service.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 3.85 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/services/read-media.service.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/services/read-media.service.ts
-
curl -L -o read-media.service.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/services/read-media.service.ts
3.85 kB
| /** | |
| * ReadMediaService - Reads local media files for the read_media tool | |
| * | |
| * Encodes image and audio files as base64 data URLs with the metadata the | |
| * model needs. No reactive state; consumed by toolsStore. | |
| */ | |
| import { ToolsService } from './tools.service'; | |
| import { | |
| FILE_EXTENSION_SEPARATOR, | |
| FILE_PATH_SEPARATOR_REGEX, | |
| NEWLINE, | |
| PREFIX_FILE, | |
| PREFIX_MIME, | |
| PREFIX_SIZE, | |
| READ_MEDIA_AUDIO_MIME, | |
| READ_MEDIA_IMAGE_MIME, | |
| RESP_TYPE_BASE64 | |
| } from '$lib/constants'; | |
| import { BuiltInTool, ToolResponseField } from '$lib/enums'; | |
| import type { ToolExecutionResult } from '$lib/types'; | |
| /** Modalities of the model the tool call runs for. */ | |
| export interface ReadMediaCapabilities { | |
| audio: boolean; | |
| vision: boolean; | |
| } | |
| /** Lowercase extension of a path, without the dot. Empty when the file name has none. */ | |
| function fileExtension(path: string): string { | |
| const name = path.split(FILE_PATH_SEPARATOR_REGEX).pop() ?? ''; | |
| const dot = name.lastIndexOf(FILE_EXTENSION_SEPARATOR); | |
| return dot > 0 ? name.slice(dot + 1).toLowerCase() : ''; | |
| } | |
| /** | |
| * **ReadMediaService** - browser executor for the `read_media` tool | |
| * | |
| * The tool is synthetic: no such tool exists on the server. It reads the file | |
| * through the server `read_file` tool with the `base64` response type, then | |
| * turns the bytes into a data URI line. The agentic store lifts that line into | |
| * an image or audio attachment on the tool result message, which is what makes | |
| * the model perceive the file instead of reading a wall of base64. | |
| * | |
| * Living in the browser is what lets it exist only for models that can | |
| * actually use the result - the server has no idea which model is selected. | |
| * | |
| * @see buildReadMediaToolDefinition in constants/read-media.ts - tool schema sent to the LLM | |
| * @see agenticStore in stores/agentic/index.svelte.ts - tool dispatch and attachment extraction | |
| */ | |
| export class ReadMediaService { | |
| static async executeTool( | |
| params: Record<string, unknown>, | |
| capabilities: ReadMediaCapabilities, | |
| signal?: AbortSignal, | |
| cwd?: string | |
| ): Promise<ToolExecutionResult> { | |
| const path = typeof params.path === 'string' ? params.path : ''; | |
| if (!path) { | |
| return { content: 'Error: missing "path" argument.', isError: true }; | |
| } | |
| const extension = fileExtension(path); | |
| const imageMime = READ_MEDIA_IMAGE_MIME[extension]; | |
| const audioMime = READ_MEDIA_AUDIO_MIME[extension]; | |
| let resolvedMime: string | undefined; | |
| if (imageMime && capabilities.vision) resolvedMime = imageMime; | |
| else if (audioMime && capabilities.audio) resolvedMime = audioMime; | |
| if (!resolvedMime) { | |
| const supported = [ | |
| ...(capabilities.vision ? Object.keys(READ_MEDIA_IMAGE_MIME) : []), | |
| ...(capabilities.audio ? Object.keys(READ_MEDIA_AUDIO_MIME) : []) | |
| ]; | |
| // an unreadable-by-this-model file is a dead end, so say why instead of failing silently | |
| const reason = | |
| imageMime || audioMime | |
| ? `the current model cannot perceive ".${extension}" files` | |
| : `".${extension}" is not a supported media type`; | |
| return { | |
| content: `Error: ${reason}. Supported: ${supported.join(', ')}.`, | |
| isError: true | |
| }; | |
| } | |
| const raw = await ToolsService.executeToolRaw( | |
| BuiltInTool.SERVER_READ_FILE, | |
| { path }, | |
| signal, | |
| cwd, | |
| RESP_TYPE_BASE64 | |
| ); | |
| if (ToolResponseField.ERROR in raw) { | |
| return { content: String(raw[ToolResponseField.ERROR]), isError: true }; | |
| } | |
| const base64 = typeof raw.base64 === 'string' ? raw.base64 : ''; | |
| if (!base64) { | |
| return { content: `Error: no data returned for ${path}.`, isError: true }; | |
| } | |
| const sizeBytes = typeof raw.size_bytes === 'number' ? raw.size_bytes : 0; | |
| const content = [ | |
| `${PREFIX_FILE}${path}`, | |
| `${PREFIX_SIZE}${sizeBytes} bytes`, | |
| `${PREFIX_MIME}${resolvedMime}`, | |
| `data:${resolvedMime};base64,${base64}` | |
| ].join(NEWLINE); | |
| return { content, isError: false }; | |
| } | |
| } | |