Text Generation
Transformers
Safetensors
GGUF
English
qwen3_5
image-text-to-text
decision-model
typed-decisions
calibration
calibrated-probabilities
classification
tool-selection
agent-routing
decision-index
jevbench
jev-compatible
systemone
wald
wald-q4b
qwen3.5
4b
vllm
reasoning
llama.cpp
conversational
Eval Results (legacy)
Instructions to use org2ai/Wald-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use org2ai/Wald-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="org2ai/Wald-4B") 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("org2ai/Wald-4B") model = AutoModelForMultimodalLM.from_pretrained("org2ai/Wald-4B", 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 org2ai/Wald-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "org2ai/Wald-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "org2ai/Wald-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/org2ai/Wald-4B
- SGLang
How to use org2ai/Wald-4B 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 "org2ai/Wald-4B" \ --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": "org2ai/Wald-4B", "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 "org2ai/Wald-4B" \ --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": "org2ai/Wald-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use org2ai/Wald-4B with Docker Model Runner:
docker model run hf.co/org2ai/Wald-4B
File size: 6,145 Bytes
b1b4c4c 981b91b b1b4c4c 981b91b b1b4c4c 4607c2b 981b91b b1b4c4c 981b91b b1b4c4c 981b91b b1b4c4c 1f96041 b1b4c4c 1f96041 981b91b 1f96041 4607c2b 1f96041 981b91b 0b72e5a 981b91b b1b4c4c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | {
"name": "Wald-Q4B",
"version": "v1.2",
"aliases": [
"Wald-4B"
],
"checkpoint": "02600-f19",
"description": "Open-weight 4B decision model that returns a calibrated probability for every option through a Jev-compatible POST /v1/systemone API; one pass or optional thinking; self-hosted. Independent, not affiliated with TypeSafe AI. v1.2 is the robustness release: v1.1 plus one merged LoRA stage against distracting and adversarial text.",
"base_model": "Qwen/Qwen3.5-4B-Base",
"model_url": "https://huggingface.co/org2ai/Wald-4B",
"weights_tag": "v1.2",
"weight_precision": "BF16",
"parameter_scale": "4B",
"license": "Apache-2.0 (weights and code); see PROVENANCE.md for source-data usage limitations",
"use_cases": [
"tool selection",
"agent routing",
"classification",
"clarification decisions"
],
"endpoint": "POST /v1/systemone",
"input_fields": [
"state",
"questions",
"effort"
],
"output": "per-option probabilities",
"default_effort": "none",
"efforts": {
"none": {
"gate": 0,
"generated_thoughts": 0
},
"low": {
"gate": 0.5,
"max_thought_tokens": 512
},
"medium": {
"gate": 0.7,
"max_thought_tokens": 512
},
"high": {
"gate": 1.01,
"max_thought_tokens": 512
},
"high-k2..high-k8": {
"thoughts": "2..8",
"max_tokens_per_thought": 512
}
},
"thinking_scope": "2–26 options and sufficient context; wider sets use grouped readout; insufficient thought space retains initial answer",
"evaluation": {
"jevadvbench": {
"questions": 812,
"attack_types": 9,
"effort": "none",
"mean_flip_rate_pct": 4.6,
"v1_1_mean_flip_rate_pct": 9.2,
"jev_1_13_mean_flip_rate_pct": 6.1,
"paired_diff_vs_v1_1_pp": [
-4.6,
-5.5,
-3.6
],
"clean_accuracy_143_human_reviewed_pct": 76.2,
"v1_1_clean_accuracy_pct": 79.0,
"clean_paired_diff_vs_v1_1_pp": [
-2.8,
-6.2,
-0.6
],
"harness": "JevAdvBench/JevAdvBench@3218e05 request bytes and analysis code",
"status": "self-run; not submitted"
},
"jevbench_public": {
"items": 231,
"effort": "none",
"correct": 204,
"accuracy": 0.8831,
"ece": 0.045,
"brier": 0.191,
"hardware": "NVIDIA RTX 5090 32 GB",
"harness": "fstandhartinger/jevbench@9ec6f15a (jevbench.cli, typesafe adapter, serial, loopback)",
"status": "self-scored; public items were a development scoreboard, not held out; not submitted",
"thinking_check": {
"medium_correct": 198,
"high_correct": 198,
"runs_each": 1
}
},
"decision_index_sample": {
"edition": "0.2.1",
"requests": 6948,
"read": "one pass",
"balanced_skill": 50.03,
"v1_1_balanced_skill": 49.76,
"paired_diff": [
0.27,
-0.36,
1.05
],
"status": "sample only; no complete-suite run for v1.2"
},
"details": "https://huggingface.co/org2ai/Wald-4B/blob/v1.2/evaluation/v1.2/summary.json"
},
"documentation_languages": [
"en",
"zh"
],
"docs": {
"en": "README.md",
"zh": "docs/readmes/README.zh.md",
"serving": "RUNBOOK.md",
"sources": "PROVENANCE.md",
"evaluation_notes": "CONTAMINATION.md",
"api": "docs/api.md",
"citation": "CITATION.cff",
"llms": "llms.txt"
},
"affiliation": "Independent; not affiliated with TypeSafe AI",
"evaluations": [
{
"note": "v1.1 results (not this revision's weights)",
"decision_index_complete_suite": {
"benchmark": "Decision Index",
"edition": "0.2.1",
"scope": "complete suite",
"score": 54.59,
"metric": "balanced_skill",
"requests": 150317,
"ok": 150317,
"effort": "high",
"hardware": "NVIDIA RTX PRO 6000 96 GB",
"status": "author-run; maintainer validation pending",
"submission": "https://github.com/apolinario/decision-index/pull/30"
},
"jevbench_public": {
"benchmark": "JevBench",
"split": "public",
"items": 231,
"effort": "none",
"correct": 203,
"accuracy": 0.8788,
"ece": 0.041,
"brier": 0.188,
"latency_p50_ms": 33,
"latency_p95_ms": 168,
"hardware": "NVIDIA RTX PRO 6000 96 GB",
"harness": "fstandhartinger/jevbench@9ec6f15a (jevbench.cli, typesafe adapter, serial, loopback)",
"status": "self-scored; public items were a development scoreboard, not held out; leaderboard measurement requested",
"request": "https://github.com/fstandhartinger/jevbench/issues/146"
}
}
],
"links": {
"model": "https://huggingface.co/org2ai/Wald-4B",
"github": "https://github.com/org2AI/wald-4b",
"results_dataset": "https://huggingface.co/datasets/org2ai/Wald-Q4B-decision-index-results",
"decision_index_submission": "https://github.com/apolinario/decision-index/pull/30",
"jevbench_request": "https://github.com/fstandhartinger/jevbench/issues/146",
"api": "https://huggingface.co/org2ai/Wald-4B/blob/main/docs/api.md",
"evaluation_summary": "https://huggingface.co/org2ai/Wald-4B/blob/v1.2/evaluation/v1.2/summary.json"
},
"weights_sha256": {
"model-00001-of-00002.safetensors": "0b15067f769e7388bd598aabafa2ea3211a3a0c4e49e47d07c4f65c65ffc25dd",
"model-00002-of-00002.safetensors": "7cff102b314edeb3dc5abfa7063f72ad3e888884da237601239dc3582074120a"
},
"parent_release": {
"version": "v1.1",
"checkpoint": "022D0-f7",
"tag": "v1.1",
"revision": "50f94ecd5d6e7e8459e9c198ef811bfaba12a3fe"
},
"thinking_note": "v1.2 is a one-pass model. On the JevBench public set it scored 198/231 with medium and with high (one run each) against 204/231 with none. Thinking efforts are evaluated on v1.1.",
"training_data_note": "perturbed copies of v1.1 training questions; inserted texts written by Claude Haiku (Anthropic) from our templates; targets are v1.1 answers on the clean questions; no JevAdvBench text"
}
|