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/CollapsibleContentBlock.svelte from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 2.73 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/content/CollapsibleContentBlock.svelte
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/ui/src/lib/components/app/content/CollapsibleContentBlock.svelte
-
curl -L -o CollapsibleContentBlock.svelte https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/content/CollapsibleContentBlock.svelte
2.73 kB
| <script lang="ts"> | |
| import ChevronDown from '@lucide/svelte/icons/chevron-down'; | |
| import * as Collapsible from '$lib/components/ui/collapsible/index.js'; | |
| import { cn } from '$lib/components/ui/utils'; | |
| import { ICON_CLASS_DEFAULT } from '$lib/constants'; | |
| import type { Snippet } from 'svelte'; | |
| import type { Component } from 'svelte'; | |
| interface Props { | |
| open?: boolean; | |
| class?: string; | |
| icon?: Component; | |
| iconClass?: string; | |
| iconUrl?: string | null; | |
| title?: string; | |
| titleSnippet?: Snippet; | |
| subtitle?: string; | |
| shimmerTitle?: boolean; | |
| onToggle?: () => void; | |
| children: Snippet; | |
| } | |
| let { | |
| children, | |
| class: className = '', | |
| icon: IconComponent, | |
| iconClass = ICON_CLASS_DEFAULT, | |
| iconUrl = null, | |
| onToggle, | |
| open = $bindable(false), | |
| shimmerTitle = false, | |
| subtitle, | |
| title = '', | |
| titleSnippet | |
| }: Props = $props(); | |
| function hideBrokenIcon(event: Event) { | |
| (event.currentTarget as HTMLImageElement).style.display = 'none'; | |
| } | |
| </script> | |
| <Collapsible.Root | |
| class={cn('group/collapsible', 'my-0!', className)} | |
| onOpenChange={(value) => { | |
| open = value; | |
| onToggle?.(); | |
| }} | |
| {open} | |
| > | |
| <Collapsible.Trigger | |
| class={cn( | |
| 'flex w-full cursor-pointer items-start justify-between gap-2 text-left', | |
| 'py-1.5 pr-1' | |
| )} | |
| > | |
| <div class="flex min-w-0 items-start gap-2 text-muted-foreground"> | |
| {#if iconUrl} | |
| <img | |
| alt="" | |
| class={cn('shrink-0 rounded-sm mt-0.75', iconClass)} | |
| onerror={hideBrokenIcon} | |
| src={iconUrl} | |
| /> | |
| {:else if IconComponent} | |
| <IconComponent class={cn('shrink-0 text-muted-foreground/60 mt-0.75', iconClass)} /> | |
| {/if} | |
| <span class={cn('text-sm font-medium', shimmerTitle ? 'shimmer-text' : 'text-foreground/80')}> | |
| {#if titleSnippet} | |
| {@render titleSnippet()} | |
| {:else} | |
| {title} | |
| {/if} | |
| </span> | |
| {#if subtitle} | |
| <span class="text-xs italic text-muted-foreground/70">{subtitle}</span> | |
| {/if} | |
| </div> | |
| <ChevronDown | |
| class={cn( | |
| 'size-4 shrink-0 text-muted-foreground/60 transition-all duration-150 ease-out opacity-0 group-hover/collapsible:opacity-100 mt-0.75', | |
| open && 'rotate-180' | |
| )} | |
| /> | |
| <span class="sr-only">Toggle content</span> | |
| </Collapsible.Trigger> | |
| <Collapsible.Content> | |
| <!-- Collapsible.Content renders its children unconditionally and only sets | |
| `hidden`, so a closed block would keep re-rendering its whole body on | |
| every streamed token. Gate on `open` so collapsed content costs nothing. --> | |
| {#if open} | |
| <div class="pl-1.5 grid min-w-0" style="min-height: var(--min-message-height);"> | |
| <div class="min-w-0 border-l border-muted-foreground/20 pl-4 pb-2 my-2"> | |
| {@render children()} | |
| </div> | |
| </div> | |
| {/if} | |
| </Collapsible.Content> | |
| </Collapsible.Root> | |