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/dialogs/DialogCodePreview.svelte from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 2.23 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/dialogs/DialogCodePreview.svelte
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/ui/src/lib/components/app/dialogs/DialogCodePreview.svelte
-
curl -L -o DialogCodePreview.svelte https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/dialogs/DialogCodePreview.svelte
2.23 kB
| <script lang="ts"> | |
| import XIcon from '@lucide/svelte/icons/x'; | |
| import { Dialog as DialogPrimitive } from 'bits-ui'; | |
| interface Props { | |
| open: boolean; | |
| code: string; | |
| language: string; | |
| onOpenChange?: (open: boolean) => void; | |
| } | |
| let { code, language, onOpenChange, open = $bindable() }: Props = $props(); | |
| let iframeRef = $state<HTMLIFrameElement | null>(null); | |
| $effect(() => { | |
| if (!iframeRef) return; | |
| if (open) { | |
| iframeRef.srcdoc = code; | |
| } else { | |
| iframeRef.srcdoc = ''; | |
| } | |
| }); | |
| function handleOpenChange(nextOpen: boolean) { | |
| open = nextOpen; | |
| onOpenChange?.(nextOpen); | |
| } | |
| </script> | |
| <DialogPrimitive.Root onOpenChange={handleOpenChange} {open}> | |
| <DialogPrimitive.Portal> | |
| <DialogPrimitive.Overlay class="code-preview-overlay" /> | |
| <DialogPrimitive.Content class="code-preview-content"> | |
| <iframe | |
| bind:this={iframeRef} | |
| class="code-preview-iframe" | |
| sandbox="allow-scripts" | |
| title="Preview {language}" | |
| ></iframe> | |
| <DialogPrimitive.Close | |
| aria-label="Close preview" | |
| class="code-preview-close absolute top-4 right-4 border-none bg-transparent text-white opacity-70 mix-blend-difference transition-opacity hover:opacity-100 focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-8" | |
| > | |
| <XIcon /> | |
| <span class="sr-only">Close preview</span> | |
| </DialogPrimitive.Close> | |
| </DialogPrimitive.Content> | |
| </DialogPrimitive.Portal> | |
| </DialogPrimitive.Root> | |
| <style lang="postcss"> | |
| :global(.code-preview-overlay) { | |
| position: fixed; | |
| inset: 0; | |
| background-color: transparent; | |
| z-index: 100000; | |
| } | |
| :global(.code-preview-content) { | |
| position: fixed; | |
| inset: 0; | |
| top: 0 ; | |
| left: 0 ; | |
| width: 100dvw; | |
| height: 100dvh; | |
| margin: 0; | |
| padding: 0; | |
| border: none; | |
| border-radius: 0; | |
| background-color: transparent; | |
| box-shadow: none; | |
| display: block; | |
| overflow: hidden; | |
| transform: none ; | |
| z-index: 100001; | |
| } | |
| :global(.code-preview-iframe) { | |
| display: block; | |
| width: 100dvw; | |
| height: 100dvh; | |
| border: 0; | |
| } | |
| :global(.code-preview-close) { | |
| position: absolute; | |
| z-index: 100002; | |
| } | |
| </style> | |