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
llama-cpp-compiled / tools /ui /src /lib /components /app /chat /ChatMessages /LazyChatMessage.svelte
Download tools/ui/src/lib/components/app/chat/ChatMessages/LazyChatMessage.svelte from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.91 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/components/app/chat/ChatMessages/LazyChatMessage.svelte
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/src/lib/components/app/chat/ChatMessages/LazyChatMessage.svelte
-
curl -L -o LazyChatMessage.svelte https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/src/lib/components/app/chat/ChatMessages/LazyChatMessage.svelte
2.91 kB
| <script lang="ts"> | |
| import ChatMessage from './ChatMessage/ChatMessage.svelte'; | |
| import { chatStore } from '$lib/stores'; | |
| import type { ChatMessageActions } from '$lib/types'; | |
| interface Props { | |
| chatActions: ChatMessageActions; | |
| class?: string; | |
| isLastAssistantMessage?: boolean; | |
| isLastUserMessage?: boolean; | |
| message: DatabaseMessage; | |
| nextAssistantMessage?: DatabaseMessage | null; | |
| siblingInfo?: ChatMessageSiblingInfo | null; | |
| toolMessages?: DatabaseMessage[]; | |
| } | |
| let { | |
| chatActions, | |
| class: className = '', | |
| isLastAssistantMessage = false, | |
| isLastUserMessage = false, | |
| message, | |
| nextAssistantMessage = null, | |
| siblingInfo = null, | |
| toolMessages = [] | |
| }: Props = $props(); | |
| // A mounted message row is a whole component tree (contexts, effects, | |
| // collapsibles, markdown blocks), and the cycle collector, GC and layout | |
| // invalidation keep walking every live object and DOM node, even for | |
| // rows the user never scrolls to. Mount the real tree only when the row | |
| // approaches the viewport; until then the row is an empty placeholder | |
| // that reserves its size through content-visibility. | |
| let mounted = $state(false); | |
| let wrapperEl: HTMLDivElement | undefined = $state(); | |
| $effect(() => { | |
| if (mounted || !wrapperEl) return; | |
| const observer = new IntersectionObserver( | |
| (entries) => { | |
| if (entries.some((entry) => entry.isIntersecting)) { | |
| mounted = true; | |
| observer.disconnect(); | |
| } | |
| }, | |
| // pre-mount a couple of viewport heights ahead of the scroll | |
| // position so a fast scroll never meets an empty row | |
| { rootMargin: '200% 0px' } | |
| ); | |
| observer.observe(wrapperEl); | |
| return () => observer.disconnect(); | |
| }); | |
| // Flows that target a row by id (pending edit) expect the message | |
| // component and its effects to exist; mount the target row first | |
| $effect(() => { | |
| if (chatStore.pendingEditMessageId === message.id) { | |
| mounted = true; | |
| } | |
| }); | |
| </script> | |
| <div | |
| bind:this={wrapperEl} | |
| class:chat-message--synthetic={Boolean(message.isSynthetic)} | |
| class="chat-message" | |
| > | |
| {#if mounted} | |
| <ChatMessage | |
| {chatActions} | |
| class={className} | |
| {isLastAssistantMessage} | |
| {isLastUserMessage} | |
| {message} | |
| {nextAssistantMessage} | |
| {siblingInfo} | |
| {toolMessages} | |
| /> | |
| {/if} | |
| </div> | |
| <style> | |
| /* | |
| * The browser skips layout and paint for messages outside the | |
| * viewport. contain-intrinsic-size reuses the last rendered size | |
| * once known; 500px sizes messages that have never been rendered. | |
| */ | |
| .chat-message { | |
| --chat-message-intrinsic-size: 500px; | |
| content-visibility: auto; | |
| contain-intrinsic-size: auto var(--chat-message-intrinsic-size); | |
| } | |
| /* | |
| * Synthetic rows (e.g. the working-directory change) are small, so an | |
| * accurate placeholder keeps the injected row from inflating the | |
| * auto-scroll offset; the 500px default is for ordinary bubbles. | |
| */ | |
| .chat-message--synthetic { | |
| --chat-message-intrinsic-size: 40px; | |
| } | |
| </style> | |