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/app.d.ts from VladHong/llama-cpp-K2-FAST2: direct link, hf CLI and curl.
- Browser
- Download file 3.62 kB
-
https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/app.d.ts
- Command line
-
hf download hf://VladHong/llama-cpp-K2-FAST2/tools/ui/src/app.d.ts
-
curl -L -o app.d.ts https://huggingface.co/VladHong/llama-cpp-K2-FAST2/resolve/main/tools/ui/src/app.d.ts
3.62 kB
| // See https://svelte.dev/docs/kit/types#app.d.ts | |
| // for information about these interfaces | |
| import 'vite-plugin-pwa/pwa-assets'; | |
| import 'vite-plugin-pwa/svelte'; | |
| import { ModelModality, ServerModelStatus, ServerRole } from '$lib/enums'; | |
| // Import chat types from dedicated module | |
| import type { | |
| // API types | |
| ApiChatCompletionRequest, | |
| ApiChatCompletionResponse, | |
| ApiChatCompletionStreamChunk, | |
| ApiChatCompletionToolCall, | |
| ApiChatCompletionToolCallDelta, | |
| ApiChatMessageContentPart, | |
| ApiChatMessageData, | |
| ApiContextSizeError, | |
| ApiErrorResponse, | |
| ApiLlamaCppServerProps, | |
| ApiModelDataEntry, | |
| ApiModelListResponse, | |
| ApiModelLoadStage, | |
| ApiModelsSseData, | |
| ApiModelsSseEvent, | |
| ApiModelsSseProgress, | |
| ApiProcessingState, | |
| ApiRouterModelMeta, | |
| ApiRouterModelsListResponse, | |
| ApiRouterModelsLoadRequest, | |
| ApiRouterModelsLoadResponse, | |
| ApiRouterModelsStatusRequest, | |
| ApiRouterModelsStatusResponse, | |
| ApiRouterModelsUnloadRequest, | |
| ApiRouterModelsUnloadResponse, | |
| ChatAttachmentDisplayItem, | |
| // Chat types | |
| ChatMessagePromptProgress, | |
| ChatMessageSiblingInfo, | |
| ChatMessageTimings, | |
| ChatMessageType, | |
| ChatRole, | |
| ChatUploadedFile, | |
| // Database types | |
| DatabaseConversation, | |
| DatabaseMessage, | |
| DatabaseMessageExtra, | |
| DatabaseMessageExtraAudioFile, | |
| DatabaseMessageExtraImageFile, | |
| DatabaseMessageExtraLegacyContext, | |
| DatabaseMessageExtraPdfFile, | |
| DatabaseMessageExtraTextFile, | |
| DatabaseMessageExtraVideoFile, | |
| ExportedConversation, | |
| ExportedConversations, | |
| ModelLoadProgress, | |
| // Model types | |
| ModelModalities, | |
| ModelOption, | |
| // Settings types | |
| SettingsChatServiceOptions, | |
| SettingsConfigType, | |
| SettingsConfigValue, | |
| SettingsFieldConfig | |
| } from '$lib/types'; | |
| declare global { | |
| // namespace App { | |
| // interface Error {} | |
| // interface Locals {} | |
| // interface PageData {} | |
| // interface PageState {} | |
| // interface Platform {} | |
| // } | |
| export { | |
| // API types | |
| ApiChatCompletionRequest, | |
| ApiChatCompletionResponse, | |
| ApiChatCompletionStreamChunk, | |
| ApiChatCompletionToolCall, | |
| ApiChatCompletionToolCallDelta, | |
| ApiChatMessageData, | |
| ApiChatMessageContentPart, | |
| ApiContextSizeError, | |
| ApiErrorResponse, | |
| ApiLlamaCppServerProps, | |
| ApiModelDataEntry, | |
| ApiModelLoadStage, | |
| ApiModelsSseProgress, | |
| ApiModelsSseData, | |
| ApiModelsSseEvent, | |
| ApiModelListResponse, | |
| ApiProcessingState, | |
| ApiRouterModelMeta, | |
| ApiRouterModelsLoadRequest, | |
| ApiRouterModelsLoadResponse, | |
| ApiRouterModelsStatusRequest, | |
| ApiRouterModelsStatusResponse, | |
| ApiRouterModelsListResponse, | |
| ApiRouterModelsUnloadRequest, | |
| ApiRouterModelsUnloadResponse, | |
| // Chat types | |
| ChatAttachmentDisplayItem, | |
| ChatMessagePromptProgress, | |
| ChatMessageSiblingInfo, | |
| ChatMessageTimings, | |
| ChatMessageType, | |
| ChatRole, | |
| ChatUploadedFile, | |
| // Database types | |
| DatabaseConversation, | |
| DatabaseMessage, | |
| DatabaseMessageExtra, | |
| DatabaseMessageExtraAudioFile, | |
| DatabaseMessageExtraVideoFile, | |
| DatabaseMessageExtraImageFile, | |
| DatabaseMessageExtraTextFile, | |
| DatabaseMessageExtraPdfFile, | |
| DatabaseMessageExtraLegacyContext, | |
| ExportedConversation, | |
| ExportedConversations, | |
| // Enum types | |
| ModelModality, | |
| ServerRole, | |
| ServerModelStatus, | |
| // Model types | |
| ModelModalities, | |
| ModelOption, | |
| ModelLoadProgress, | |
| // Settings types | |
| SettingsChatServiceOptions, | |
| SettingsConfigValue, | |
| SettingsFieldConfig, | |
| SettingsConfigType | |
| }; | |
| } | |
| declare global { | |
| interface Window { | |
| idxThemeStyle?: number; | |
| idxCodeBlock?: number; | |
| // File System Access API - not in the DOM lib and unavailable in some browsers | |
| showDirectoryPicker?: (options?: { | |
| id?: string; | |
| mode?: 'read' | 'readwrite'; | |
| startIn?: FileSystemHandle | string; | |
| }) => Promise<FileSystemDirectoryHandle>; | |
| } | |
| } | |