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-pwa.svelte.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.63 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-pwa.svelte.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/hooks/use-pwa.svelte.ts
-
curl -L -o use-pwa.svelte.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-pwa.svelte.ts
2.63 kB
| import { browser } from '$app/environment'; | |
| import { BUILD_VERSION_LOCALSTORAGE_KEY, SW_CONFIG } from '$lib/constants'; | |
| import { versionStore } from '$lib/stores'; | |
| import { useRegisterSW } from 'virtual:pwa-register/svelte'; | |
| /** | |
| * Hook for PWA service worker registration, update polling, and build version mismatch detection. | |
| * | |
| * Combines two concerns that always belong together: | |
| * 1. SW registration with periodic polling for updates | |
| * 2. localStorage-based version tracking for non-PWA users | |
| */ | |
| export function usePwa() { | |
| let swCheckInterval: ReturnType<typeof setInterval> | null = null; | |
| let needRefreshByStorage = $state(false); | |
| const { | |
| // offlineReady, // to do - add installation banners for iOS | |
| needRefresh: pwaNeedRefresh, | |
| updateServiceWorker | |
| } = useRegisterSW({ | |
| onRegisteredSW(swUrl: string, r: ServiceWorkerRegistration | undefined) { | |
| if (swCheckInterval) { | |
| clearInterval(swCheckInterval); | |
| } | |
| swCheckInterval = setInterval(async () => { | |
| if (!r || r.installing || !navigator?.onLine) return; | |
| try { | |
| const resp = await fetch(swUrl, { | |
| cache: SW_CONFIG.UPDATE_FETCH_OPTIONS.CACHE, | |
| headers: { | |
| cache: SW_CONFIG.UPDATE_FETCH_OPTIONS.HEADERS.CACHE, | |
| 'cache-control': SW_CONFIG.UPDATE_FETCH_OPTIONS.HEADERS.CACHE_CONTROL | |
| } | |
| }); | |
| if (resp?.status === 200) { | |
| await r.update(); | |
| } | |
| } catch (e) { | |
| console.error(e); | |
| } | |
| }, SW_CONFIG.CHECK_INTERVAL_MS); | |
| }, | |
| onRegisterError(error: unknown) { | |
| console.error('[PWA] SW registration error:', error); | |
| } | |
| }); | |
| // Detect version mismatch via localStorage. | |
| // _app/version.json is SvelteKit's native version file for PWA cache invalidation. | |
| // This comparison detects server upgrades for non-PWA users. | |
| $effect(() => { | |
| if (!browser) return; | |
| // PWA pages update via the service worker path; the storage check is the non-PWA fallback only | |
| if (navigator.serviceWorker?.controller) return; | |
| const currentVersion = versionStore.frontend; | |
| if (!currentVersion) return; | |
| try { | |
| const storedVersion = localStorage.getItem(BUILD_VERSION_LOCALSTORAGE_KEY); | |
| needRefreshByStorage = !!storedVersion && storedVersion !== currentVersion; | |
| localStorage.setItem(BUILD_VERSION_LOCALSTORAGE_KEY, currentVersion); | |
| } catch { | |
| needRefreshByStorage = false; | |
| } | |
| }); | |
| return { | |
| /** Writable that is true when a PWA service worker update is available */ | |
| get needRefresh() { | |
| return pwaNeedRefresh; | |
| }, | |
| /** Version mismatch detected via localStorage (non-PWA users) */ | |
| get needRefreshByStorage() { | |
| return needRefreshByStorage; | |
| }, | |
| updateServiceWorker | |
| }; | |
| } | |