[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112524":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":44,"updatedAt":45,"readmeContent":46,"aiSummary":47,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":48,"discoverSource":49},112524,"deepseek-colab","leonxger\u002Fdeepseek-colab","leonxger","Uncensored DeepSeek-V4.1-Flash IQ2_XS on Google Colab","",null,"Python",61,6,57,0,2,5,1,43.83,"MIT License",false,"main",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"colab","cuda","deepseek","deepseek-v4","gguf","google-colab","gpu","llama-cpp","llm","llm-inference","llm-serving","mixture-of-experts","openai-api","openai-compatible","opencode","python","quantization","self-hosted","speculative-decoding","uncensored","2026-10-30 18:40:52","2026-11-22 09:26:06","\u003Cdiv align=\"center\">\n\n\u003Ch1>DeepSeek V4.1 Flash on one Colab GPU\u003C\u002Fh1>\n\n\u003Cp>\u003Cb>The uncensored 249 GB model as your own OpenAI-compatible endpoint, at over 100 tokens a second.\u003C\u002Fb>\u003Cbr>\nOne command, one Google Colab G4, no server of your own.\u003Cbr>\nRuns on a Google AI Pro subscription: 200 compute units every month, about 9 per hour of use.\u003C\u002Fp>\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F6ab03b08-6992-4fc6-8d6a-9c809c8c6336\n\n\u003C\u002Fdiv>\n\n## Quick start\n\nYou need a Google AI Pro subscription (200 Colab compute units a month) or Colab Pro (100 a month), Python 3.9 or newer and an SSH client. It runs on Linux, macOS and Windows (PowerShell or cmd; type `python` if `python3` is not found).\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fleonxger\u002Fdeepseek-colab.git deepseek-colab && cd deepseek-colab\npython3 llm.py up\n```\n\nThe first run offers to install Google's Colab CLI, walks you through the Google login and asks for a few defaults (image input, context size, reasoning effort, idle stop; Enter keeps each one). Then it starts a G4 GPU and shows each step until your endpoint is ready:\n\n```text\nStarting a Colab G4 GPU · about 4 minutes\n\n   0:06  ✓  G4 GPU allocated\n   0:12  ✓  image encoder downloaded (1 GB)\n   0:19  ✓  draft model downloaded (8 GB)\n   0:21  ✓  uncensored tensors downloaded (1.7 GB)\n   0:55  ✓  model downloaded (138 GB)\n   2:19  ✓  llama.cpp built\n   2:34  ✓  model loaded onto the GPU\n   2:41  ✓  RAM freed, cold experts pinned\n   3:22  ✓  Engram table loaded (110 GB)\n   3:23  ✓  warmup answer done\n\n✓ Ready after 3:24\n\n  Base URL   http:\u002F\u002F127.0.0.1:18080\u002Fv1\n  API key    sk-ds41-3f9c...\n  Models     ds41 (effort 50) · ds41-max (effort max)\n  Context    262,144 tokens per request · image input on · about 105.6 tok\u002Fs\n\n  Try it     python3 llm.py ask \"Hello!\"\n  opencode   python3 llm.py opencode [project folder]\n  Stop       python3 llm.py down\n\n  ● GPU running   idle 2:13 · stops in 7:47   ran 6:31 · about 0.97 compute units\n```\n\nThe last line stays live: GPU on or off, the countdown to the automatic stop, the cost so far. Paste the base URL and key into any OpenAI-compatible app: Open WebUI, the OpenAI SDKs, curl. `python3 llm.py opencode` starts opencode already connected, in any shell. After 10 minutes without requests the GPU stops by itself, and the next request starts it again. `python3 llm.py down` stops everything right away.\n\n## What you get\n\n| | Images on (default) | Text only, up to 131K (`--fast`) |\n| --- | --- | --- |\n| Decode speed | 105.6 tok\u002Fs | 118.7 tok\u002Fs |\n| Context per request | 262,144 tokens | 131,072 tokens |\n| Image input | yes | no |\n| First token, 8K \u002F 32K prompt | 9.9 \u002F 27.8 s | 8.8 \u002F 23.4 s |\n| Follow-up turns (prompt cache) | about 1 s | about 1 s |\n\nImage input and context size are separate settings. Text only up to 131K gets the faster memory layout; everything else runs at the left column's speed. Both serve two requests at a time, with tool calling and separate reasoning output. Speeds are the average of six fixed answers at reasoning effort max.\n\n## What it costs\n\nThis project costs about **9 Colab compute units per hour** (8.9 measured) while the GPU runs.\n\n| Plan | Compute units every month | GPU hours |\n| --- | --- | --- |\n| Google AI Pro | 200 | about 22 |\n| Colab Pro | 100 | about 11 |\n\nEach start spends about 4 minutes (about 0.6 units) on downloading and loading. When you're not using it, nothing runs and nothing is billed.\n\n## How it works\n\n\u003Cimg src=\"docs\u002Fassets\u002Farchitecture.svg\" width=\"820\" alt=\"Your computer runs llm.py, a local OpenAI endpoint, connected through an SSH tunnel to a Google Colab G4 VM. The GPU (96 GB) holds attention, dense layers, about 7,800 hot experts, the draft model, the KV cache and the image encoder. RAM (190 GB) holds the 110.6 GB Engram table and all other experts, which are copied to the GPU on a miss. Hugging Face supplies about 260 GB per start.\">\n\n- **The model.** ISTA-DASLab's 2-bit GSQ-RCO quantization of DeepSeek V4.1 Flash, which matched the original on their AIME, GPQA and LiveCodeBench runs. At every start, AtomicChat's 82 uncensored tensors are spliced in.\n- **The memory trick.** Each token uses 6 of the 384 experts in a layer, and some experts are used far more than others. The hottest 7,800 live on the GPU. The rest wait in RAM and cross PCIe only on a miss.\n- **The speed.** A small draft model guesses two tokens ahead and the big model checks both in one pass. On top of that, llama.cpp gets 22 patches: fused kernels, an expert cache that runs on the GPU, copies aligned to whole memory lines. Every one was checked to produce the same tokens as the build before it, within floating-point noise.\n\n\u003Cimg src=\"docs\u002Fassets\u002Fspeed.svg\" width=\"820\" alt=\"Decode speed by milestone: first run on IQ2_XS 43.5 tokens per second, GPU expert cache 70, draft model 87, fused kernels 100, device cache lookup 110, aligned copies 118.7. With images and 262K context it runs at 105.6.\">\n\n## Read next\n\n- [SETUP.md](SETUP.md): every platform, settings, connecting apps, troubleshooting.\n- [AGENT_START_HERE.md](AGENT_START_HERE.md): point your AI coding agent here and it can set things up and help you.\n- [docs\u002Fhow-it-works.md](docs\u002Fhow-it-works.md): the memory layout, the boot sequence and every patch.\n\n## Credits\n\nBuilt on DeepSeek V4.1 Flash by DeepSeek, the GSQ-RCO GGUF by ISTA-DASLab, uncensored tensors by AtomicChat, the DSpark draft GGUF by unsloth, llama.cpp by ggml-org and Google's Colab CLI. The model files come straight from their Hugging Face pages, under their licenses.\n\nUncensored means the model refuses less often. What you do with it is up to you.\n\n## What's next\n\nDeepSeek V4.1 Flash is the first model. More models are planned, each tuned for Colab the same way, so that this repo becomes a hub: pick a model at the start, run `up`, and get fast inference from the same optimized kernels and memory layout.\n","这是一个在 Google Colab 上一键部署 DeepSeek-V4.1-Flash（IQ2_XS 量化版）大语言模型的轻量级工具，提供完全开放、无审查的本地化 LLM 推理服务。核心功能包括：OpenAI 兼容 API 接口、支持图像输入与超长上下文（最高 262K tokens）、基于 llama.cpp 的 GPU 加速推理、自动启停与成本监控，并集成 speculative decoding 和 MoE 专家冷热分离优化。适用于个人开发者快速体验前沿开源大模型、构建私有 AI 应用原型、或在受限环境（如无自有服务器）下开展 LLM 实验与轻量生产测试。","2026-11-24 04:43:43","CREATED_QUERY"]