Instructions to use VladHong/llama-cpp-K2-FAST2 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 VladHong/llama-cpp-K2-FAST2 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 VladHong/llama-cpp-K2-FAST2 # Run inference directly in the terminal: llama cli -hf VladHong/llama-cpp-K2-FAST2
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf VladHong/llama-cpp-K2-FAST2 # Run inference directly in the terminal: llama cli -hf VladHong/llama-cpp-K2-FAST2
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 VladHong/llama-cpp-K2-FAST2 # Run inference directly in the terminal: ./build/bin/llama cli -hf VladHong/llama-cpp-K2-FAST2
Use Docker
docker model run hf.co/VladHong/llama-cpp-K2-FAST2
- Llama new
- LM Studio
- Jan
- Ollama
How to use VladHong/llama-cpp-K2-FAST2 with Ollama:
ollama run hf.co/VladHong/llama-cpp-K2-FAST2
- Unsloth Desktop
- Docker Model Runner
How to use VladHong/llama-cpp-K2-FAST2 with Docker Model Runner:
docker model run hf.co/VladHong/llama-cpp-K2-FAST2
- Lemonade
How to use VladHong/llama-cpp-K2-FAST2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull VladHong/llama-cpp-K2-FAST2
Run and chat with the model
lemonade run user.llama-cpp-K2-FAST2-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download tools/ui/src/lib/components/app/content/index.ts from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 3.84 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/content/index.ts
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/ui/src/lib/components/app/content/index.ts
-
curl -L -o index.ts https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/content/index.ts
3.84 kB
| /** | |
| * | |
| * CONTENT RENDERING | |
| * | |
| * Components for rendering rich content: markdown, code, and previews. | |
| * | |
| */ | |
| /** | |
| * **MarkdownContent** - Rich markdown renderer | |
| * | |
| * Renders markdown content with syntax highlighting, LaTeX math, | |
| * tables, links, and code blocks. Optimized for streaming with | |
| * incremental block-based rendering. | |
| * | |
| * **Features:** | |
| * - GFM (GitHub Flavored Markdown): tables, task lists, strikethrough | |
| * - LaTeX math via KaTeX (`$inline$` and `$$block$$`) | |
| * - Syntax highlighting (highlight.js) with language detection | |
| * - Code copy buttons with click feedback | |
| * - External links open in new tab with security attrs | |
| * - Image attachment resolution from message extras | |
| * - Dark/light theme support (auto-switching) | |
| * - Streaming-optimized incremental rendering | |
| * - Code preview dialog for large blocks | |
| * | |
| * @example | |
| * ```svelte | |
| * <MarkdownContent content={message.content} attachments={message.extra} /> | |
| * ``` | |
| */ | |
| export { default as MarkdownContent } from './MarkdownContent/MarkdownContent.svelte'; | |
| /** | |
| * **MentionText** - Plain text with file mention badges | |
| * | |
| * Renders a message verbatim, turning only `[name](file://path)` links | |
| * into the same badge chips the markdown path draws. Nothing else is | |
| * interpreted, so pasted code keeps its `#` comments and underscores. | |
| * | |
| * @example | |
| * ```svelte | |
| * <span class="whitespace-pre-wrap"><MentionText content={message.content} /></span> | |
| * ``` | |
| */ | |
| export { default as MentionText } from './MentionText.svelte'; | |
| /** | |
| * **SyntaxHighlightedCode** - Code syntax highlighting | |
| * | |
| * Renders code with syntax highlighting using highlight.js. | |
| * Supports theme switching and scrollable containers. | |
| * | |
| * **Features:** | |
| * - Auto language detection with fallback | |
| * - Dark/light theme auto-switching | |
| * - Scrollable container with configurable max dimensions | |
| * - Monospace font styling | |
| * - Preserves whitespace and formatting | |
| * | |
| * @example | |
| * ```svelte | |
| * <SyntaxHighlightedCode code={jsonString} language="json" /> | |
| * ``` | |
| */ | |
| export { default as SyntaxHighlightedCode } from './SyntaxHighlightedCode.svelte'; | |
| /** | |
| * **CollapsibleContentBlock** - Expandable content card | |
| * | |
| * Reusable collapsible card with header, icon, and auto-scroll. | |
| * Used for tool calls and reasoning blocks in chat messages. | |
| * | |
| * **Features:** | |
| * - Collapsible content with smooth animation | |
| * - Custom icon and title display | |
| * - Optional subtitle/status text | |
| * - Auto-scroll during streaming (pauses on user scroll) | |
| * - Configurable max height with overflow scroll | |
| * | |
| * @example | |
| * ```svelte | |
| * <CollapsibleContentBlock | |
| * bind:open | |
| * title="Thinking..." | |
| * isStreaming | |
| * > | |
| * {reasoningContent} | |
| * </CollapsibleContentBlock> | |
| * ``` | |
| */ | |
| export { default as CollapsibleContentBlock } from './CollapsibleContentBlock.svelte'; | |
| /** | |
| * **CollapsibleTerminalBlock** - Expandable content card with a terminal-style frame | |
| * | |
| * Same shape as CollapsibleContentBlock, but with a `code-background` | |
| * fill, subtle border, and tightened padding suited for shell command | |
| * output and similar dense / monospace content. | |
| * | |
| * @example | |
| * ```svelte | |
| * <CollapsibleTerminalBlock bind:open title="Run command"> | |
| * <pre>{output}</pre> | |
| * </CollapsibleTerminalBlock> | |
| * ``` | |
| */ | |
| export { default as CollapsibleTerminalBlock } from './CollapsibleTerminalBlock.svelte'; | |
| /** | |
| * **MermaidPreview** - Interactive Mermaid diagram viewer | |
| * | |
| * Renders Mermaid-generated SVG diagrams with zoom, pan, and fit-to-view controls. | |
| * | |
| * **Features:** | |
| * - Mouse wheel zoom in/out | |
| * - Click-drag panning with pointer capture | |
| * - Fit to view and reset view controls | |
| * - Download as SVG | |
| * - Responsive scaling with viewBox detection | |
| * | |
| * @example | |
| * ```svelte | |
| * <MermaidPreview svgHtml={diagramSvg} /> | |
| * ``` | |
| */ | |
| export { default as MermaidPreview } from './MermaidPreview.svelte'; | |