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/hooks/use-picker-navigation.svelte.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.61 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-picker-navigation.svelte.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/hooks/use-picker-navigation.svelte.ts
-
curl -L -o use-picker-navigation.svelte.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-picker-navigation.svelte.ts
2.61 kB
| import { KeyboardKey } from '$lib/enums'; | |
| /** | |
| * Shared keyboard navigation state for the chat-form pickers: a highlighted | |
| * row, a scroll trigger, and Arrow/Escape/Enter handling. | |
| */ | |
| export interface UsePickerNavigationOptions { | |
| /** Gates all key handling. */ | |
| isOpen: () => boolean; | |
| count: () => number; | |
| /** | |
| * Resolve the row to highlight for a movement step, or -1 when no move | |
| * is possible. Defaults to plain wraparound across `count()`. | |
| */ | |
| step?: (from: number, dir: 1 | -1) => number; | |
| onClose: () => void; | |
| /** Called on Enter when `hoveredIndex` points at a selectable row. */ | |
| onSelect: (index: number) => void; | |
| } | |
| function wrapStep(from: number, dir: 1 | -1, count: number): number { | |
| return dir === 1 ? (from + 1) % count : from <= 0 ? count - 1 : from - 1; | |
| } | |
| export function usePickerNavigation(opts: UsePickerNavigationOptions) { | |
| let hoveredIndex = $state(-1); | |
| let scrollTrigger = $state(0); | |
| function resolve(from: number, dir: 1 | -1): number { | |
| const n = opts.count(); | |
| if (n === 0) return -1; | |
| if (opts.step) return opts.step(from, dir); | |
| return wrapStep(from, dir, n); | |
| } | |
| function move(dir: 1 | -1) { | |
| const next = resolve(hoveredIndex, dir); | |
| if (next >= 0) { | |
| hoveredIndex = next; | |
| scrollTrigger++; | |
| } | |
| } | |
| /** Reset the highlight without bumping the scroll trigger. */ | |
| function reset(index: number) { | |
| hoveredIndex = index; | |
| } | |
| /** Bump the scroll trigger without moving the highlight. */ | |
| function bumpScroll() { | |
| scrollTrigger++; | |
| } | |
| /** Mouse hover highlights a row but must NOT bump the scroll trigger. */ | |
| function setHover(index: number) { | |
| hoveredIndex = index; | |
| } | |
| function handleKeydown(event: KeyboardEvent): boolean { | |
| if (!opts.isOpen()) return false; | |
| if (event.key === KeyboardKey.ESCAPE) { | |
| event.preventDefault(); | |
| opts.onClose(); | |
| return true; | |
| } | |
| if (event.key === KeyboardKey.ARROW_DOWN) { | |
| event.preventDefault(); | |
| move(1); | |
| return true; | |
| } | |
| if (event.key === KeyboardKey.ARROW_UP) { | |
| event.preventDefault(); | |
| move(-1); | |
| return true; | |
| } | |
| if (event.key === KeyboardKey.ENTER) { | |
| if (hoveredIndex >= 0 && hoveredIndex < opts.count()) { | |
| event.preventDefault(); | |
| opts.onSelect(hoveredIndex); | |
| return true; | |
| } | |
| // No selectable row - let the caller's Enter-to-submit run. | |
| return false; | |
| } | |
| return false; | |
| } | |
| return { | |
| bumpScroll, | |
| handleKeydown, | |
| get hoveredIndex() { | |
| return hoveredIndex; | |
| }, | |
| move, | |
| reset, | |
| get scrollTrigger() { | |
| return scrollTrigger; | |
| }, | |
| setHover | |
| }; | |
| } | |
| export type UsePickerNavigationReturn = ReturnType<typeof usePickerNavigation>; | |