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
File size: 4,820 Bytes
82be208 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | import {
extractSearchQuery,
extractSearchResults,
faviconForUrl,
isWebSearchToolName,
looksLikeSearchResult
} from '$lib/utils/search-results';
import { describe, expect, it } from 'vitest';
describe('extractSearchResults', () => {
it('parses the Exa fixture with multiple results', () => {
const fixture = `Title: World Cup 2026 | Match schedule, fixtures
URL: https://www.fifa.com/articles/match-schedule
Published: 2026-06-22T00:01:00.000Z
Author: N/A
Highlights:
Find out the full match schedule for World Cup 2026
---
Title: 2026 FIFA World Cup match schedule
URL: https://www.espn.com/soccer/story/abc/def
Published: 2026-07-08T07:07:00.000Z
Author: ESPN
Highlights:
Round of 32 · Tuesday, July 7
---
Title: BBC
URL: https://www.bbc.co.uk/sport/football/world-cup/schedule
Published: N/A
Author: N/A
Highlights:
# FIFA World Cup Schedule
...`;
const results = extractSearchResults(fixture);
expect(results.length).toBe(3);
expect(results[0].title).toContain('World Cup 2026');
expect(results[0].url).toBe('https://www.fifa.com/articles/match-schedule');
expect(results[0].published).toBe('2026-06-22T00:01:00.000Z');
// N/A filtered out
expect(results[0].author).toBeUndefined();
expect(results[0].highlights).toContain('match schedule');
expect(results[1].author).toBe('ESPN');
expect(results[2].author).toBeUndefined(); // N/A filtered
});
it('returns empty array for empty input', () => {
expect(extractSearchResults('')).toEqual([]);
expect(extractSearchResults(undefined)).toEqual([]);
expect(extractSearchResults(null)).toEqual([]);
});
it('skips chunks missing title or url', () => {
const txt = `Title: no url here
Highlights:
foo
---
Title: foo
URL: https://x.com
---
just a paragraph
---
Title: b
URL: not a url`;
const results = extractSearchResults(txt);
// Only middle one should pass (has title + url).
expect(results.length).toBe(1);
expect(results[0].url).toBe('https://x.com');
});
it('parses a single result without separators', () => {
const txt = `Title: only one
URL: https://example.com/test
Published: 2026-01-01T00:00:00Z
Author: alice
Highlights:
a highlight`;
const results = extractSearchResults(txt);
expect(results.length).toBe(1);
expect(results[0].title).toBe('only one');
expect(results[0].author).toBe('alice');
expect(results[0].highlights).toBe('a highlight');
});
it('extracts query from JSON toolArgs', () => {
expect(extractSearchQuery('{"query":"foo"}')).toBe('foo');
expect(extractSearchQuery(' {"query":" foo "} ')).toBe('foo');
expect(extractSearchQuery('not json')).toBe('');
expect(extractSearchQuery(null)).toBe('');
expect(extractSearchQuery('{"query":123}')).toBe('');
});
it('resolves favicon URLs from origins', () => {
expect(faviconForUrl('https://example.com/path/to/page')).toBe(
'https://example.com/favicon.ico'
);
expect(faviconForUrl('http://example.com/x')).toBe('http://example.com/favicon.ico');
expect(faviconForUrl('not a url')).toBeNull();
});
});
describe('isWebSearchToolName', () => {
it('excludes tools that take the same query argument but are not web searches', () => {
expect(isWebSearchToolName('search_pull_requests')).toBe(false);
expect(isWebSearchToolName('search_code')).toBe(false);
expect(isWebSearchToolName('search_repositories')).toBe(false);
expect(isWebSearchToolName('search_issues')).toBe(false);
});
it('handles empty / missing input', () => {
expect(isWebSearchToolName(null)).toBe(false);
expect(isWebSearchToolName(undefined)).toBe(false);
expect(isWebSearchToolName('')).toBe(false);
});
it('returns false for unrelated tools', () => {
expect(isWebSearchToolName('web_fetch')).toBe(false);
expect(isWebSearchToolName('read_file')).toBe(false);
expect(isWebSearchToolName('exec_shell_command')).toBe(false);
});
});
describe('extractSearchResults prefilter', () => {
it('returns the shared empty array for blobs without the wire format', () => {
// exec/file tool results never carry Title:/URL: field lines; the
// cheap prefilter must skip the line-split parse for them
const stdout = `${'make[1]: entering directory\n'.repeat(5000)}`;
expect(extractSearchResults(stdout)).toEqual([]);
});
it('returns an empty result when only one required field is present', () => {
expect(extractSearchResults('URL: https://example.com')).toEqual([]);
expect(extractSearchResults('Title: only a title')).toEqual([]);
});
});
describe('looksLikeSearchResult', () => {
it('requires both Title and URL field markers', () => {
expect(looksLikeSearchResult('Title: a\nURL: https://b')).toBe(true);
expect(looksLikeSearchResult('URL: https://b')).toBe(false);
expect(looksLikeSearchResult('plain stdout')).toBe(false);
expect(looksLikeSearchResult(undefined)).toBe(false);
});
});
|