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/components/app/chat/ChatMessages/ChatMessages.svelte from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 9.06 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessages.svelte
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessages.svelte
-
curl -L -o ChatMessages.svelte https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessages.svelte
9.06 kB
| <script lang="ts"> | |
| import LazyChatMessage from './LazyChatMessage.svelte'; | |
| import { ChatMessageUserPending } from '$lib/components/app'; | |
| import { MessageRole } from '$lib/enums'; | |
| import { agenticStore, chatStore, conversationsStore, settingsStore } from '$lib/stores'; | |
| import type { ChatMessageActions } from '$lib/types'; | |
| import { | |
| buildSiblingInfoMap, | |
| copyToClipboard, | |
| formatMessageForClipboard, | |
| hasAgenticContent | |
| } from '$lib/utils'; | |
| interface Props { | |
| messages?: DatabaseMessage[]; | |
| onUserAction?: () => void; | |
| onMessagesReady?: (messageCount: number) => void; | |
| } | |
| let { messages = [], onMessagesReady, onUserAction }: Props = $props(); | |
| let allConversationMessages = $state<DatabaseMessage[]>([]); | |
| const currentConfig = settingsStore.config; | |
| const chatActions: ChatMessageActions = { | |
| continueAssistantMessage: async (message: DatabaseMessage) => { | |
| onUserAction?.(); | |
| await chatStore.continueAssistantMessage(message.id); | |
| refreshAllMessages(); | |
| }, | |
| copy: async (message: DatabaseMessage, contentOverride?: string) => { | |
| const asPlainText = Boolean(currentConfig.copyTextAttachmentsAsPlainText); | |
| const clipboardContent = formatMessageForClipboard( | |
| contentOverride ?? message.content, | |
| message.extra, | |
| asPlainText | |
| ); | |
| await copyToClipboard(clipboardContent, 'Message copied to clipboard'); | |
| }, | |
| delete: async (message: DatabaseMessage) => { | |
| await chatStore.deleteMessage(message.id); | |
| refreshAllMessages(); | |
| }, | |
| editUserMessagePreserveResponses: async ( | |
| message: DatabaseMessage, | |
| newContent: string, | |
| newExtras?: DatabaseMessageExtra[] | |
| ) => { | |
| onUserAction?.(); | |
| // in-place edit: the store already updated activeMessages and no | |
| // branch is created, so sibling info stays valid without a refetch | |
| await chatStore.editUserMessagePreserveResponses(message.id, newContent, newExtras); | |
| }, | |
| editWithBranching: async ( | |
| message: DatabaseMessage, | |
| newContent: string, | |
| newExtras?: DatabaseMessageExtra[] | |
| ) => { | |
| onUserAction?.(); | |
| await chatStore.editMessageWithBranching(message.id, newContent, newExtras); | |
| refreshAllMessages(); | |
| }, | |
| editWithReplacement: async ( | |
| message: DatabaseMessage, | |
| newContent: string, | |
| shouldBranch: boolean | |
| ) => { | |
| onUserAction?.(); | |
| await chatStore.editAssistantMessage(message.id, newContent, shouldBranch); | |
| // only a branch changes sibling info; an in-place edit already | |
| // landed in activeMessages | |
| if (shouldBranch) refreshAllMessages(); | |
| }, | |
| forkConversation: async ( | |
| message: DatabaseMessage, | |
| options: { name: string; includeAttachments: boolean } | |
| ) => { | |
| await conversationsStore.forkConversation(message.id, options); | |
| }, | |
| navigateToSibling: async (siblingId: string) => { | |
| await conversationsStore.navigateToSibling(siblingId); | |
| }, | |
| regenerateWithBranching: async (message: DatabaseMessage, modelOverride?: string) => { | |
| onUserAction?.(); | |
| await chatStore.regenerateMessageWithBranching(message.id, modelOverride); | |
| refreshAllMessages(); | |
| } | |
| }; | |
| function refreshAllMessages() { | |
| const conversation = conversationsStore.activeConversation; | |
| if (conversation) { | |
| // reuse the array loadConversation just read, when present; branch | |
| // actions fall through to a fresh fetch | |
| const preloaded = conversationsStore.consumeLastLoadedMessages(conversation.id); | |
| if (preloaded) { | |
| allConversationMessages = preloaded; | |
| } else { | |
| conversationsStore.getConversationMessages(conversation.id).then((messages) => { | |
| allConversationMessages = messages; | |
| }); | |
| } | |
| } else { | |
| allConversationMessages = []; | |
| } | |
| } | |
| // Refresh messages whenever the active conversation changes | |
| $effect(() => { | |
| if (conversationsStore.activeConversation) { | |
| refreshAllMessages(); | |
| } | |
| }); | |
| $effect(() => { | |
| void allConversationMessages; | |
| onMessagesReady?.(displayMessages.length); | |
| }); | |
| let siblingInfoByMessageId = $derived(buildSiblingInfoMap(allConversationMessages)); | |
| let displayMessages = $derived.by(() => { | |
| if (!messages.length) { | |
| return []; | |
| } | |
| const filteredMessages = currentConfig.showSystemMessage | |
| ? messages | |
| : messages.filter((msg) => msg.type !== MessageRole.SYSTEM); | |
| // Build display entries, grouping agentic sessions into single entries. | |
| // An agentic session = assistant(with tool_calls) → tool → assistant → tool → ... → assistant(final) | |
| const result: Array<{ | |
| message: DatabaseMessage; | |
| toolMessages: DatabaseMessage[]; | |
| isLastAssistantMessage: boolean; | |
| isLastUserMessage: boolean; | |
| nextAssistantMessage: DatabaseMessage | null; | |
| siblingInfo: ChatMessageSiblingInfo; | |
| }> = []; | |
| for (let i = 0; i < filteredMessages.length; i++) { | |
| const msg = filteredMessages[i]; | |
| // Skip tool messages - they're grouped with preceding assistant | |
| if (msg.role === MessageRole.TOOL) continue; | |
| const toolMessages: DatabaseMessage[] = []; | |
| if (msg.role === MessageRole.ASSISTANT && hasAgenticContent(msg)) { | |
| let j = i + 1; | |
| while (j < filteredMessages.length) { | |
| const next = filteredMessages[j]; | |
| if (next.role === MessageRole.TOOL) { | |
| toolMessages.push(next); | |
| j++; | |
| } else if (next.role === MessageRole.ASSISTANT) { | |
| toolMessages.push(next); | |
| j++; | |
| } else { | |
| break; | |
| } | |
| } | |
| i = j - 1; | |
| } else if (msg.role === MessageRole.ASSISTANT) { | |
| let j = i + 1; | |
| while (j < filteredMessages.length && filteredMessages[j].role === MessageRole.TOOL) { | |
| toolMessages.push(filteredMessages[j]); | |
| j++; | |
| } | |
| } | |
| const siblingInfo = siblingInfoByMessageId.get(msg.id) ?? { | |
| currentIndex: 0, | |
| message: msg, | |
| siblingIds: [msg.id], | |
| totalSiblings: 1 | |
| }; | |
| result.push({ | |
| isLastAssistantMessage: false, | |
| isLastUserMessage: false, | |
| message: msg, | |
| nextAssistantMessage: null, | |
| siblingInfo, | |
| toolMessages | |
| }); | |
| } | |
| let lastAssistantIdx = -1; | |
| for (let i = result.length - 1; i >= 0; i--) { | |
| if (result[i].message.role === MessageRole.ASSISTANT) { | |
| result[i].isLastAssistantMessage = true; | |
| lastAssistantIdx = i; | |
| break; | |
| } | |
| } | |
| if (lastAssistantIdx > 0 && result[lastAssistantIdx - 1].message.role === MessageRole.USER) { | |
| result[lastAssistantIdx - 1].isLastUserMessage = true; | |
| } | |
| for (let i = 0; i < result.length; i++) { | |
| if (result[i].message.role !== MessageRole.USER) continue; | |
| for (let j = i + 1; j < result.length; j++) { | |
| if (result[j].message.role === MessageRole.ASSISTANT) { | |
| result[i].nextAssistantMessage = result[j].message; | |
| break; | |
| } | |
| } | |
| } | |
| return result; | |
| }); | |
| </script> | |
| <!-- Re-created per conversation, so the CSS fade-in below plays on every | |
| navigation into a chat route. --> | |
| {#key conversationsStore.activeConversation?.id ?? 'new'} | |
| <div class="chat-messages"> | |
| {#each displayMessages as { isLastAssistantMessage, isLastUserMessage, message, nextAssistantMessage, siblingInfo, toolMessages } (message.id)} | |
| <LazyChatMessage | |
| {chatActions} | |
| class="mx-auto mt-12 w-full max-w-3xl" | |
| {isLastAssistantMessage} | |
| {isLastUserMessage} | |
| {message} | |
| {nextAssistantMessage} | |
| {siblingInfo} | |
| {toolMessages} | |
| /> | |
| {/each} | |
| {#if conversationsStore.activeConversation && agenticStore.getPendingSteeringMessageContent(conversationsStore.activeConversation!.id)} | |
| { convId = conversationsStore.activeConversation!.id} | |
| { pendingContent = agenticStore.getPendingSteeringMessageContent(convId)} | |
| {#if pendingContent} | |
| <ChatMessageUserPending | |
| class="mx-auto mt-12 w-full max-w-[48rem]" | |
| content={pendingContent} | |
| extras={agenticStore.getPendingSteeringMessageExtras(convId)} | |
| onDelete={() => agenticStore.clearSteeringMessage(convId)} | |
| onEdit={(newContent, extras) => | |
| agenticStore.injectSteeringMessage(convId, newContent, extras)} | |
| onSendImmediately={() => chatStore.abortCurrentFlow(convId)} | |
| /> | |
| {/if} | |
| {:else if conversationsStore.activeConversation && chatStore.getPendingMessageContent(conversationsStore.activeConversation!.id)} | |
| { convId = conversationsStore.activeConversation!.id} | |
| { pendingContent = chatStore.getPendingMessageContent(convId)} | |
| {#if pendingContent} | |
| <ChatMessageUserPending | |
| class="mx-auto mt-12 w-full max-w-[48rem]" | |
| content={pendingContent} | |
| extras={chatStore.getPendingMessageExtras(convId)} | |
| onDelete={() => chatStore.clearPendingMessage(convId)} | |
| onEdit={(newContent, extras) => | |
| chatStore.injectPendingMessage(convId, newContent, extras)} | |
| onSendImmediately={() => chatStore.abortCurrentFlow(convId)} | |
| /> | |
| {/if} | |
| {/if} | |
| </div> | |
| {/key} | |
| <style> | |
| /* Compositor-friendly opacity fade; the keyed block re-creates the list per | |
| * conversation, so the animation plays on every navigation into a chat. */ | |
| .chat-messages { | |
| animation: chat-messages-fade-in 150ms ease-out; | |
| } | |
| chat-messages-fade-in { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| (prefers-reduced-motion: reduce) { | |
| .chat-messages { | |
| animation: none; | |
| } | |
| } | |
| </style> | |