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/navigation/DropdownMenuActions.svelte from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 2.61 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/navigation/DropdownMenuActions.svelte
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/ui/src/lib/components/app/navigation/DropdownMenuActions.svelte
-
curl -L -o DropdownMenuActions.svelte https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/navigation/DropdownMenuActions.svelte
2.61 kB
| <script lang="ts"> | |
| import { KeyboardShortcutInfo } from '$lib/components/app'; | |
| import * as DropdownMenu from '$lib/components/ui/dropdown-menu'; | |
| import * as Tooltip from '$lib/components/ui/tooltip'; | |
| import type { Component } from 'svelte'; | |
| interface ActionItem { | |
| icon: Component; | |
| label: string; | |
| onclick: (event: Event) => void; | |
| variant?: 'default' | 'destructive'; | |
| disabled?: boolean; | |
| shortcut?: string[]; | |
| separator?: boolean; | |
| } | |
| interface Props { | |
| triggerIcon: Component; | |
| triggerTooltip?: string; | |
| triggerClass?: string; | |
| actions: ActionItem[]; | |
| align?: 'start' | 'center' | 'end'; | |
| open?: boolean; | |
| } | |
| let { | |
| actions, | |
| align = 'end', | |
| open = $bindable(false), | |
| triggerClass = '', | |
| triggerIcon, | |
| triggerTooltip | |
| }: Props = $props(); | |
| </script> | |
| <DropdownMenu.Root bind:open> | |
| <Tooltip.Root> | |
| <Tooltip.Trigger> | |
| <!-- prevent another nested button element --> | |
| {#snippet child({ props })} | |
| <DropdownMenu.Trigger | |
| {...props} | |
| class="flex h-6 w-6 cursor-pointer items-center justify-center rounded-md p-0 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground {triggerClass}" | |
| onclick={(e) => e.stopPropagation()} | |
| > | |
| {@render iconComponent(triggerIcon, 'h-3 w-3')} | |
| {#if triggerTooltip} | |
| <span class="sr-only">{triggerTooltip}</span> | |
| {/if} | |
| </DropdownMenu.Trigger> | |
| {/snippet} | |
| </Tooltip.Trigger> | |
| {#if triggerTooltip} | |
| <Tooltip.Content> | |
| <p>{triggerTooltip}</p> | |
| </Tooltip.Content> | |
| {/if} | |
| </Tooltip.Root> | |
| <DropdownMenu.Content {align} class="z-[999999] w-48"> | |
| {#each actions as action, index (action.label)} | |
| {#if action.separator && index > 0} | |
| <DropdownMenu.Separator /> | |
| {/if} | |
| <DropdownMenu.Item | |
| class="flex items-center justify-between hover:[&>kbd]:opacity-100" | |
| disabled={action.disabled} | |
| onclick={action.onclick} | |
| variant={action.variant} | |
| > | |
| <div class="flex items-center gap-2"> | |
| {@render iconComponent( | |
| action.icon, | |
| `h-4 w-4 ${action.variant === 'destructive' ? 'text-destructive' : ''}` | |
| )} | |
| {action.label} | |
| </div> | |
| {#if action.shortcut} | |
| <KeyboardShortcutInfo keys={action.shortcut} variant={action.variant} /> | |
| {/if} | |
| </DropdownMenu.Item> | |
| {/each} | |
| </DropdownMenu.Content> | |
| </DropdownMenu.Root> | |
| {#snippet iconComponent(IconComponent: Component, className: string)} | |
| <IconComponent class={className} /> | |
| {/snippet} | |