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
File size: 6,657 Bytes
82be208 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | /**
* 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);
}
}
}
|