← Back to Leaderboard
Kabdullahhsamir

abdullahhsamir/kagllm

A CLI that serves GGUF models from Kaggle GPUs through an OpenAI-compatible API

View on GitHub ↗
Engineering Health (Methodology)
A+ · 89/100
Maintenance Activity
● Updated today
Latest Release
v0.6.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption14/25
Release Cadence20/20
License Clarity20/20
CLIAPI
Total Stars
★ 66
24h Growth
+2
7d Growth
+66
Forks
11

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

abdullahhsamir/kagllm Star History (2026-11-27 - 2026-12-04) DAILY STAR HISTORY (8-DAY D1 TELEMETRY) +65 in 7d · avg +9/day 70 35 0 2026-11-27: ★ 12026-11-28: ★ 292026-11-29: ★ 572026-11-30: ★ 622026-12-01: ★ 632026-12-02: ★ 642026-12-03: ★ 662026-12-04: ★ 66 ★ 66 11-27 11-30 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

kagllm is a Python orchestration CLI, not a local inference engine. Its entry point is kagllm.cli:main; Typer handles commands, Rich and Questionary support the terminal interface, and the manifest includes kaggle, huggingface_hub, requests, and six. Within src/kagllm/, notebook.py generates the remote workload, kaggle_ops.py and hf_ops.py handle service operations, and monitor.py handles monitoring.

The CLI submits a private Kaggle notebook, which reads service credentials from the private kagllm-secrets dataset. The standard path checks a private Hugging Face cache, falls back to a SHA-256-verified public cache, then builds llama.cpp if neither matches. The notebook runs llama-server across two T4s and exposes it through ngrok at a public HTTPS URL gated by an API key. The CLI follows the Kaggle run log for progress and GPU telemetry.

Key Capabilities & Differentiators

The standard serving path is for single-file text GGUFs; vision projectors are skipped. Around 26 GB is the practical model-file target against 30 GB of combined GPU memory, leaving space for context. The CLI browses Hugging Face artifacts by size, and --ctx pins the context size instead of using automatic sizing. Clients can use /v1/chat/completions or /v1/messages and opt into configuration for tools including Qwen Code, OpenCode, and Claude Code. Tool calling still depends on the model's chat template.

For select larger models, Strata keeps dense weights and frequently used experts on GPU and leaves the remaining experts in RAM or on disk. One concrete example is the 58.4 GB Qwen3.8 Flash-Next Coder IQ1_M at 256k context: about 30 minutes to first start, 12–18 minutes on subsequent starts using cached prepared files, and 27–34 tokens/s during generation. Those figures describe that configuration, not a general performance target.

Trade-offs & Limitations

Compared with running llama.cpp directly, kagllm removes the need for a local GPU but gives up control over scheduling, session lifetime, and network exposure. Compared with the OpenAI API, it lets you choose the GGUF artifact, but you take on model selection, startup and session management, and client compatibility checks. The two exposed protocol routes are useful integration points, not evidence of full parity with either provider API.

Kaggle's GPU allocation is about 30 hours per week, a session can last up to 12 hours, and free ngrok allows one tunnel per account. A private notebook does not make its public HTTPS endpoint private; protect the endpoint key and the service tokens kept locally and in a private Kaggle dataset. MIT covers the project code, not model permissions or Kaggle usage rights. Account profiles are for distinct users or teams, not for stacking an individual's free hours.

Hardware & Deployment Guide

Install with Python 3.11+ and uv; the checkout supports uv tool install --editable .. Run kagllm setup with a Kaggle API token, a write-enabled Hugging Face token, and an ngrok authtoken. The remote notebook needs internet access and a dual-T4 allocation. This is a cloud-backed CLI-to-API deployment, not an offline setup, and it does not require a local GPU.

Use kagllm up interactively or supply --repo, --file, and --hours. Leaving the dashboard does not stop the server; use kagllm down to end the run or cancel one awaiting a GPU. A llama.cpp cache miss can mean about 45 minutes of first-time compilation for a CUDA version. Release v0.6.0 renamed kllm to kagllm and added the Strata route for supported models beyond the standard GPU-fit path.

Execution split: The Python CLI manages deployment and monitoring; the Kaggle notebook runs inference on two T4s.
Artifact reuse: The standard path checks a private Hugging Face cache, then a SHA-256-verified public cache, before building llama.cpp.
Model placement: Standard serving targets single-file GGUFs up to about 26 GB; Strata keeps dense weights and frequently used experts on GPU for supported larger models.
Client integration: An API-key-protected ngrok HTTPS endpoint exposes /v1/chat/completions and /v1/messages.
Run controls: --hours limits runtime, --detach exits after readiness, and reconnect recovers an existing run after the terminal closes.
Observability: The live dashboard shows per-T4 GPU load, memory and temperature, plus endpoint health and weekly GPU time.
Best For

Learning GGUF serving, comparing quantized text models, or testing coding-agent integrations on short-lived GPU sessions without a local GPU.

Skip If

You need an always-on endpoint, predictable startup, private-network isolation, offline operation, or guaranteed support for arbitrary large GGUFs.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIAPI
git clone https://github.com/abdullahhsamir/kagllm.git
cd kagllm
uv tool install --editable .

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
kagllm ★66+66PythonMITA CLI that serves GGUF models from Kaggle GPUs through an OpenAI-compatible API
OmniRoute92.2k+1.4kTypeScriptMITSelf-hosted OpenAI-compatible gateway for multi-provider routing and fallback
freellmapi62.1k+2.7kTypeScriptMITSelf-hosted LLM gateway for routing across free tiers and custom endpoints
bifrost10.2k+125GoApache-2.0Self-hosted Go gateway for routing and governing multi-provider LLM traffic

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/abdullahhsamir/kagllm.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

abdullahhsamir/kagllm Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about kagllm

Where does inference run, and how do existing clients connect?

The local CLI submits and monitors a private Kaggle notebook; inference runs in that notebook, not on your workstation. ngrok exposes a public HTTPS endpoint protected by an API key. Point an OpenAI-compatible client at the reported base URL ending in /v1 and supply the model name and key. Anthropic-style clients can use /v1/messages; for coding agents, choose an instruct model with a tool-calling chat template.

How should I size a model for the dual-T4 runtime?

The standard path targets roughly 26 GB for a single GGUF file across two Kaggle T4s, leaving GPU memory for context. Treat that figure as a sizing guide, not a guarantee: model weights and context compete for memory. Strata can run select larger models by moving some expert weights out of VRAM into RAM or disk, adding preparation and storage overhead. A working 58.4 GB example does not establish support for every oversized GGUF.

Does the MIT license make this suitable for commercial or private hosting?

The MIT license applies to the kagllm code, not to the models it serves or the infrastructure it uses. Check the chosen model's license for the intended use and Kaggle's terms separately. A private notebook on your account still runs on external infrastructure, and the ngrok URL is public even though API requests require a key.

When should I choose kagllm over direct llama.cpp or the OpenAI API?

Use kagllm when choosing a specific GGUF and experimenting without a local GPU are more important than endpoint continuity. Run llama.cpp directly on hardware you control when you need to manage networking, uptime, and GPU capacity yourself. Choose a managed API such as OpenAI's when you want provider-hosted models without managing downloads, builds, tunnels, or notebook sessions; similar request formats do not make the model catalogs or APIs identical.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining abdullahhsamir/kagllm? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature abdullahhsamir/kagllm on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare