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-context-gauge.svelte.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 4.4 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-context-gauge.svelte.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/hooks/use-context-gauge.svelte.ts
-
curl -L -o use-context-gauge.svelte.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/hooks/use-context-gauge.svelte.ts
4.4 kB
| /** | |
| * View layer over contextStatsStore for the context usage gauge: adds | |
| * color levels, transient detail formatting, on-demand /props fetching | |
| * and model loading on top of the store's token stats. | |
| */ | |
| import { useProcessingState } from './use-processing-state.svelte'; | |
| import { colorLevelFromPercent } from '$lib/components/app/chat/ChatForm/ChatFormContextGauge/context-gauge'; | |
| import { STATS_UNITS } from '$lib/constants'; | |
| import { ColorLevel } from '$lib/enums'; | |
| import { contextStatsStore, modelsStore } from '$lib/stores'; | |
| export interface UseContextGaugeReturn { | |
| readonly activeModelId: string | null; | |
| readonly isActiveModelLoaded: boolean; | |
| readonly isActiveModelLoading: boolean; | |
| readonly contextTotal: number | null; | |
| readonly contextUsed: number; | |
| readonly contextAvailable: number | null; | |
| readonly currentRead: number; | |
| readonly currentFresh: number; | |
| readonly currentCache: number; | |
| readonly currentOutput: number; | |
| readonly kvTotal: number; | |
| readonly cumulativeRead: number; | |
| readonly cumulativeOutput: number; | |
| readonly cumulativeCacheTotal: number; | |
| readonly averageTokensPerSecond: number | null; | |
| readonly contextPercent: number | null; | |
| readonly colorLevel: ColorLevel; | |
| readonly transientDetails: string[]; | |
| readonly hasAnyUsage: boolean; | |
| loadModel(): Promise<void>; | |
| startMonitoring(): void; | |
| } | |
| const TRANSIENT_DETAILS_EXCLUDED_PREFIXES = ['Context:', 'Output:']; | |
| function filterTransientDetails(raw: string[]): string[] { | |
| return raw.filter((detail) => { | |
| if (TRANSIENT_DETAILS_EXCLUDED_PREFIXES.some((prefix) => detail.startsWith(prefix))) { | |
| return false; | |
| } | |
| return !detail.includes(STATS_UNITS.TOKENS_PER_SECOND); | |
| }); | |
| } | |
| export function useContextGauge(): UseContextGaugeReturn { | |
| const processingState = useProcessingState(); | |
| // Pull /props on demand so n_ctx surfaces before the first chat request. | |
| $effect(() => { | |
| const modelId = contextStatsStore.activeModelId; | |
| if (modelId && contextStatsStore.isActiveModelLoaded) { | |
| const cached = modelsStore.props.getModelProps(modelId); | |
| if (!cached) { | |
| void modelsStore.props.fetchModelProps(modelId); | |
| } | |
| } | |
| }); | |
| const colorLevel = $derived(colorLevelFromPercent(contextStatsStore.contextPercent)); | |
| // Drop lines the surrounding Context / Output / speed rows already render. | |
| const transientDetails = $derived(filterTransientDetails(processingState.getTechnicalDetails())); | |
| const hasAnyUsage = $derived( | |
| contextStatsStore.cumulativeRead > 0 || | |
| contextStatsStore.cumulativeOutput > 0 || | |
| contextStatsStore.currentRead > 0 || | |
| contextStatsStore.currentOutput > 0 || | |
| contextStatsStore.averageTokensPerSecond !== null || | |
| transientDetails.length > 0 | |
| ); | |
| async function loadModel() { | |
| const modelId = contextStatsStore.activeModelId; | |
| if (!modelId || contextStatsStore.isActiveModelLoading) return; | |
| try { | |
| await modelsStore.status.load(modelId); | |
| } catch { | |
| // toast already surfaced by modelsStore.status.load | |
| } | |
| } | |
| return { | |
| get activeModelId() { | |
| return contextStatsStore.activeModelId; | |
| }, | |
| get averageTokensPerSecond() { | |
| return contextStatsStore.averageTokensPerSecond; | |
| }, | |
| get colorLevel() { | |
| return colorLevel; | |
| }, | |
| get contextAvailable() { | |
| return contextStatsStore.contextAvailable; | |
| }, | |
| get contextPercent() { | |
| return contextStatsStore.contextPercent; | |
| }, | |
| get contextTotal() { | |
| return contextStatsStore.contextTotal; | |
| }, | |
| get contextUsed() { | |
| return contextStatsStore.contextUsed; | |
| }, | |
| get cumulativeCacheTotal() { | |
| return contextStatsStore.cumulativeCacheTotal; | |
| }, | |
| get cumulativeOutput() { | |
| return contextStatsStore.cumulativeOutput; | |
| }, | |
| get cumulativeRead() { | |
| return contextStatsStore.cumulativeRead; | |
| }, | |
| get currentCache() { | |
| return contextStatsStore.currentCache; | |
| }, | |
| get currentFresh() { | |
| return contextStatsStore.currentFresh; | |
| }, | |
| get currentOutput() { | |
| return contextStatsStore.currentOutput; | |
| }, | |
| get currentRead() { | |
| return contextStatsStore.currentRead; | |
| }, | |
| get hasAnyUsage() { | |
| return hasAnyUsage; | |
| }, | |
| get isActiveModelLoaded() { | |
| return contextStatsStore.isActiveModelLoaded; | |
| }, | |
| get isActiveModelLoading() { | |
| return contextStatsStore.isActiveModelLoading; | |
| }, | |
| get kvTotal() { | |
| return contextStatsStore.kvTotal; | |
| }, | |
| loadModel, | |
| startMonitoring: () => processingState.startMonitoring(), | |
| get transientDetails() { | |
| return transientDetails; | |
| } | |
| }; | |
| } | |