Text Classification
Transformers
Safetensors
English
qwen3_5_text
text-generation
decider
systemone
jev
decision-model
qwen3.5
post-train
text-to-typed-output
structured-output
classification
tool-calling
routing
moderation
custom-code
Eval Results (legacy)
Instructions to use Jeetu456/decider-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jeetu456/decider-2b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Jeetu456/decider-2b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Jeetu456/decider-2b") model = AutoModelForCausalLM.from_pretrained("Jeetu456/decider-2b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download handler.py from Jeetu456/decider-2b: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/Jeetu456/decider-2b/resolve/main/handler.py
- Command line
-
hf download hf://Jeetu456/decider-2b/handler.py
-
curl -L -o handler.py https://huggingface.co/Jeetu456/decider-2b/resolve/main/handler.py
1.06 kB
| """Hugging Face Inference Endpoints handler (custom container task). | |
| Deploy: on the model page choose Deploy -> Inference Endpoints, pick a GPU (or CPU) instance; the | |
| endpoint installs requirements.txt and serves this class. Send a Jev/SystemOne request as the JSON | |
| body, either directly or under "inputs"; a list of requests returns a list of responses. | |
| """ | |
| import os | |
| import sys | |
| from typing import Any | |
| import torch | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| from decider_model import load_release_model, systemone # noqa: E402 | |
| class EndpointHandler: | |
| def __init__(self, path: str = ""): | |
| path = path or os.path.dirname(os.path.abspath(__file__)) | |
| self.model = load_release_model(path, device="cuda" if torch.cuda.is_available() else "cpu") | |
| def __call__(self, data: dict[str, Any]) -> Any: | |
| request = data.get("inputs", data) if isinstance(data, dict) else data | |
| if isinstance(request, list): | |
| return [systemone(self.model, r) for r in request] | |
| return systemone(self.model, request) | |