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/conversation-import-db.svelte.test.ts from Felipe97/llama-cpp-compiled: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/client/conversation-import-db.svelte.test.ts
- Command line
-
hf download hf://Felipe97/llama-cpp-compiled/tools/ui/tests/client/conversation-import-db.svelte.test.ts
-
curl -L -o conversation-import-db.svelte.test.ts https://huggingface.co/Felipe97/llama-cpp-compiled/resolve/main/tools/ui/tests/client/conversation-import-db.svelte.test.ts
2.33 kB
| import { MessageRole, MessageType } from '$lib/enums'; | |
| import { DatabaseService } from '$lib/services/database.service'; | |
| import type { ExportedConversation } from '$lib/types/database'; | |
| import { afterEach, describe, expect, it } from 'vitest'; | |
| function makeSession(id: string): ExportedConversation { | |
| return { | |
| conv: { currNode: `${id}-msg`, id, lastModified: 0, name: `Chat ${id}` }, | |
| messages: [ | |
| { | |
| children: [], | |
| content: `hello from ${id}`, | |
| convId: id, | |
| id: `${id}-msg`, | |
| parent: null, | |
| role: MessageRole.USER, | |
| timestamp: 0, | |
| type: MessageType.TEXT | |
| } | |
| ] | |
| } as unknown as ExportedConversation; | |
| } | |
| afterEach(async () => { | |
| const conversations = await DatabaseService.getAllConversations(); | |
| await DatabaseService.bulkDeleteConversations(conversations.map((conv) => conv.id)); | |
| }); | |
| /** | |
| * An import leaves a conversation already in the database untouched, so the | |
| * caller needs to know what was written to report it instead of echoing the | |
| * selection back at the user. | |
| */ | |
| describe('DatabaseService.importConversations', () => { | |
| it('reports the conversations it wrote', async () => { | |
| const { imported, skipped } = await DatabaseService.importConversations([ | |
| makeSession('a'), | |
| makeSession('b') | |
| ]); | |
| expect(imported.map((conv) => conv.id)).toEqual(['a', 'b']); | |
| expect(skipped).toEqual([]); | |
| expect(await DatabaseService.getConversationMessages('a')).toHaveLength(1); | |
| }); | |
| it('reports an existing conversation as skipped and leaves it untouched', async () => { | |
| await DatabaseService.importConversations([makeSession('a')]); | |
| await DatabaseService.updateConversation('a', { name: 'Renamed locally' }); | |
| const { imported, skipped } = await DatabaseService.importConversations([makeSession('a')]); | |
| expect(imported).toEqual([]); | |
| expect(skipped.map((conv) => conv.id)).toEqual(['a']); | |
| expect((await DatabaseService.getConversation('a'))?.name).toBe('Renamed locally'); | |
| }); | |
| it('imports the new conversations of a partially known selection', async () => { | |
| await DatabaseService.importConversations([makeSession('a')]); | |
| const { imported, skipped } = await DatabaseService.importConversations([ | |
| makeSession('a'), | |
| makeSession('b') | |
| ]); | |
| expect(imported.map((conv) => conv.id)).toEqual(['b']); | |
| expect(skipped.map((conv) => conv.id)).toEqual(['a']); | |
| }); | |
| }); | |