Zero-Shot Classification
Transformers
Safetensors
English
modernbert
feature-extraction
assay
decision-model
calibrated
conformal-prediction
text-classification
cpu
Instructions to use Berk/assay-compiled-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Berk/assay-compiled-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="Berk/assay-compiled-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Berk/assay-compiled-base") model = AutoModel.from_pretrained("Berk/assay-compiled-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -65,12 +65,21 @@ per-tier abstention and latency are in
|
|
| 65 |
|
| 66 |
## Serving
|
| 67 |
|
| 68 |
-
`
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
operations. `assay.backends.sglang` runs the same model on an SGLang deployment.
|
| 73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
## Train one on your own data
|
| 75 |
|
| 76 |
`python -m assay.pipeline --config <your>.json` runs training, temperature calibration,
|
|
|
|
| 65 |
|
| 66 |
## Serving
|
| 67 |
|
| 68 |
+
```bash
|
| 69 |
+
python -m assay.server --model Berk/assay-compiled-base --port 8000
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
`POST /v1/decide` is the native shape; `POST /v1/systemone` and `/v1/systemone/batch` accept
|
| 73 |
+
the shape other open decision models use (`criteria` options, `noul` booleans); `POST
|
| 74 |
+
/v1/decide_graph` walks a decision tree in one forward pass; `POST /v1/agents` registers an
|
| 75 |
+
agent -- a graph plus the actions its outcomes stand for -- and `/v1/agents/<name>/run`
|
| 76 |
+
decides a case. Requests arriving together share a pass, and `/health` and `/metrics` are for
|
| 77 |
operations. `assay.backends.sglang` runs the same model on an SGLang deployment.
|
| 78 |
|
| 79 |
+
Guides: [deployment and the full API](https://github.com/bgokden/assay/blob/main/docs/serving.md),
|
| 80 |
+
[agents](https://github.com/bgokden/assay/blob/main/docs/agents.md),
|
| 81 |
+
[runnable examples](https://github.com/bgokden/assay/tree/main/examples).
|
| 82 |
+
|
| 83 |
## Train one on your own data
|
| 84 |
|
| 85 |
`python -m assay.pipeline --config <your>.json` runs training, temperature calibration,
|