Instructions to use plantwaterer/haimation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use plantwaterer/haimation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="plantwaterer/haimation") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("plantwaterer/haimation") model = AutoModelForMultimodalLM.from_pretrained("plantwaterer/haimation", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use plantwaterer/haimation with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "plantwaterer/haimation" # 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/haimation", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/plantwaterer/haimation
- SGLang
How to use plantwaterer/haimation 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/haimation" \ --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/haimation", "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/haimation" \ --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/haimation", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use plantwaterer/haimation with Docker Model Runner:
docker model run hf.co/plantwaterer/haimation
haimation
Licence: the weights and the code in this repository are released under Apache-2.0.
Decision Index 0.3 public score: 67.44 (self-run; +1.65 over plantwaterer/liquamen 65.79). Its board submission (PR #368, opened 2026-11-03) was withdrawn on 2026-11-17 to free the evaluation queue, so it has no private board score. plantwaterer/eshbar-lulilla later continued directly from haimation's weights.
- A continued full fine-tune of plantwaterer/liquamen (google/gemma-4-31B-it) with its own last-layer head.
- Engine:
haimation:Engine, in-process, from this repository. Engine, head, store and executor files are pinned by MD5 inPINS.jsonand checked at load. - Kit: apolinario/decision-index @ 9eb2dbe2a358004c8782c66e40a83ac07b953fec.
Usage
REPO=$(python -c "from huggingface_hub import snapshot_download; print(snapshot_download('plantwaterer/haimation'))")
PYTHONPATH="$REPO" python -m decision_index run --engine haimation:Engine --option model="$REPO" --compact --out runs/haimation
Inference
Precision, attention, averaging, head: bf16; packed document attention (full-attention layers bidirectional within a prompt, sliding-window layers causal); for requests under a length limit, the answer is averaged over 4 option orders. Ordinary choices: the letter logits' softmax at one fitted temperature T = 1.2984 (no posterior). Yes / no decisions: a Laplace posterior on binary (yes / no) decisions, integrated.
Knowledge store and executed answers. After that pass, a question can be answered another way when all of these hold:
- it is the request's only question;
- its options are all plain numbers, or all yes / no (true / false) words;
- the first pass gives no option at least 0.925 (numeric options) or 0.75 (yes / no options).
A numeric question first goes to a bundled knowledge store (country-level statistics; see Third-party components). If the store returns a confident value that matches exactly one option, that option is the answer. Otherwise the model writes one short Python function (greedy decoding, at most 320 new tokens), and a bundled exact-arithmetic executor runs it, in-process, as a GPU kernel. Where the kernel cannot load, the executor's interpreter runs instead, with identical results. The answer changes only when the returned value equals exactly one option and the function computed it (a bare constant return does not count).
In both cases the chosen option gets probability 0.99, and the others share 0.01 in proportion to the first pass. In every other case the output is the first pass's, bit for bit.
Hardware: one GPU with at least 75 GB (bf16 weights 62 GB); fits one RTX PRO 6000 (96 GB). The executor's kernel ships prebuilt (sm_75 to sm_120).
Latency (one RTX PRO 6000 Blackwell, 1,000-row board sample)
Median 312 ms, mean 827 ms, p80 964 ms, p95 2,371 ms. Model load and warm-up (about three minutes) are not included.
Third-party components
haimation/xr_runtime/, the executor: derived from LOOM by Mehmet Kerem Turkcan and contributors (https://github.com/mkturkcan/Loom), Apache License 2.0, modified. Its LICENSE and NOTICE are in that directory.store_table.json, the knowledge store's table: licensed CC BY-SA 4.0. It contains data from Our World in Data (CC BY 4.0), compiled from the producers listed inDATA_NOTICE, including V-Dem (CC BY-SA 4.0). Values are rounded to three significant figures and re-indexed, so the table is a modified version of the original data. Full attribution:DATA_NOTICE.
Training
Continued in two sequential full fine-tuning stages from plantwaterer/liquamen (google/gemma-4-31B-it revision 842da3794eaa0b77d5f08bae87a17459d91ff475, vision tower frozen, bidirectional full-attention layers and causal 1,024-token local layers):
- Intermediate stage (
esbar_final_v1): 1,369 updates x batch 64 = 87,601 decision questions. - Final stage (
esbar_final_v2, shipped as haimation): 1,320 updates x batch 64 = 84,455 decision questions (pack_tokens = 8,192, seed 0), fused fp32 AdamW (betas = (0.9, 0.95),weight_decay = 0.0, clip1.0), peak LR7.5e-7, warmup 30 steps, cosine decay to0.1of peak, parent soft-label weight0.35, Prentice-Pyke case-control offsets on 4,921 sparse binary rows, followed by refitting the last-layer head (T = 1.2984).
Training data
Continued from plantwaterer/liquamen, whose card lists that training data, its licences and attributions; they carry over, including training-split records from ANLI (Nie et al., 2020; CC BY-NC 4.0) and ACOS (Restaurant-ACOS and Laptop-ACOS, Cai et al., 2021; no licence stated upstream). Added in the 84,455-question esbar_final_v2 mixture:
- Decontaminated train splits of CLINC150 (CC BY 3.0), BANKING77 (CC BY 4.0), GSM8K (MIT, 7,614 rows), and HoVer (CC BY-SA 4.0, 950 rows).
- Mathematics train splits and generated problems: DeepMind Mathematics Dataset (Saxton et al., 2019; Apache-2.0 generator, 14,001 rows), AQuA-RAT (Ling et al., 2017; Apache-2.0, 11,000 rows), and MATH (Hendrycks et al., 2021; MIT, 3,738 rows).
- ChessBench training positions from google-deepmind/searchless_chess (CC BY 4.0; portions CC0 from lichess.org; 5,000 rows), labelled with Stockfish.
- LLM Bayesian Teaching Data (CC BY 4.0), MedMCQA (MIT, 418 rows), and author-generated synthetic questions.
- Released datasets and reproducible recipes: author-generated synthetic text datasets and generators at plantwaterer/decision-synthetic-text; open GDELT data at plantwaterer/decision-gdelt-v1; exact
esbar_final_v1/v2source-bucket counts (fs1_vs_e1_lineage.json), licence maps, and builders for non-redistributed third-party datasets at 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)
Overlap with evaluation data
No test split of any benchmark was used. An audit against the Decision Index 0.3 public suite identified 7 overlaps carried in from upstream train splits (same items as in liquamen): 6 ACOS items (0.11% of 5,479 public ACOS rows) from 2 reviews duplicated in ACOS's upstream train and test files (5 from Laptop-ACOS test line 257; 1 from Restaurant-ACOS test line 310), and 1 When2Call question (0.027% of 3,652 rows) sharing the prompt "What is the current weather?" with different tool lists and options.
Capacity limits
- Context: max_len 32,768 tokens; nothing truncated.
- Downloads last month
- 431