Zero-Shot Classification
Transformers
Safetensors
qwen3_5
feature-extraction
decision-model
multimodal
structured-output
apus
custom_code
Instructions to use gump2049/APUS-Reflex2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gump2049/APUS-Reflex2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="gump2049/APUS-Reflex2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("gump2049/APUS-Reflex2", trust_remote_code=True) model = AutoModel.from_pretrained("gump2049/APUS-Reflex2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from gump2049/APUS-Reflex2: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/gump2049/APUS-Reflex2/resolve/main/README.md
- Command line
-
hf download hf://gump2049/APUS-Reflex2/README.md
-
curl -L -o README.md https://huggingface.co/gump2049/APUS-Reflex2/resolve/main/README.md
2.24 kB
| license: apache-2.0 | |
| library_name: transformers | |
| pipeline_tag: zero-shot-classification | |
| tags: | |
| - decision-model | |
| - multimodal | |
| - structured-output | |
| - apus | |
| # APUS Reflex2 | |
| APUS Reflex2 is a multimodal typed-decision model. It reads one shared state and one or more typed questions, then returns the selected answer and a probability for every option without text generation. | |
| ## Protocol | |
| The reference service exposes the APUS/1.0 System One interface: | |
| - `GET /health` | |
| - `GET /v1/models` | |
| - `POST /v1/systemone` | |
| The request contains `state` and a `questions` object. Supported question types are `choice`, `noul` and `score`. Images and videos are accepted as inline data URLs by the HTTP server. | |
| ## Quickstart | |
| ```bash | |
| pip install -r requirements.txt | |
| python apus_server.py --model . --device cuda:0 --batch-size 1 --host 0.0.0.0 --port 8000 | |
| ``` | |
| Then send a typed decision: | |
| ```bash | |
| curl -s http://127.0.0.1:8000/v1/systemone \ | |
| -H 'Content-Type: application/json' \ | |
| -d '{ | |
| "state": "The customer was charged twice for the same order.", | |
| "questions": { | |
| "route": { | |
| "type": "choice", | |
| "instructions": "Which team should handle this request?", | |
| "criteria": {"billing": "Billing support", "shipping": "Shipping support"} | |
| }, | |
| "urgent": { | |
| "type": "noul", | |
| "instructions": "Is the request urgent?" | |
| } | |
| } | |
| }' | |
| ``` | |
| The standalone deployment package provides the validated vLLM path and the same protocol verifier at [`gump2049/APUS-Reflex2-deploy`](https://huggingface.co/gump2049/APUS-Reflex2-deploy). The deployment package is optional for the reference Transformers path. | |
| ## Evaluation | |
| The 0.3 public-suite prescreen for this checkpoint is recorded in [`gump2049/APUS-Reflex2-eval-dataset`](https://huggingface.co/datasets/gump2049/APUS-Reflex2-eval-dataset). The public prescreen value is separate from maintainer-side private Decision Index scoring and latency measurements. | |
| ## Files and license | |
| The repository contains the model weights, tokenizer, processor configuration, decision configuration and the minimal reference server required for a local Transformers deployment. `LICENSE`, `LICENSE.jeffan` and `NOTICE` are included with the released artifacts. | |