Instructions to use OmniContent/LAVA-models 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 OmniContent/LAVA-models 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 OmniContent/LAVA-models:Q4_K_M # Run inference directly in the terminal: llama cli -hf OmniContent/LAVA-models:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf OmniContent/LAVA-models:Q4_K_M # Run inference directly in the terminal: llama cli -hf OmniContent/LAVA-models:Q4_K_M
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 OmniContent/LAVA-models:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf OmniContent/LAVA-models:Q4_K_M
Use Docker
docker model run hf.co/OmniContent/LAVA-models:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use OmniContent/LAVA-models with Ollama:
ollama run hf.co/OmniContent/LAVA-models:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use OmniContent/LAVA-models with Docker Model Runner:
docker model run hf.co/OmniContent/LAVA-models:Q4_K_M
- Lemonade
How to use OmniContent/LAVA-models with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OmniContent/LAVA-models:Q4_K_M
Run and chat with the model
lemonade run user.LAVA-models-Q4_K_M
List all available models
lemonade list
- Atomic Chat
LAVA-models / llama /tools /server /webui /src /lib /components /app /misc /SyntaxHighlightedCode.svelte
Download llama/tools/server/webui/src/lib/components/app/misc/SyntaxHighlightedCode.svelte from OmniContent/LAVA-models: direct link, hf CLI and curl.
- Browser
- Download file 2.54 kB
-
https://huggingface.co/OmniContent/LAVA-models/resolve/main/llama/tools/server/webui/src/lib/components/app/misc/SyntaxHighlightedCode.svelte
- Command line
-
hf download hf://OmniContent/LAVA-models/llama/tools/server/webui/src/lib/components/app/misc/SyntaxHighlightedCode.svelte
-
curl -L -o SyntaxHighlightedCode.svelte https://huggingface.co/OmniContent/LAVA-models/resolve/main/llama/tools/server/webui/src/lib/components/app/misc/SyntaxHighlightedCode.svelte
2.54 kB
| <script lang="ts"> | |
| import hljs from 'highlight.js'; | |
| import { browser } from '$app/environment'; | |
| import { mode } from 'mode-watcher'; | |
| import githubDarkCss from 'highlight.js/styles/github-dark.css?inline'; | |
| import githubLightCss from 'highlight.js/styles/github.css?inline'; | |
| interface Props { | |
| code: string; | |
| language?: string; | |
| class?: string; | |
| maxHeight?: string; | |
| maxWidth?: string; | |
| } | |
| let { | |
| code, | |
| language = 'text', | |
| class: className = '', | |
| maxHeight = '60vh', | |
| maxWidth = '' | |
| }: Props = $props(); | |
| let highlightedHtml = $state(''); | |
| function loadHighlightTheme(isDark: boolean) { | |
| if (!browser) return; | |
| const existingThemes = document.querySelectorAll('style[data-highlight-theme-preview]'); | |
| existingThemes.forEach((style) => style.remove()); | |
| const style = document.createElement('style'); | |
| style.setAttribute('data-highlight-theme-preview', 'true'); | |
| style.textContent = isDark ? githubDarkCss : githubLightCss; | |
| document.head.appendChild(style); | |
| } | |
| $effect(() => { | |
| const currentMode = mode.current; | |
| const isDark = currentMode === 'dark'; | |
| loadHighlightTheme(isDark); | |
| }); | |
| $effect(() => { | |
| if (!code) { | |
| highlightedHtml = ''; | |
| return; | |
| } | |
| try { | |
| // Check if the language is supported | |
| const lang = language.toLowerCase(); | |
| const isSupported = hljs.getLanguage(lang); | |
| if (isSupported) { | |
| const result = hljs.highlight(code, { language: lang }); | |
| highlightedHtml = result.value; | |
| } else { | |
| // Try auto-detection or fallback to plain text | |
| const result = hljs.highlightAuto(code); | |
| highlightedHtml = result.value; | |
| } | |
| } catch { | |
| // Fallback to escaped plain text | |
| highlightedHtml = code.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); | |
| } | |
| }); | |
| </script> | |
| <div | |
| class="code-preview-wrapper overflow-auto rounded-lg border border-border bg-muted {className}" | |
| style="max-height: {maxHeight}; max-width: {maxWidth};" | |
| > | |
| <!-- Needs to be formatted as single line for proper rendering --> | |
| <pre class="m-0 overflow-x-auto p-4"><code class="hljs text-sm leading-relaxed" | |
| >{@html highlightedHtml}</code | |
| ></pre> | |
| </div> | |
| <style> | |
| .code-preview-wrapper { | |
| font-family: | |
| ui-monospace, SFMono-Regular, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, | |
| 'Liberation Mono', Menlo, monospace; | |
| } | |
| .code-preview-wrapper pre { | |
| background: transparent; | |
| } | |
| .code-preview-wrapper code { | |
| background: transparent; | |
| } | |
| </style> | |