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/stores/agentic/gates.svelte.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 6.66 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/stores/agentic/gates.svelte.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/stores/agentic/gates.svelte.ts
-
curl -L -o gates.svelte.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/stores/agentic/gates.svelte.ts
6.66 kB
| /** | |
| * AgenticGates - User interaction gates for the agentic loop | |
| * | |
| * Owns the state the loop waits on between turns: tool permission requests, | |
| * turn-limit continue prompts and queued steering messages. The loop awaits | |
| * requestPermission/requestContinue; the UI resolves them through | |
| * resolvePermission/resolveContinue. Owned by agenticStore, no host coupling. | |
| */ | |
| import { ToolPermissionDecision } from '$lib/enums'; | |
| // direct imports between stores, not via the barrel, to avoid circular deps | |
| import { permissionsStore } from '$lib/stores/permissions.svelte'; | |
| import { toolsStore } from '$lib/stores/tools.svelte'; | |
| import type { DatabaseMessageExtra, SteeringMessage } from '$lib/types'; | |
| import { SvelteMap } from 'svelte/reactivity'; | |
| export class AgenticGates { | |
| /** Resolve functions for pending continue Promises; nothing derives from this map */ | |
| private continueResolvers = new SvelteMap<string, (shouldContinue: boolean) => void>(); | |
| /** Dedicated reactive state for pending continue requests (turn limit reached) */ | |
| private pendingContinueRequests = new SvelteMap<string, boolean>(); | |
| /** Dedicated reactive state for pending permission requests (ensures immediate UI updates) */ | |
| private pendingPermissions = new SvelteMap< | |
| string, | |
| { toolName: string; serverLabel: string } | null | |
| >(); | |
| /** Resolve functions for pending permission Promises; nothing derives from this map */ | |
| private permissionResolvers = new SvelteMap<string, (decision: ToolPermissionDecision) => void>(); | |
| /** Reactive: queued steering messages to inject between turns */ | |
| private steeringMessages = new SvelteMap<string, SteeringMessage>(); | |
| /** | |
| * Drop all pending gate state for a conversation, e.g. when a flow exits. | |
| */ | |
| clear(conversationId: string): void { | |
| this.pendingPermissions.set(conversationId, null); | |
| this.permissionResolvers.delete(conversationId); | |
| this.pendingContinueRequests.set(conversationId, false); | |
| this.continueResolvers.delete(conversationId); | |
| this.steeringMessages.delete(conversationId); | |
| } | |
| /** | |
| * Clear the pending steering message without consuming it. | |
| */ | |
| clearSteeringMessage(conversationId: string): void { | |
| this.steeringMessages.delete(conversationId); | |
| } | |
| /** | |
| * Consume and return the pending steering message for re-sending. | |
| * Called by chatStore after the agentic flow exits. | |
| */ | |
| consumePendingSteeringMessage(conversationId: string): SteeringMessage | null { | |
| const msg = this.steeringMessages.get(conversationId); | |
| if (!msg) return null; | |
| this.steeringMessages.delete(conversationId); | |
| return msg; | |
| } | |
| getPendingContinueRequest(conversationId: string): boolean { | |
| return this.pendingContinueRequests.get(conversationId) ?? false; | |
| } | |
| getPendingPermissionRequest( | |
| conversationId: string | |
| ): { toolName: string; serverLabel: string } | null { | |
| return this.pendingPermissions.get(conversationId) ?? null; | |
| } | |
| getPendingSteeringMessageContent(conversationId: string): string | null { | |
| return this.steeringMessages.get(conversationId)?.content ?? null; | |
| } | |
| getPendingSteeringMessageExtras(conversationId: string): DatabaseMessageExtra[] | undefined { | |
| return this.steeringMessages.get(conversationId)?.extras; | |
| } | |
| hasPendingSteeringMessage(conversationId: string): boolean { | |
| return this.steeringMessages.has(conversationId); | |
| } | |
| /** | |
| * Queue a steering message. When the current agentic turn completes, | |
| * the flow exits and the caller re-sends the message as a normal chat message. | |
| */ | |
| injectSteeringMessage( | |
| conversationId: string, | |
| content: string, | |
| extras?: DatabaseMessageExtra[] | |
| ): void { | |
| this.steeringMessages.set(conversationId, { content, extras }); | |
| } | |
| async requestContinue(conversationId: string, signal?: AbortSignal): Promise<boolean> { | |
| this.pendingContinueRequests.set(conversationId, true); | |
| return new Promise<boolean>((resolve) => { | |
| if (signal?.aborted) { | |
| this.pendingContinueRequests.set(conversationId, false); | |
| resolve(false); | |
| return; | |
| } | |
| this.continueResolvers.set(conversationId, (shouldContinue) => { | |
| this.pendingContinueRequests.set(conversationId, false); | |
| resolve(shouldContinue); | |
| }); | |
| signal?.addEventListener( | |
| 'abort', | |
| () => { | |
| const resolver = this.continueResolvers.get(conversationId); | |
| if (resolver) { | |
| this.continueResolvers.delete(conversationId); | |
| this.pendingContinueRequests.set(conversationId, false); | |
| resolve(false); | |
| } | |
| }, | |
| { once: true } | |
| ); | |
| }); | |
| } | |
| async requestPermission( | |
| conversationId: string, | |
| toolName: string, | |
| serverLabel: string, | |
| signal?: AbortSignal | |
| ): Promise<ToolPermissionDecision> { | |
| const permissionKey = toolsStore.getPermissionKey(toolName); | |
| if (permissionKey && permissionsStore.hasTool(permissionKey)) { | |
| return ToolPermissionDecision.ONCE; | |
| } | |
| this.pendingPermissions.set(conversationId, { serverLabel, toolName }); | |
| return new Promise<ToolPermissionDecision>((resolve) => { | |
| if (signal?.aborted) { | |
| this.pendingPermissions.set(conversationId, null); | |
| resolve(ToolPermissionDecision.DENY); | |
| return; | |
| } | |
| this.permissionResolvers.set(conversationId, (decision) => { | |
| this.pendingPermissions.set(conversationId, null); | |
| if (decision === ToolPermissionDecision.ALWAYS && permissionKey) { | |
| permissionsStore.allowTool(permissionKey); | |
| } else if (decision === ToolPermissionDecision.ALWAYS_SERVER) { | |
| const serverToolKeys = toolsStore.allTools | |
| .filter((t) => | |
| t.serverName | |
| ? t.serverName === serverLabel | |
| : toolsStore.getToolServerLabel(t.definition.function.name) === serverLabel | |
| ) | |
| .map((t) => toolsStore.getPermissionKey(t.definition.function.name)!) | |
| .filter((k): k is string => k !== null); | |
| permissionsStore.allowTools(serverToolKeys); | |
| } | |
| resolve(decision); | |
| }); | |
| signal?.addEventListener( | |
| 'abort', | |
| () => { | |
| const resolver = this.permissionResolvers.get(conversationId); | |
| if (resolver) { | |
| this.permissionResolvers.delete(conversationId); | |
| this.pendingPermissions.set(conversationId, null); | |
| resolve(ToolPermissionDecision.DENY); | |
| } | |
| }, | |
| { once: true } | |
| ); | |
| }); | |
| } | |
| resolveContinue(conversationId: string, shouldContinue: boolean): void { | |
| const resolver = this.continueResolvers.get(conversationId); | |
| if (resolver) { | |
| this.continueResolvers.delete(conversationId); | |
| resolver(shouldContinue); | |
| } | |
| } | |
| resolvePermission(conversationId: string, decision: ToolPermissionDecision): void { | |
| const resolver = this.permissionResolvers.get(conversationId); | |
| if (resolver) { | |
| this.permissionResolvers.delete(conversationId); | |
| resolver(decision); | |
| } | |
| } | |
| } | |