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/misc/ScrollCarousel.svelte from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 4.02 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/misc/ScrollCarousel.svelte
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/ui/src/lib/components/app/misc/ScrollCarousel.svelte
-
curl -L -o ScrollCarousel.svelte https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/lib/components/app/misc/ScrollCarousel.svelte
4.02 kB
| <script lang="ts"> | |
| import { ChevronLeft, ChevronRight } from '@lucide/svelte'; | |
| import { cn } from '$lib/components/ui/utils'; | |
| import { ICON_CLASS_DEFAULT } from '$lib/constants'; | |
| import { ScrollCarouselVariant } from '$lib/enums'; | |
| import { useScrollCarousel } from '$lib/hooks/use-scroll-carousel.svelte'; | |
| import type { Snippet } from 'svelte'; | |
| interface Props { | |
| children: Snippet; | |
| /** External carousel hook for callers that need to drive it (e.g. scrollToCenter). */ | |
| carousel?: ReturnType<typeof useScrollCarousel>; | |
| /** Classes for the outer relative wrapper. */ | |
| class?: string; | |
| /** Classes for the scrollable overflow container. */ | |
| containerClass?: string; | |
| /** Classes for the min-w-max content wrapper. */ | |
| innerClass?: string; | |
| /** Tailwind gap class applied to the content wrapper. */ | |
| gapSize?: string; | |
| /** Show the arrows whenever the content overflows, even without hover. */ | |
| alwaysShowArrows?: boolean; | |
| /** Arrow placement and styling. */ | |
| variant?: ScrollCarouselVariant; | |
| } | |
| let { | |
| alwaysShowArrows = false, | |
| carousel: externalCarousel, | |
| children, | |
| class: className = '', | |
| containerClass = '', | |
| gapSize = '3', | |
| innerClass = '', | |
| variant = ScrollCarouselVariant.TOP | |
| }: Props = $props(); | |
| const internalCarousel = useScrollCarousel(); | |
| const carousel = $derived(externalCarousel ?? internalCarousel); | |
| const isCenter = $derived(variant === ScrollCarouselVariant.CENTER); | |
| function scrollLeft(event?: MouseEvent) { | |
| event?.stopPropagation(); | |
| event?.preventDefault(); | |
| const container = carousel.scrollContainer; | |
| if (!container) return; | |
| container.scrollBy({ behavior: 'smooth', left: -(container.clientWidth * 0.67) }); | |
| } | |
| function scrollRight(event?: MouseEvent) { | |
| event?.stopPropagation(); | |
| event?.preventDefault(); | |
| const container = carousel.scrollContainer; | |
| if (!container) return; | |
| container.scrollBy({ behavior: 'smooth', left: container.clientWidth * 0.67 }); | |
| } | |
| export function resetScroll() { | |
| const container = carousel.scrollContainer; | |
| if (!container) return; | |
| container.scrollLeft = 0; | |
| setTimeout(() => carousel.updateScrollButtons(), 0); | |
| } | |
| </script> | |
| <div | |
| class={cn('group relative', !isCenter && 'flex items-center', className)} | |
| style={!isCenter ? 'scroll-padding: 1rem;' : undefined} | |
| > | |
| <button | |
| class={cn( | |
| 'absolute z-10 flex h-6 w-6 items-center justify-center rounded-full shadow-md transition-opacity', | |
| isCenter | |
| ? 'top-1/2 left-4 -translate-y-1/2 bg-background/25 backdrop-blur-xs hover:bg-background/45 disabled:pointer-events-none disabled:opacity-0' | |
| : 'left-2 bg-muted backdrop-blur-sm hover:bg-accent', | |
| !isCenter && | |
| (carousel.canScrollLeft | |
| ? alwaysShowArrows | |
| ? 'opacity-100' | |
| : 'opacity-0 group-hover:opacity-100' | |
| : 'pointer-events-none opacity-0') | |
| )} | |
| {...isCenter ? { disabled: !carousel.canScrollLeft } : {}} | |
| aria-label="Scroll left" | |
| onclick={scrollLeft} | |
| > | |
| <ChevronLeft class={ICON_CLASS_DEFAULT} /> | |
| </button> | |
| <div | |
| bind:this={carousel.scrollContainer} | |
| class={cn('scrollbar-hide overflow-x-auto', containerClass)} | |
| onscroll={carousel.updateScrollButtons} | |
| > | |
| <div | |
| bind:this={carousel.contentContainer} | |
| class={cn('flex min-w-max', isCenter && 'items-start', `gap-${gapSize}`, innerClass)} | |
| > | |
| {@render children?.()} | |
| </div> | |
| </div> | |
| <button | |
| class={cn( | |
| 'absolute z-10 flex h-6 w-6 items-center justify-center rounded-full shadow-md transition-opacity', | |
| isCenter | |
| ? 'top-1/2 right-4 -translate-y-1/2 bg-background/25 backdrop-blur-xs hover:bg-background/45 disabled:pointer-events-none disabled:opacity-0' | |
| : 'right-2 bg-muted backdrop-blur-sm hover:bg-accent', | |
| !isCenter && | |
| (carousel.canScrollRight | |
| ? alwaysShowArrows | |
| ? 'opacity-100' | |
| : 'opacity-0 group-hover:opacity-100' | |
| : 'pointer-events-none opacity-0') | |
| )} | |
| {...isCenter ? { disabled: !carousel.canScrollRight } : {}} | |
| aria-label="Scroll right" | |
| onclick={scrollRight} | |
| > | |
| <ChevronRight class={ICON_CLASS_DEFAULT} /> | |
| </button> | |
| </div> | |