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/chat-form-input-rich-undo.svelte.test.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/client/chat-form-input-rich-undo.svelte.test.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/tests/client/chat-form-input-rich-undo.svelte.test.ts
-
curl -L -o chat-form-input-rich-undo.svelte.test.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/client/chat-form-input-rich-undo.svelte.test.ts
4.59 kB
| // Guards the editing-key contract of the ChatFormInputRich: | |
| // undo/redo is replayed from source snapshots (the token rebuilds destroy | |
| // the native undo stack), and Tab is NOT intercepted (WCAG 2.1.2 no | |
| // keyboard trap), matching the plain textarea. | |
| import ChatFormInputRichHarness from './components/ChatFormInputRichHarness.svelte'; | |
| import { tick } from 'svelte'; | |
| import { describe, expect, it } from 'vitest'; | |
| import { render } from 'vitest-browser-svelte'; | |
| const SOURCE = 'see [docs](file:///a/b)'; | |
| function editableIn(container: HTMLElement): HTMLElement { | |
| const el = container.querySelector('[role="textbox"]'); | |
| if (!(el instanceof HTMLElement)) throw new Error('ChatFormInputRich not rendered'); | |
| return el; | |
| } | |
| function type(root: HTMLElement, text: string, inputType = 'insertText') { | |
| root.appendChild(document.createTextNode(text)); | |
| root.dispatchEvent(new InputEvent('input', { bubbles: true, inputType })); | |
| } | |
| function keydown(root: HTMLElement, init: KeyboardEventInit) { | |
| const event = new KeyboardEvent('keydown', { bubbles: true, cancelable: true, ...init }); | |
| root.dispatchEvent(event); | |
| return event; | |
| } | |
| describe('ChatFormInputRich undo/redo', () => { | |
| it('undoes and redoes an edit across a badge-containing buffer', async () => { | |
| const screen = render(ChatFormInputRichHarness, { value: SOURCE }); | |
| await tick(); | |
| const root = editableIn(screen.container); | |
| type(root, ' more'); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe(`${SOURCE} more`); | |
| const undoEvent = keydown(root, { ctrlKey: true, key: 'z' }); | |
| await tick(); | |
| expect(undoEvent.defaultPrevented).toBe(true); | |
| expect(screen.component.getValue()).toBe(SOURCE); | |
| const redoEvent = keydown(root, { ctrlKey: true, key: 'z', shiftKey: true }); | |
| await tick(); | |
| expect(redoEvent.defaultPrevented).toBe(true); | |
| expect(screen.component.getValue()).toBe(`${SOURCE} more`); | |
| }); | |
| it('redoes with Ctrl+Y as well', async () => { | |
| const screen = render(ChatFormInputRichHarness, { value: SOURCE }); | |
| await tick(); | |
| const root = editableIn(screen.container); | |
| type(root, ' more'); | |
| await tick(); | |
| keydown(root, { key: 'z', metaKey: true }); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe(SOURCE); | |
| keydown(root, { ctrlKey: true, key: 'y' }); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe(`${SOURCE} more`); | |
| }); | |
| it('coalesces a typing burst into one undo step', async () => { | |
| const screen = render(ChatFormInputRichHarness, { value: 'abc' }); | |
| await tick(); | |
| const root = editableIn(screen.container); | |
| type(root, 'd'); | |
| type(root, 'e'); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe('abcde'); | |
| keydown(root, { ctrlKey: true, key: 'z' }); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe('abc'); | |
| }); | |
| it('keeps a newline as its own undo step', async () => { | |
| const screen = render(ChatFormInputRichHarness, { value: 'abc' }); | |
| await tick(); | |
| const root = editableIn(screen.container); | |
| type(root, 'd'); | |
| type(root, '\n', 'insertLineBreak'); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe('abcd\n'); | |
| keydown(root, { ctrlKey: true, key: 'z' }); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe('abcd'); | |
| keydown(root, { ctrlKey: true, key: 'z' }); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe('abc'); | |
| }); | |
| it('is a no-op when there is nothing to undo', async () => { | |
| const screen = render(ChatFormInputRichHarness, { value: 'abc' }); | |
| await tick(); | |
| const root = editableIn(screen.container); | |
| const event = keydown(root, { ctrlKey: true, key: 'z' }); | |
| await tick(); | |
| expect(event.defaultPrevented).toBe(true); | |
| expect(screen.component.getValue()).toBe('abc'); | |
| }); | |
| it('abandons the redo branch after a fresh edit', async () => { | |
| const screen = render(ChatFormInputRichHarness, { value: 'abc' }); | |
| await tick(); | |
| const root = editableIn(screen.container); | |
| type(root, 'd'); | |
| await tick(); | |
| keydown(root, { ctrlKey: true, key: 'z' }); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe('abc'); | |
| type(root, 'e'); | |
| await tick(); | |
| keydown(root, { ctrlKey: true, key: 'z', shiftKey: true }); | |
| await tick(); | |
| expect(screen.component.getValue()).toBe('abce'); | |
| }); | |
| }); | |
| describe('ChatFormInputRich Tab key', () => { | |
| it('does not trap Tab (focus can leave the editable)', async () => { | |
| const screen = render(ChatFormInputRichHarness, { value: SOURCE }); | |
| await tick(); | |
| const root = editableIn(screen.container); | |
| const event = keydown(root, { key: 'Tab' }); | |
| expect(event.defaultPrevented).toBe(false); | |
| }); | |
| }); | |