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/unit/conversations-store.test.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 3.44 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/unit/conversations-store.test.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/tests/unit/conversations-store.test.ts
-
curl -L -o conversations-store.test.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/unit/conversations-store.test.ts
3.44 kB
| // Field updates to the active conversation must keep the object identity | |
| // stable: effects that track the identity ( the chat screen's sibling-info | |
| // refresh ) refire on every identity change, which used to trigger a full | |
| // message refetch on every send and tool result. | |
| import { beforeEach, describe, expect, it, vi } from 'vitest'; | |
| vi.mock('$lib/services/database.service', () => ({ | |
| DatabaseService: { | |
| getConversation: vi.fn(), | |
| getConversationMessages: vi.fn(), | |
| updateConversation: vi.fn(), | |
| updateCurrentNode: vi.fn() | |
| } | |
| })); | |
| import { DatabaseService } from '$lib/services/database.service'; | |
| import { conversationsStore } from '$lib/stores/conversations/index.svelte'; | |
| import type { DatabaseConversation, DatabaseMessage } from '$lib/types/database'; | |
| const getConversationMock = vi.mocked(DatabaseService.getConversation); | |
| const getMessagesMock = vi.mocked(DatabaseService.getConversationMessages); | |
| const updateCurrentNodeMock = vi.mocked(DatabaseService.updateCurrentNode); | |
| function makeConversation(overrides: Partial<DatabaseConversation> = {}): DatabaseConversation { | |
| return { | |
| currNode: 'node-1', | |
| id: 'conv-1', | |
| lastModified: 1000, | |
| name: 'conversation', | |
| ...overrides | |
| }; | |
| } | |
| async function loadActive(conversation: DatabaseConversation, messages: DatabaseMessage[]) { | |
| getConversationMock.mockResolvedValue(conversation); | |
| getMessagesMock.mockResolvedValue(messages); | |
| expect(await conversationsStore.loadConversation(conversation.id)).toBe(true); | |
| } | |
| beforeEach(() => { | |
| getConversationMock.mockReset(); | |
| getMessagesMock.mockReset(); | |
| updateCurrentNodeMock.mockReset(); | |
| updateCurrentNodeMock.mockResolvedValue(undefined); | |
| vi.mocked(DatabaseService.updateConversation).mockReset(); | |
| vi.mocked(DatabaseService.updateConversation).mockResolvedValue(undefined); | |
| }); | |
| describe('active conversation identity', () => { | |
| it('hands the load read off exactly once', async () => { | |
| await loadActive(makeConversation(), []); | |
| expect(conversationsStore.consumeLastLoadedMessages('conv-1')).toEqual([]); | |
| // a second consume is a miss: branch actions must fall back to a refetch | |
| expect(conversationsStore.consumeLastLoadedMessages('conv-1')).toBeNull(); | |
| }); | |
| it('writes currNode in place on updateCurrentNode', async () => { | |
| await loadActive(makeConversation(), []); | |
| const before = conversationsStore.activeConversation; | |
| await conversationsStore.updateCurrentNode('node-2'); | |
| expect(conversationsStore.activeConversation).toBe(before); | |
| expect(conversationsStore.activeConversation?.currNode).toBe('node-2'); | |
| }); | |
| it('writes renamed and pinned fields in place on applyConversationUpdate', async () => { | |
| await loadActive(makeConversation(), []); | |
| const before = conversationsStore.activeConversation; | |
| conversationsStore.applyConversationUpdate('conv-1', { name: 'renamed', pinned: true }); | |
| expect(conversationsStore.activeConversation).toBe(before); | |
| expect(conversationsStore.activeConversation?.name).toBe('renamed'); | |
| expect(conversationsStore.activeConversation?.pinned).toBe(true); | |
| }); | |
| it('writes lastModified in place on updateConversationTimestamp', async () => { | |
| await loadActive(makeConversation(), []); | |
| const before = conversationsStore.activeConversation; | |
| conversationsStore.updateConversationTimestamp('conv-1'); | |
| expect(conversationsStore.activeConversation).toBe(before); | |
| expect(conversationsStore.activeConversation?.lastModified).toBeGreaterThan(1000); | |
| }); | |
| }); | |