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
llama-cpp-K2-FAST2 / tools /ui /src /lib /components /app /navigation /SidebarNavigation /SidebarNavigationSelectionBar.svelte
Download tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationSelectionBar.svelte from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 4.47 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationSelectionBar.svelte
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationSelectionBar.svelte
-
curl -L -o SidebarNavigationSelectionBar.svelte https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationSelectionBar.svelte
4.47 kB
| <script lang="ts"> | |
| import { Download, Pin, PinOff, Trash2, X } from '@lucide/svelte'; | |
| import { ActionIcon, DialogConfirmation } from '$lib/components/app'; | |
| import { Checkbox } from '$lib/components/ui/checkbox'; | |
| import { TooltipSide } from '$lib/enums'; | |
| interface Props { | |
| class?: string; | |
| selectedCount: number; | |
| visibleCount: number; | |
| allVisibleSelected: boolean; | |
| someVisibleSelected: boolean; | |
| someSelectedPinned: boolean; | |
| pinStateIsMixed: boolean; | |
| onSelectAllToggle: () => void; | |
| onBulkPinToggle: () => void; | |
| onBulkExport: () => void; | |
| onBulkDelete: () => void; | |
| onClose: () => void; | |
| } | |
| let { | |
| allVisibleSelected, | |
| class: className = '', | |
| onBulkDelete, | |
| onBulkExport, | |
| onBulkPinToggle, | |
| onClose, | |
| onSelectAllToggle, | |
| pinStateIsMixed, | |
| selectedCount, | |
| someSelectedPinned, | |
| someVisibleSelected, | |
| visibleCount | |
| }: Props = $props(); | |
| let showDeleteDialog = $state(false); | |
| function handleDeleteClick() { | |
| showDeleteDialog = true; | |
| } | |
| function handleDeleteConfirm() { | |
| showDeleteDialog = false; | |
| onBulkDelete(); | |
| } | |
| function handleDeleteCancel() { | |
| showDeleteDialog = false; | |
| } | |
| const hasSelection = $derived(selectedCount > 0); | |
| const isMasterChecked = $derived(allVisibleSelected); | |
| const isMasterIndeterminate = $derived(!allVisibleSelected && someVisibleSelected); | |
| const pinTooltip = $derived( | |
| hasSelection | |
| ? pinStateIsMixed | |
| ? 'Unavailable for mixed state selection' | |
| : someSelectedPinned | |
| ? selectedCount === 1 | |
| ? 'Unpin' | |
| : 'Unpin all' | |
| : selectedCount === 1 | |
| ? 'Pin' | |
| : 'Pin all' | |
| : 'Pin' | |
| ); | |
| const pinDisabled = $derived(!hasSelection || pinStateIsMixed); | |
| </script> | |
| <div | |
| aria-label="Bulk actions for selected conversations" | |
| class="flex items-center gap-1.5 rounded-xl border border-border/50 bg-background/50 px-2 py-1.5 shadow-sm backdrop-blur-xl {className}" | |
| role="toolbar" | |
| > | |
| <label class="flex min-w-0 cursor-pointer items-center gap-2"> | |
| <Checkbox | |
| aria-label={isMasterChecked ? 'Deselect all' : 'Select all'} | |
| checked={isMasterChecked} | |
| indeterminate={isMasterIndeterminate} | |
| onCheckedChange={onSelectAllToggle} | |
| /> | |
| <span class="truncate text-xs font-medium text-muted-foreground"> | |
| {selectedCount} / {visibleCount} selected | |
| </span> | |
| </label> | |
| <div class="ml-auto flex items-center gap-0.75"> | |
| <ActionIcon | |
| ariaLabel={pinTooltip} | |
| class="h-7 w-7 rounded-md bg-transparent backdrop-blur-none hover:bg-accent! {pinDisabled | |
| ? 'cursor-not-allowed' | |
| : ''} {!pinDisabled ? 'opacity-100' : 'opacity-40'}" | |
| disabled={pinDisabled} | |
| icon={someSelectedPinned ? PinOff : Pin} | |
| iconSize="h-3.5 w-3.5" | |
| onclick={onBulkPinToggle} | |
| size="sm" | |
| tooltip={pinTooltip} | |
| tooltipSide={TooltipSide.TOP} | |
| /> | |
| <ActionIcon | |
| ariaLabel="Export selected" | |
| class="h-7 w-7 rounded-md bg-transparent backdrop-blur-none hover:bg-accent! {hasSelection | |
| ? 'opacity-100' | |
| : 'opacity-40'}" | |
| disabled={!hasSelection} | |
| icon={Download} | |
| iconSize="h-3.5 w-3.5" | |
| onclick={onBulkExport} | |
| size="sm" | |
| tooltip={hasSelection ? 'Export' : 'Export'} | |
| tooltipSide={TooltipSide.TOP} | |
| /> | |
| <ActionIcon | |
| ariaLabel="Delete selected" | |
| class="h-7 w-7 rounded-md bg-transparent backdrop-blur-none hover:bg-destructive/10! dark:hover:bg-destructive/20! disabled:hover:bg-transparent {hasSelection | |
| ? 'opacity-100' | |
| : 'opacity-40'}" | |
| disabled={!hasSelection} | |
| icon={Trash2} | |
| iconSize="h-3.5 w-3.5 text-destructive" | |
| onclick={handleDeleteClick} | |
| size="sm" | |
| tooltip="Delete selected" | |
| tooltipSide={TooltipSide.TOP} | |
| /> | |
| <div aria-hidden="true" class="mx-1 h-4 w-px bg-border"></div> | |
| <ActionIcon | |
| ariaLabel="Exit bulk selection mode" | |
| class="h-7 w-7 rounded-md bg-transparent backdrop-blur-none hover:bg-accent!" | |
| icon={X} | |
| iconSize="h-3.5 w-3.5" | |
| onclick={onClose} | |
| size="sm" | |
| tooltip="Exit bulk selection mode" | |
| tooltipSide={TooltipSide.TOP} | |
| /> | |
| </div> | |
| </div> | |
| <DialogConfirmation | |
| bind:open={showDeleteDialog} | |
| cancelText="Cancel" | |
| confirmText={selectedCount === 1 ? 'Delete' : `Delete ${selectedCount}`} | |
| description="This action cannot be undone. The selected conversation{selectedCount === 1 | |
| ? '' | |
| : 's'} and {selectedCount === 1 | |
| ? 'its' | |
| : 'their'} messages will be permanently removed, including any forks." | |
| icon={Trash2} | |
| onCancel={handleDeleteCancel} | |
| onConfirm={handleDeleteConfirm} | |
| title="Delete {selectedCount} conversation{selectedCount === 1 ? '' : 's'}" | |
| variant="destructive" | |
| /> | |