Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

snif-qwen-deepseek

by Hari Krishna csharikrishna/snif-qwen-deepseek

snif-qwen-deepseek is an open-weight model for text generation from Hari Krishna, released under MIT License. It has 17M parameters. At 16-bit it needs about 0 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

SNIF (StateGate Neural Inference Fabric) is an open-source composite causal language model that dynamically connects Qwen2.5-0.5B (Edge Prefill and Fast Decode) and DeepSeek-R1-1.5B (Cognitive Reasoning) via a continuous 2048-dimensional latent interconnect.

Parameters17M
Context—
Weights67.6 MB
Licensemit
AccessOpen weights
Monthly Downloads—

Runs On

What it takes to serve snif-qwen-deepseek (17M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 18, 2026.

snif-qwen-deepseek on every accelerator the SAVRN Index prices, at every precision

Model Card

By Hari Krishna, published under mit, revision b81c70f9441f.

SNIF (StateGate Neural Inference Fabric) is an open-source composite causal language model that dynamically connects Qwen2.5-0.5B (Edge Prefill and Fast Decode) and DeepSeek-R1-1.5B (Cognitive Reasoning) via a continuous 2048-dimensional latent interconnect. Note: Research paper and extended theoretical evaluation in preparation.

Read Hari Krishna's full model card

SNIF: StateGate Neural Inference Fabric (Qwen2.5-0.5B + DeepSeek-R1-1.5B)

SNIF (StateGate Neural Inference Fabric) is an open-source composite causal language model that dynamically connects Qwen2.5-0.5B (Edge Prefill and Fast Decode) and DeepSeek-R1-1.5B (Cognitive Reasoning) via a continuous 2048-dimensional latent interconnect.

Author: CS Hari Krishna ([email protected])
Repository: csharikrishna/stategate
License: MIT


Architecture Highlights

  • Continuous Latent Deliberation: Zero intermediate text tokens transferred across models during routing.
  • Asymmetric Compute Efficiency: Confident queries complete via lightweight edge prefill; complex queries escalate dynamically to deep reasoning.
  • Low Hardware Footprint: Active memory footprint is ~1,980 MiB VRAM, enabling execution on consumer GPUs and free Google Colab environments.
  • Concise Decode: Bounded conclusion decoding avoids repetitive multi-paragraph derivations, delivering up to 3.5x faster decode latency.

Quickstart

1. Installation

pip install torch transformers safetensors accelerate sentencepiece tiktoken

2. Inference

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo_id = "csharikrishna/snif-qwen-deepseek"
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.float16 if torch.cuda.is_available() else torch.float32

# Load tokenizer and composite model
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    repo_id,
    trust_remote_code=True,
    torch_dtype=dtype,
    device_map="auto" if torch.cuda.is_available() else None,
)
if device == "cpu":
    model = model.to("cpu")
model.eval()

# 1. Factual Query (Fast exit locally via Qwen)
prompt1 = "What is the boiling point of water at sea level?"
inputs1 = tokenizer(prompt1, return_tensors="pt").to(model.device)
out1 = model.generate(**inputs1, max_new_tokens=40, do_sample=False)
print("Answer 1:", tokenizer.decode(out1[0][inputs1.input_ids.shape[-1]:], skip_special_tokens=True).strip())
print("Telemetry 1:", model.last_routing_info)

# 2. Logic Query (Escalates via 2048D NeuralBus to DeepSeek-R1 with Dynamic CHOP)
prompt2 = "If all bloops are razzies and some razzies are snarks, are all bloops snarks? State conclusion concisely."
inputs2 = tokenizer(prompt2, return_tensors="pt").to(model.device)
out2 = model.generate(**inputs2, max_new_tokens=40, do_sample=False)
print("Answer 2:", tokenizer.decode(out2[0][inputs2.input_ids.shape[-1]:], skip_special_tokens=True).strip())
print("Telemetry 2:", model.last_routing_info)
# Example Telemetry:
# {
#   'route_taken': 'ESCALATE_CHOP',
#   'p_uncertainty': 0.4888,
#   'reasoning_layers_executed': 13,
#   'reasoning_layers_saved': 15,  # 53.6% compute reduction!
#   'chop_stability': 0.8769,
#   'intermediate_text_tokens': 0,
#   'elapsed_ms': 3058.4
# }

System Architecture

  • Small Model (Edge): Qwen/Qwen2.5-0.5B-Instruct (896D, 24 layers, 494M params)
  • Big Model (Reasoning): deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B (1536D, 28 layers, 1.78B params)
  • Latent Interconnect: Universal 2048D Lingua Franca Hub
  • Routing Policy: Pre-generation latent routing evaluating intermediate activations at Layer 9.

Citation

@misc{stategate2026,
  author = {CS Hari Krishna},
  title = {StateGate: Pre-Generation Latent Meta-Routing for Cost-Optimal Language Model Inference},
  year = {2026},
  publisher = {GitHub},
  howpublished = {\url{https://github.com/csharikrishna/stategate}}
}

Note: Research paper and extended theoretical evaluation in preparation.


License and Trademark Notice

  • Software and Model Weights License: MIT License
  • Copyright: Copyright (c) 2026 CS Hari Krishna. All rights reserved.
  • Trademark Notice: The names "StateGate", "SNIF", and "NeuralBus" are project and research identifiers belonging to CS Hari Krishna. This open-source license grants permission to use the software and weights, but does not grant rights to use these names to endorse or promote derivative products without attribution.

Configuration

Architecture
SNIFForCausalLM
Stored precision
float32
Model type
snif

Identity and Version

Repository
csharikrishna/snif-qwen-deepseek
Publisher
Hari Krishna
Task
Text generation
Modality
Text
Library
transformers
Parameters
17M parameters
Languages
en
Revision
b81c70f9441fa91a692fb1d43cb8ac3e567d82c0
First published
2026-10-09
Last updated
2026-10-10

Files and Weights

19 files, 82.5 MB in total. The weights are 1 file totalling 67.6 MB in safetensors.

Weights1 file · 67.6 MB
Configuration5 files · 28.8 KB
Tokenizer2 files · 11.4 MB
Documentation2 files · 6.5 KB
Other8 files · 3.5 MB
Repository1 file · 2.0 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights67.6 MB 2e5c938f6da6
config.jsonConfiguration760 B —
configuration_snif.pyConfiguration1.9 KB —
example_usage.pyConfiguration3.3 KB —
generation_config.jsonConfiguration162 B —
modeling_snif.pyConfiguration22.7 KB —
LICENSEDocumentation1.6 KB —
README.mdDocumentation4.8 KB —
SNIF_Quickstart.ipynbOther12.6 KB —
assets/snif_benchmark_real_card.pngOther362.0 KB f7f3871ed65f
assets/snif_developer_desk.jpgOther739.5 KB 1e53e5d39e2e
assets/snif_linkedin_hero.jpgOther867.0 KB 058ae82f8548
assets/snif_linkedin_realistic.jpgOther767.9 KB 57aca0ae776d
assets/snif_real_benchmark_card.pngOther160.2 KB a36edbec18e4
assets/snif_realistic_hardware_card.jpgOther562.6 KB 7000fa240898
chat_template.jinjaOther2.6 KB —
.gitattributesRepository2.0 KB —
tokenizer.jsonTokenizer11.4 MB 3fd169731d2c
tokenizer_config.jsonTokenizer694 B —

License and Download

License
mit
Access
Open weights, no gate
Download size
67.6 MB
Download from Hari Krishna

Released by Hari Krishna through its official repository on Hugging Face. Read the license.

Memory Requirements

PrecisionWeights in memory
As published67.6 MB
16-bit0.0 GB
8-bit0.0 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About snif-qwen-deepseek

How much GPU memory does snif-qwen-deepseek need?

About 0 GB at 16-bit and 0 GB at 4-bit: the weights (17M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run snif-qwen-deepseek on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use snif-qwen-deepseek commercially?

Yes. snif-qwen-deepseek is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Text generation

hypa-tiny-keys

Hypa-Intelligence

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 15M parameters 512 tokens transformers

Model · Text generation

nanoBeard-sloop-14M

Lo Jahn

A tiny pirate-themed GPT trained from scratch on a piratized version of TinyStories, then SFT-tuned. Built as a learning project — closer to nanoGPT than to a production LM. - model.safetensors — model weights. - config.json — architecture config (load into training.config.Config). - piratebpe.json — tokenizer (load with tokenizers.Tokenizer.fromfile). - trainingmetadata.json — full training config + metrics snapshot. - banner.png — the banner above. This model is not a transformers model — it uses the custom GPT class from this repo. - Trained on a small synthetic corpus (TinyStories, piratized). Vocabulary, grammar, and world knowledge are extremely narrow. - Short context window (256…

Open weights 14M parameters pytorch

Model · Text generation

Hush-Nano-Chat

Leecz

Hush-Nano-Chat is an English, single-turn instruction-tuned version of Soulitude/Hush-Nano. It starts from the 22M-parameter pretrained model and uses supervised fine-tuning (SFT) on instruction–response pairs. Due to the model's limited parameters, its response can be inaccurate, incomplete, or inconsistent. Hush-Nano-Chat has the following features: The base model was pretrained on 8.5B tokens (8,554,042,292) drawn from the following subsets: Then it was fine-tuned on a mixture of the following datasets: unsloth/alpaca-cleaned, databricks/databricks-dolly-15k, and HuggingFaceH4/norobots. Only the assistant response and ending EOS token contribute to the training loss. Zero-shot normalized…

Open weights apache-2.0 23M parameters 1,024 tokens transformers

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 11M parameters transformers

Model · Text generation

ldt-10m

Compactbot

A 10,284,480-parameter LLaMA-style text model, trained from scratch. This is a verified first checkpoint for the LDT-10M request (model-requests #12, DedeProGames) — real weights, real training, but undertrained (see the honest status below). It is not a quality release yet; the card states that plainly. Standard LLaMA block, no sliding window, no GQA: The parameter count is the learnable total: the raw safetensors sum is 14,216,640, which double-counts the tied embedding (tok.weight 12288×320 = 3,932,160) that head.weight aliases. Tied, the true count is 10,284,480. - Trained from scratch (no base model). The model learned real context — val loss 4.602 is well below the 7.38 unigram floor…

Open weights mit 10M parameters 512 tokens transformers

日本語の約1,000万パラメータBaseモデルに、二つの情報を答える64件の教材で SFT(教師あり追加学習)を行った最終重みです。一般会話の品質は改善せず、 リポジトリと全ファイルはpublicで、アクセス申請・ログインなしで取得できます。 10,001,152 parameters、13層、hidden256、FFN640、GQA 4Q/2KV、語彙4096、 context1024。元Baseからfresh Adam、seed42、LR1e-4、BF16/mathで483更新、 250,003 Assistant教師tokenを学習しました。64教材は8組の事実設定の変形です。 親Baseは研究保存版のweb-10bです。 最大32tokenのgreedy、BF16/mathによる固定DEV評価です。全1,973応答を Codexで非blind判定しており、独立人手評価や一般的な利用全体の精度ではありません。 空応答、同文反復、履歴の訂正失敗、UTF8破損が残ります。 inspectmodel.pyはCPU FP32、nativeモデル、元の対話テンプレートとprotected-byte Tokenizer、greedy、EOT7/EOS3停止、特殊ID六つの抑制を使います。実際の本文と 停止理由をJSONで返します。CPU FP32の試用は上表のBF16評価と精度条件が異なります。 AutoModelForCausalLMやAutoTokenizerの標準形式ではありません。…

Open weights 10M parameters pytorch