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-keyboard-shortcuts.svelte.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.91 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-keyboard-shortcuts.svelte.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/hooks/use-keyboard-shortcuts.svelte.ts
-
curl -L -o use-keyboard-shortcuts.svelte.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-keyboard-shortcuts.svelte.ts
2.91 kB
| import { page } from '$app/state'; | |
| import { NEW_CHAT_TAB_ID } from '$lib/constants'; | |
| import { KeyboardKey } from '$lib/enums'; | |
| import { conversationsStore, settingsStore, tabsStore } from '$lib/stores'; | |
| interface KeyboardShortcutsCallbacks { | |
| activateSearchMode?: () => void; | |
| editActiveConversation?: () => void; | |
| onSearchActivated?: () => void; | |
| deleteActiveConversation?: () => void; | |
| navigateToPrevConversation?: () => void; | |
| navigateToNextConversation?: () => void; | |
| navigateToPrevTab?: () => void; | |
| navigateToNextTab?: () => void; | |
| toggleSidebar?: () => void; | |
| } | |
| export function useKeyboardShortcuts(callbacks: KeyboardShortcutsCallbacks) { | |
| function handleKeydown(event: KeyboardEvent) { | |
| const isCmdOrCtrl = event.metaKey || event.ctrlKey; | |
| if (isCmdOrCtrl && event.key === KeyboardKey.K_LOWER) { | |
| event.preventDefault(); | |
| callbacks.activateSearchMode?.(); | |
| callbacks.onSearchActivated?.(); | |
| } | |
| if (isCmdOrCtrl && event.key === KeyboardKey.B_LOWER) { | |
| event.preventDefault(); | |
| callbacks.toggleSidebar?.(); | |
| } | |
| if ( | |
| isCmdOrCtrl && | |
| event.shiftKey && | |
| (event.key === KeyboardKey.O_LOWER || event.key === KeyboardKey.O_UPPER) | |
| ) { | |
| event.preventDefault(); | |
| void conversationsStore.openNewChat(); | |
| } | |
| if (event.shiftKey && isCmdOrCtrl && event.key === KeyboardKey.E_UPPER) { | |
| event.preventDefault(); | |
| callbacks.editActiveConversation?.(); | |
| } | |
| if ( | |
| event.shiftKey && | |
| isCmdOrCtrl && | |
| (event.key === KeyboardKey.X_LOWER || event.key === KeyboardKey.X_UPPER) | |
| ) { | |
| // several components register this shortcut; only let the first handler | |
| // act so the synchronous navigation does not cascade-close every tab | |
| if (event.defaultPrevented) return; | |
| // close-tab only makes sense with conversation tabs enabled | |
| if (!settingsStore.config.conversationTabs) return; | |
| event.preventDefault(); | |
| const activeId = | |
| page.params.id ?? (page.route.id === '/(chat)' ? NEW_CHAT_TAB_ID : undefined); | |
| if (activeId) { | |
| void tabsStore.close(activeId, activeId); | |
| } | |
| } | |
| if ( | |
| isCmdOrCtrl && | |
| event.shiftKey && | |
| (event.key === KeyboardKey.D_LOWER || event.key === KeyboardKey.D_UPPER) | |
| ) { | |
| event.preventDefault(); | |
| callbacks.deleteActiveConversation?.(); | |
| } | |
| if (isCmdOrCtrl && event.shiftKey && event.key === KeyboardKey.ARROW_UP) { | |
| event.preventDefault(); | |
| callbacks.navigateToPrevConversation?.(); | |
| } | |
| if (isCmdOrCtrl && event.shiftKey && event.key === KeyboardKey.ARROW_DOWN) { | |
| event.preventDefault(); | |
| callbacks.navigateToNextConversation?.(); | |
| } | |
| if (isCmdOrCtrl && event.altKey && event.shiftKey && event.code === KeyboardKey.BRACKET_LEFT) { | |
| event.preventDefault(); | |
| callbacks.navigateToPrevTab?.(); | |
| } | |
| if (isCmdOrCtrl && event.altKey && event.shiftKey && event.code === KeyboardKey.BRACKET_RIGHT) { | |
| event.preventDefault(); | |
| callbacks.navigateToNextTab?.(); | |
| } | |
| } | |
| return { handleKeydown }; | |
| } | |