Instructions to use Archit-01/decisions-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Archit-01/decisions-tiny with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Archit-01/decisions-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,666 Bytes
33ee54a ca35a8a 33ee54a ca35a8a 33ee54a ca35a8a 33ee54a ca35a8a 33ee54a ca35a8a 33ee54a ca35a8a 33ee54a ca35a8a 33ee54a ca35a8a | 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 | ---
language:
- en
license: other
library_name: transformers
tags:
- decision-model
- classification
- qwen
---
# decisions-tiny
A small fine-tuned decision model inspired by the System 1 / typed-decision approach used by models such as JEV. It performs structured decisions from natural-language inputs, including categorical classification and yes/no-style decisions.
## Model Details
- **Base model:** `Qwen3.5-0.8B`
- **Fine-tuning:** LoRA with 4-bit base-model loading
## Dataset
- **Dataset:** [LocalLLaMA/typed-decisions](https://huggingface.co/datasets/LocalLLaMA/typed-decisions)
## Evaluation
| Metric | Score |
|---|---:|
| Accuracy | 0.7035 |
| Record accuracy | 0.2375 |
| Loss | 1.0787 |
## Inference
```python
from unsloth import FastDecisionModel
model, tokenizer = FastDecisionModel.from_pretrained(
model_name="Archit-01/decisions-tiny",
max_seq_length=2048,
load_in_4bit=True,
)
FastDecisionModel.for_inference(model)
text = (
"Hi, I was charged twice for invoice #4411. "
"Please refund the duplicate today."
)
schema = {
"team": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, errors",
"sales": "pricing, new plans",
},
},
"refund": {
"type": "noul",
"instructions": "Does the customer ask for a refund?",
},
}
answers = FastDecisionModel.predict(
model, tokenizer, text, schema
)
print(answers["team"]["answer"])
print(answers["team"]["probabilities"])
print(answers["refund"]["answer"])
|