Instructions to use plantwaterer/eshbartur with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use plantwaterer/eshbartur with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="plantwaterer/eshbartur") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("plantwaterer/eshbartur") model = AutoModelForCausalLM.from_pretrained("plantwaterer/eshbartur", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use plantwaterer/eshbartur with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "plantwaterer/eshbartur" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plantwaterer/eshbartur", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/plantwaterer/eshbartur
- SGLang
How to use plantwaterer/eshbartur with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "plantwaterer/eshbartur" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plantwaterer/eshbartur", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "plantwaterer/eshbartur" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plantwaterer/eshbartur", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use plantwaterer/eshbartur with Docker Model Runner:
docker model run hf.co/plantwaterer/eshbartur
eshbartur
Licence: the weights and the code in this repository are released under Apache-2.0.
eshbartur is a 4.21B-parameter text-only decision model fine-tuned from Qwen/Qwen3.5-4B (revision 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a, Apache-2.0; vision encoder and MTP head omitted, retaining the pure-text Qwen3_5ForCausalLM backbone). It natively scores all three Decision Index question types (choice, noul, score) with up to 255 options per question in a single forward pass with no token decoding.
This repository holds the merged bf16 weights (model-*.safetensors, 8.41 GB across 2 shards, Qwen3_5ForCausalLM layout with pure-text config.json and Qwen3.5-4B's unchanged tokenizer and chat-template files), a calibrated 255-way fp32 linear readout (readout.safetensors: weight [255, 2560] and bias [255] with held-out calibration temperature T = 1.40 folded directly into weight and bias), and a standalone Decision Index engine (eshbartur.py).
Architecture & Inference
- Non-causal full attention: the 8 full-attention layers attend bidirectionally over each prompt via
transformers' nativeAttentionMaskInterface(4D right-padded boolean key mask for multi-question batches,is_causal=False); the 24 Gated DeltaNet recurrent layers remain causal. - Zero-duplication prompt layout + RE2 (Read-Twice): system prompt followed by a concise user turn (
Question:+ optionalContext:+Options:for single-question requests;Questions to consider:+ optionalContext:+Selected Question:+Options:for multi-question requests), ending atAnswer: (. Prompts with<= 2,048tokens are presented twice separated by a short re-read bridge (Read the same input again before answering:) so the causal Gated DeltaNet layers attend over the full context and all options on the second pass. - Batched multi-question scoring: multi-question requests are sorted by length and scored in right-padded batches (
<= 8questions and<= 12,288padded tokens per batch) with zero padding leakage. - Calibrated 255-way readout: the last prompt token's final hidden state passes through a learned 255-way fp32 linear readout over 255 boundary-stable single-token answer codes (initialized from the base model's
lm_headrows), with scalar calibration temperatureT = 1.40(fit on held-out dev data) folded directly intoreadout.safetensors(weight / 1.40,bias / 1.40). Softmax over the question'skoptions yieldschoiceprobabilities,noulcalibrated true probability, orscoreexpected value and level probabilities. - Capacity limits:
max_len = 65,536tokens, up to255options per question; no truncation and no option filtering.
Usage
Requires Linux x86_64 and uv. The repository is ~8.4 GB and requires no external OCR or auxiliary models.
uvx --from huggingface_hub hf download plantwaterer/eshbartur --local-dir eshbartur
cd eshbartur
bash install.sh
uv run --frozen python -m decision_index run --engine eshbartur:Engine --compact --out runs/eshbartur
Run from the repository directory so Python finds eshbartur.py. bash install.sh runs uv sync --frozen (Python 3.12, PyTorch 2.14.1 CUDA 13.0, transformers==5.23.0, flash-linear-attention==0.5.2, decision-index @ 9eb2dbe2) and verifies the GPU environment via selfcheck.py.
In Python (uv run --frozen python):
from eshbartur import Engine
engine = Engine() # loads weights & calibrated 255-way readout on cuda:0
response, _ = engine(
{"document": "The quarterly filing confirmed revenue rose 14% year over year."},
{"sentiment": {"type": "choice", "instructions": "Classify the financial tone.",
"criteria": {"pos": "Positive", "neg": "Negative", "neu": "Neutral"}}},
)
print(response["answers"]["sentiment"])
Requirements:
- GPU: fits comfortably on a 16 GB+ GPU (bf16 weights 8.41 GB; peak VRAM measured at 12,725 MiB (13.3 GB) on RTX PRO 6000 and 14,957 MiB (15.7 GB) on H200 during the 1,000-row public latency benchmark). Tested end-to-end from an empty
uvcache on NVIDIA RTX PRO 6000 Blackwell and NVIDIA H200.
Training
Fine-tuned from Qwen/Qwen3.5-4B (851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a) as pure-text Qwen3_5ForCausalLM with rank-32 (alpha=64) LoRA on all 248 linear matrices and a learned 255-way fp32 linear readout:
- Training set: 445,594 decision questions under 334 source labels (322 distinct sources; 12 are counted a second time for questions taken from multi-question requests) (
436,899choice,8,438nativenoul,257nativescore, including27,122multi-question rows from13,561multi-question requests). - Teacher and loss: weighted KL divergence (soft-label cross-entropy;
1.0teacher weight,0.0gold weight,0.0label smoothing) to output probabilities from MachinePulseAI/karpo-decision-31B (PR #391, revisiond69cdd57eab23271cbe65236ca8a00d80d7bb8c7), run in machinepulse-ai/karpo-decision (a6fa38bf4e8de9dbdb9491fb461b9b320a2e2118, viewjoint,T=1) on 15-16 November 2026 UTC (340,926kept rows on 15 November;104,668on 16 November). Nokarpo-decision-31Bweights were used to initialize, merge into, or ship with this model. - Teacher licence history: revision
d69cdd57was downloaded on 15 November under the MachinePulse Community License (effective 12 November 2026), whose Section 8(f) states: "A model trained only on outputs generated by the Software or a Derivative Work, and which does not incorporate any of their model weights, is not a Derivative Work." On 16 November 2026 (06b966b9e154/b8e6fd7463ce), MachinePulse relicensed those same weight files (13/13identical safetensors shards) under Apache-2.0, prior to the 16 November teacher runs and to model training. - Training runs and selection: run 3 of 3; run 1 (causal,
r=64,lr=2e-4), run 2 (causal,r=16,lr=4e-5), and run 3 (bidirectional attention on the eight full-attention layers, RE2 read-twice,r=32,lr=4e-5) scored56.93,60.32, and64.39on a 4,400-row public screen while improving on both internal sets. The final checkpoint was selected among five checkpoint/averaging variants using both internal sets and the 4,400-row screen. - Schedule: 1 epoch (
3,516optimizer steps, effective batch 128, cosine LR4e-5LoRA /2e-4readout, weight decay0.02, uniform random option permutation per step). - Calibration: scalar temperature
T = 1.40was fit on half of an internal 7,551-decision dev set and checked on the other half (ECE0.0576 -> 0.0178,-69%; NLL0.7141 -> 0.6908) and on a 10,899-question internal eval sample (ECE0.0579 -> 0.0161,-72%; NLL0.6436 -> 0.6143), then folded intoreadout.safetensorswith zero runtime overhead and no change tochoiceargmax. - Export: the 248 LoRA adapters were merged into the text backbone in fp32 with a single bf16 rounding, vision tower and MTP head removed. Independent bit-exact verification confirmed all 427 loaded tensors and both fp32 readout tensors (
weight,bias) are bit-identical (0differing tensors,0leaks), and live engine parity against the unexported checkpoint matched1,635 / 1,635(100.0%) choices withmax |dp| = 1.8e-7.
Evaluation
Decision Index 0.4.1 board status: submitted in PR #496 (opened 2026-11-20); pending private board evaluation as of the 2026-11-21 snapshot (board).
Decision Index Text 0.3, public suite: all 140,620 requests (140,178 scored, 37 benchmarks across 5 areas). Executed directly through this repository's standalone files, bash install.sh (uv sync --frozen), and eshbartur:Engine (no engine options, kit commit 9eb2dbe2a358004c8782c66e40a83ac07b953fec) sharded 8-way across 8 x NVIDIA H200 GPUs and scored with decision_index score --edition 0.3. Complete run files are in plantwaterer/eshbartur-decision-index.
| Metric | Score | Notes |
|---|---|---|
| Decision Index 0.3 (balanced skill) | 63.23 | 140,178 / 140,178 scored (complete: true) |
| Balanced raw | 72.56 | 140,620 run, 0 errors, 0 unsupported |
| Breadth skill | 61.99 | 100% coverage across all 5 areas |
| Area | Benchmarks | Coverage | Skill (%) | Raw (%) |
|---|---|---|---|---|
| Knowledge | 11 | 100% | 44.76 | 56.72 |
| Language | 9 | 100% | 66.94 | 76.86 |
| Retrieval | 6 | 100% | 69.12 | 76.80 |
| Tools | 5 | 100% | 82.76 | 84.46 |
| Arts | 6 | 100% | 53.86 | 72.19 |
Internal development sets (non-public):
- 10,899-question sample across 31 internal eval sets (ESCI test queries removed):
73.38micro accuracy,69.68mean over 43 source groups (ECE = 0.0161). Includes 300 public Decision Index HLE items; several sets share source datasets with training on separate splits. - 7,551-decision dev set across 44 source families:
70.49micro accuracy,75.48mean over families;ECE = 0.0178on the half not used to fitT. At least 21 of the 44 families (23 counting two near-matches by name) also appear in training on separate rows. - Both sets were used to fit
Tand (with the 4,400-row public screen) to pick the final checkpoint among five variants. Neither predicted private new-domain rankings in our checks, and teacher overlap with these sets is unknown.
Latency (1 x NVIDIA RTX PRO 6000 Blackwell 96 GB, sequential, 1,000-row public board sample): measured one request at a time via decision_index run --engine eshbartur:Engine --compact starting from empty kernel caches, excluding 8.6 s model load and kernel warm-up:
| Median | Mean | p80 | p95 | p99 | Max | > 1,000 ms | Peak VRAM |
|---|---|---|---|---|---|---|---|
| 37.6 ms | 229.5 ms | 92.4 ms | 360.8 ms | 5,184.7 ms | 20,235.6 ms | 32 / 1,000 | 12,725 MiB |
Cross-GPU parity (RTX PRO 6000 vs H200 scored run on the 1,000-row sample, 2,421 questions): 2,325 / 2,327 (99.91%) identical choices (med |dp| = 0.0007). On 1 x NVIDIA H200 (same 1,000-row sample): median 73.6 ms, mean 195.6 ms, p80 96.1 ms, p95 290.8 ms, peak VRAM 14,957 MiB. Across the full 140,620-row run (8 shards on 8 x NVIDIA H200): median 41.1 ms, mean 136.2 ms, p80 95.4 ms, p95 245.6 ms.
Data Filtering & Attribution
No test split of any benchmark in Decision Index 0.3 was used in training. One source, CLINC150, was built from its train and validation splits (2,492 of its 14,088 questions are validation-split records; the Decision Index scores CLINC150 on its test splits). Excluded prior to training: sources with restrictive or contested licences (HellaSwag, cfcolor), synthetic chess traces, and two question families whose answer keys the teacher agreed with only about half the time (LOOMD-phish_v5, 4,259 questions, and train_hover, 702 questions; together the list droplist_roundH). Other HoVer-derived questions remain in the training data. Training questions derive from train splits of public NLP, reasoning, math, retrieval, and tool-use datasets (including Amazon ESCI, WinoGrande, CLINC150, GSM8K, AQuA-RAT, DeepMind Mathematics, MedQA, MedMCQA, PubMedQA, SuperGPQA, BANKING77, MultiRC, ContractNLI, RAGTruth, VAST, ACOS, When2Call, HoVer, Toucan-1.5M (also recast as questions in the format of BFCL and ToolRet; no BFCL or ToolRet item is used), EX-FEVER, WANDS, and synthetic decision items) paired with soft teacher distributions; some constituent NLP datasets carry non-commercial, research-only, or unstated licences. None of the third-party training data is redistributed here.
Released datasets and reproducible recipes:
- Author-generated synthetic text datasets and generators (CC BY-SA 4.0): plantwaterer/decision-synthetic-text
- Open GDELT event-forecasting dataset and builder: plantwaterer/decision-gdelt-v1
- Full 334-label source counts (
fs1_source_counts.json), primary-source licence table (fs1_upstream_map.tsv), and assembly scripts (scripts/kudhab_eshbartur/t4b_prep_data.py,fs5h_build.py) for reproducing the 445,594-question training pool from upstream sources: plantwaterer/decision-text-recipes - Additional released text datasets (CC BY-SA 4.0): plantwaterer/decision-synthetic-extra, plantwaterer/decision-realdata-rd3, plantwaterer/decision-bayes-worlds, and plantwaterer/decision-numeric-full
- End-to-end training, data-building, head-fitting, distillation, merging, and export scripts (Apache-2.0): plantwaterability/decision-repro (Hugging Face mirror: plantwaterer/decision-repro)
- Downloads last month
- 75