Feature Extraction
Transformers
Safetensors
modernbert
typed-decisions
decision-index
decision-model
cross-encoder
text-embeddings-inference
Instructions to use tasksource/tasksource-decider-nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tasksource/tasksource-decider-nano with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="tasksource/tasksource-decider-nano")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("tasksource/tasksource-decider-nano") model = AutoModel.from_pretrained("tasksource/tasksource-decider-nano", device_map="auto") - Notebooks
- Google Colab
- Kaggle
v5: 64,000 steps on an updated mix (Decision Index 0.3 public 33.51); v4 kept at tag v4
Browse files- README.md +19 -16
- decider_config.json +8 -5
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -5,6 +5,7 @@ base_model: cross-encoder/ettin-reranker-150m-v1
|
|
| 5 |
datasets:
|
| 6 |
- tasksource/tasksource-jev-typed-decisions
|
| 7 |
- tasksource/synthetic-typed-decisions
|
|
|
|
| 8 |
tags:
|
| 9 |
- typed-decisions
|
| 10 |
- decision-index
|
|
@@ -14,10 +15,10 @@ tags:
|
|
| 14 |
|
| 15 |
# tasksource-decider-nano
|
| 16 |
|
| 17 |
-
This repository was `tasksource/tasksource-jev-nano-v1`. Its `main` (tag `
|
| 18 |
-
|
| 19 |
-
[`v3`](https://huggingface.co/tasksource/tasksource-decider-nano/tree/v3)
|
| 20 |
-
[`v2`](https://huggingface.co/tasksource/tasksource-decider-nano/tree/v2), and the previous multi-vector model at
|
| 21 |
[`v1`](https://huggingface.co/tasksource/tasksource-decider-nano/tree/v1).
|
| 22 |
|
| 23 |
A 150M-parameter typed-decision model for the [Decision Index](https://huggingface.co/spaces/multimodalart/jev-decision-index).
|
|
@@ -26,9 +27,9 @@ generate text.
|
|
| 26 |
|
| 27 |
| | |
|
| 28 |
|---|---|
|
| 29 |
-
| Decision Index 0.3, public index | **
|
| 30 |
| Requests | 140,171 `ok`, 7 `unsupported` (pairs above 8,192 tokens) |
|
| 31 |
-
| Latency, 1脳 NVIDIA
|
| 32 |
| Complete results | [runs/tasksource-decider-nano](https://huggingface.co/datasets/tasksource/decision-index-results/tree/main/runs/tasksource-decider-nano) |
|
| 33 |
|
| 34 |
## Architecture
|
|
@@ -68,16 +69,18 @@ python -m decision_index pipeline --engine decision_index_engine:DeciderEngine \
|
|
| 68 |
|
| 69 |
## Training
|
| 70 |
|
| 71 |
-
|
| 72 |
-
cross-entropy over each question's options.
|
|
|
|
| 73 |
|
| 74 |
| Share | Source |
|
| 75 |
|---:|---|
|
| 76 |
-
| 42% | [tasksource/tasksource-jev-typed-decisions](https://huggingface.co/datasets/tasksource/tasksource-jev-typed-decisions) (
|
| 77 |
| 30% | *train* splits of public datasets behind Decision Index benchmarks, e.g. MMLU, ANLI, WinoGrande, HellaSwag, ARC, CLINC150, BANKING77, Amazon ESCI, HoVer, RAGTruth, New Yorker caption contest, When2Call, ACOS, iSarcasmEval, NLI4CT, ContractNLI, GSM8K (at most 10,000 requests each) |
|
| 78 |
-
| 12% | tool use:
|
| 79 |
| 8% | LLM routing: xRouteBench and LLMRouterBench train data |
|
| 80 |
| 8% | [tasksource/synthetic-typed-decisions](https://huggingface.co/datasets/tasksource/synthetic-typed-decisions) |
|
|
|
|
| 81 |
|
| 82 |
No evaluation split is used, and benchmarks without a train split (for example RouterBench) are evaluation only.
|
| 83 |
Every training request goes through a firewall against the Decision Index 0.3 suite: an exact match of the
|
|
@@ -88,10 +91,10 @@ request.
|
|
| 88 |
|
| 89 |
| Area | Skill | Raw |
|
| 90 |
|---|---:|---:|
|
| 91 |
-
| Knowledge & Reasoning |
|
| 92 |
-
| Language Understanding |
|
| 93 |
-
| Retrieval & Classification |
|
| 94 |
-
| Tools & Automation |
|
| 95 |
-
| Arts & Human Taste |
|
| 96 |
|
| 97 |
-
Raw index
|
|
|
|
| 5 |
datasets:
|
| 6 |
- tasksource/tasksource-jev-typed-decisions
|
| 7 |
- tasksource/synthetic-typed-decisions
|
| 8 |
+
- LocalLLaMA/typed-decisions
|
| 9 |
tags:
|
| 10 |
- typed-decisions
|
| 11 |
- decision-index
|
|
|
|
| 15 |
|
| 16 |
# tasksource-decider-nano
|
| 17 |
|
| 18 |
+
This repository was `tasksource/tasksource-jev-nano-v1`. Its `main` (tag `v5`) is the joint cross-encoder trained for
|
| 19 |
+
64,000 steps on an updated mix. Earlier versions stay at their tags: [`v4`](https://huggingface.co/tasksource/tasksource-decider-nano/tree/v4)
|
| 20 |
+
(48,000 steps, public index 30.90), [`v3`](https://huggingface.co/tasksource/tasksource-decider-nano/tree/v3) (24,000 steps, 29.05),
|
| 21 |
+
[`v2`](https://huggingface.co/tasksource/tasksource-decider-nano/tree/v2) (12,000 steps, 26.77) and the previous multi-vector model at
|
| 22 |
[`v1`](https://huggingface.co/tasksource/tasksource-decider-nano/tree/v1).
|
| 23 |
|
| 24 |
A 150M-parameter typed-decision model for the [Decision Index](https://huggingface.co/spaces/multimodalart/jev-decision-index).
|
|
|
|
| 27 |
|
| 28 |
| | |
|
| 29 |
|---|---|
|
| 30 |
+
| Decision Index 0.3, public index | **33.51** |
|
| 31 |
| Requests | 140,171 `ok`, 7 `unsupported` (pairs above 8,192 tokens) |
|
| 32 |
+
| Latency, 1脳 NVIDIA A30 24 GB (shared), one request at a time | median 23 ms 路 mean 33 ms 路 p80 37 ms |
|
| 33 |
| Complete results | [runs/tasksource-decider-nano](https://huggingface.co/datasets/tasksource/decision-index-results/tree/main/runs/tasksource-decider-nano) |
|
| 34 |
|
| 35 |
## Architecture
|
|
|
|
| 69 |
|
| 70 |
## Training
|
| 71 |
|
| 72 |
+
64,000 steps, batches of 8 requests, learning rate 2e-5, inputs up to 2,048 tokens, seed 1. The loss is soft
|
| 73 |
+
cross-entropy over each question's options. 20% of the questions are reworded with task-specific prompt styles, and 5% of
|
| 74 |
+
the questions get a "none of the above" option. The training mix has 480,000 requests:
|
| 75 |
|
| 76 |
| Share | Source |
|
| 77 |
|---:|---|
|
| 78 |
+
| 42% | [tasksource/tasksource-jev-typed-decisions](https://huggingface.co/datasets/tasksource/tasksource-jev-typed-decisions) (release `9fe3dd87`, balanced across tasks) |
|
| 79 |
| 30% | *train* splits of public datasets behind Decision Index benchmarks, e.g. MMLU, ANLI, WinoGrande, HellaSwag, ARC, CLINC150, BANKING77, Amazon ESCI, HoVer, RAGTruth, New Yorker caption contest, When2Call, ACOS, iSarcasmEval, NLI4CT, ContractNLI, GSM8K (at most 10,000 requests each) |
|
| 80 |
+
| 12% | tool use: Glaive, xLAM, ToolACE and Hermes function calling, ToolRet train, Home Assistant tool calls (at most 60,000 questions per source) |
|
| 81 |
| 8% | LLM routing: xRouteBench and LLMRouterBench train data |
|
| 82 |
| 8% | [tasksource/synthetic-typed-decisions](https://huggingface.co/datasets/tasksource/synthetic-typed-decisions) |
|
| 83 |
+
| 0.5% | [LocalLLaMA/typed-decisions](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) *train* (2 passes) |
|
| 84 |
|
| 85 |
No evaluation split is used, and benchmarks without a train split (for example RouterBench) are evaluation only.
|
| 86 |
Every training request goes through a firewall against the Decision Index 0.3 suite: an exact match of the
|
|
|
|
| 91 |
|
| 92 |
| Area | Skill | Raw |
|
| 93 |
|---|---:|---:|
|
| 94 |
+
| Knowledge & Reasoning | 9.7 | 31.9 |
|
| 95 |
+
| Language Understanding | 38.6 | 57.6 |
|
| 96 |
+
| Retrieval & Classification | 50.1 | 64.0 |
|
| 97 |
+
| Tools & Automation | 50.9 | 54.4 |
|
| 98 |
+
| Arts & Human Taste | 16.6 | 44.7 |
|
| 99 |
|
| 100 |
+
Raw index 50.38; kit `9eb2dbe`, edition 0.3, 140,171 requests scored.
|
decider_config.json
CHANGED
|
@@ -4,19 +4,21 @@
|
|
| 4 |
"base": "cross-encoder/ettin-reranker-150m-v1",
|
| 5 |
"train_max_length": 2048,
|
| 6 |
"inference_max_length": 8192,
|
| 7 |
-
"step":
|
| 8 |
"train": {
|
| 9 |
"arch": "joint",
|
| 10 |
"opt_pool": "marker",
|
| 11 |
"shuffle_options": false,
|
| 12 |
-
"
|
|
|
|
|
|
|
| 13 |
"extra_manifest": null,
|
| 14 |
"extra_frac": 0.0,
|
| 15 |
"lr": 2e-05,
|
| 16 |
"batch_requests": 8,
|
| 17 |
"max_k": 32,
|
| 18 |
-
"seed":
|
| 19 |
-
"total_steps":
|
| 20 |
"max_length": 2048,
|
| 21 |
"pack": 0,
|
| 22 |
"init": null,
|
|
@@ -25,7 +27,8 @@
|
|
| 25 |
"layout": "shared",
|
| 26 |
"pool": "opt",
|
| 27 |
"row_tokens": 8192,
|
| 28 |
-
"tok_budget": 12288
|
|
|
|
| 29 |
},
|
| 30 |
"layout": "shared",
|
| 31 |
"pool": "opt",
|
|
|
|
| 4 |
"base": "cross-encoder/ettin-reranker-150m-v1",
|
| 5 |
"train_max_length": 2048,
|
| 6 |
"inference_max_length": 8192,
|
| 7 |
+
"step": 64000,
|
| 8 |
"train": {
|
| 9 |
"arch": "joint",
|
| 10 |
"opt_pool": "marker",
|
| 11 |
"shuffle_options": false,
|
| 12 |
+
"nota": 0.05,
|
| 13 |
+
"long": null,
|
| 14 |
+
"manifest": "runs/manifests/mix_480k_9fe3dd87_tool3_td05.jsonl",
|
| 15 |
"extra_manifest": null,
|
| 16 |
"extra_frac": 0.0,
|
| 17 |
"lr": 2e-05,
|
| 18 |
"batch_requests": 8,
|
| 19 |
"max_k": 32,
|
| 20 |
+
"seed": 1,
|
| 21 |
+
"total_steps": 64000,
|
| 22 |
"max_length": 2048,
|
| 23 |
"pack": 0,
|
| 24 |
"init": null,
|
|
|
|
| 27 |
"layout": "shared",
|
| 28 |
"pool": "opt",
|
| 29 |
"row_tokens": 8192,
|
| 30 |
+
"tok_budget": 12288,
|
| 31 |
+
"attn": "cached"
|
| 32 |
},
|
| 33 |
"layout": "shared",
|
| 34 |
"pool": "opt",
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 298044578
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef09f0a1f2490512e69e56af9870fecfbfe321bccf18fb46427e511193ec1c1b
|
| 3 |
size 298044578
|