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/tests/client/update-message-in-place.svelte.test.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.45 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/client/update-message-in-place.svelte.test.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/tests/client/update-message-in-place.svelte.test.ts
-
curl -L -o update-message-in-place.svelte.test.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/client/update-message-in-place.svelte.test.ts
2.45 kB
| // Pins the contract that makes streaming cheap: updateMessageAtIndex mutates the | |
| // existing message object instead of replacing it. | |
| // | |
| // Replacing it (`{ ...old, ...updates }`) changes the array slot, which | |
| // invalidates every consumer that merely walks the list - ChatMessages' | |
| // `displayMessages` rebuilds entries for EVERY message in the conversation. That | |
| // made per-token cost scale with conversation length (1.26ms at 1 prior message | |
| // -> 3.07ms at 40). Mutating in place keeps it flat. | |
| import { MessageRole } from '$lib/enums'; | |
| import { conversationsStore } from '$lib/stores/conversations/index.svelte'; | |
| import type { DatabaseMessage } from '$lib/types'; | |
| import { describe, expect, it } from 'vitest'; | |
| function makeMessage(id: string): DatabaseMessage { | |
| return { | |
| children: [], | |
| content: '', | |
| convId: 'c1', | |
| id, | |
| parent: null, | |
| role: MessageRole.ASSISTANT, | |
| timestamp: 0, | |
| type: 'text' | |
| } as DatabaseMessage; | |
| } | |
| describe('conversationsStore.updateMessageAtIndex', () => { | |
| it('mutates in place, preserving object identity', () => { | |
| conversationsStore.activeMessages = [makeMessage('a'), makeMessage('b')]; | |
| const before = conversationsStore.activeMessages[1]; | |
| conversationsStore.updateMessageAtIndex(1, { content: 'hello' }); | |
| expect(conversationsStore.activeMessages[1].content).toBe('hello'); | |
| expect(conversationsStore.activeMessages[1]).toBe(before); | |
| conversationsStore.activeMessages = []; | |
| }); | |
| it('leaves other messages and unrelated fields untouched', () => { | |
| conversationsStore.activeMessages = [makeMessage('a'), makeMessage('b')]; | |
| const untouched = conversationsStore.activeMessages[0]; | |
| conversationsStore.updateMessageAtIndex(1, { content: 'x', model: 'm1' }); | |
| expect(conversationsStore.activeMessages[0]).toBe(untouched); | |
| expect(conversationsStore.activeMessages[0].content).toBe(''); | |
| expect(conversationsStore.activeMessages[1].model).toBe('m1'); | |
| expect(conversationsStore.activeMessages[1].id).toBe('b'); | |
| conversationsStore.activeMessages = []; | |
| }); | |
| it('is a no-op for an index of -1 or out of range', () => { | |
| conversationsStore.activeMessages = [makeMessage('a')]; | |
| expect(() => conversationsStore.updateMessageAtIndex(-1, { content: 'x' })).not.toThrow(); | |
| expect(() => conversationsStore.updateMessageAtIndex(9, { content: 'x' })).not.toThrow(); | |
| expect(conversationsStore.activeMessages[0].content).toBe(''); | |
| conversationsStore.activeMessages = []; | |
| }); | |
| }); | |