Text Classification
Transformers
Safetensors
English
qwen3_5
image-text-to-text
decision-model
classification
calibration
routing
guardrails
vision
multimodal
baseten
Run this model with HF Jobs
Run baselabs/elephant-1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/baselabs/elephant-1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/baselabs/elephant-1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use baselabs/elephant-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use baselabs/elephant-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="baselabs/elephant-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("baselabs/elephant-1") model = AutoModelForMultimodalLM.from_pretrained("baselabs/elephant-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Show plain `vllm serve`; GPU-generic wording
Browse files103 unmodified lines104105106107108109110111112107114115108109110118119111112113114115116117118119120103 unmodified lines
### Serving with vLLM
For many concurrent requests, vLLM batches them and prefills each state once for all of its questions, and reuses itwhen the same state comes back. Support is in review upstream ([vllm#63114](https://github.com/vllm-project/vllm/pull/63114));until it is released, [decision-models-vllm](https://github.com/Wolfgang9999/decision-models-vllm) provides a`vllm/vllm-openai`-compatible image (pinned vLLM nightly plus the open pull requests) that picks the fastest attentionpath for the GPU:
```bashdocker run --gpus all --ipc=host -p 8000:8000 ghcr.io/wolfgang9999/decision-models-vllm \ baselabs/elephant-1 --served-model-name elephant-1vllm serve baselabs/elephant-1 --served-model-name elephant-1```
It serves the same `POST /v1/systemone` API as `qev serve`. On one A100 80GB with 13.2k-token states, elephant-1 serves 7.4 decisions/s with 11 questions per request against 5.6 with OneJev, 16.2 against 12.6 with 44 questions, and 6.2 against 2.2 when the same state comes back in three requests. Under 1% of decisions change their top option relative to OneJev (mean probability difference 0.0043). Text states only; `confidence` is computeddifferently from OneJev, while the option probabilities agree.vLLM batches concurrent requests and prefills each state once for all of its questions, reusing it when the samestate comes back, behind the same `POST /v1/systemone` API as `qev serve`. It picks the attention path for the GPU(Ampere, Ada, Hopper, Blackwell). Model support is still in review in vLLM([#63114](https://github.com/vllm-project/vllm/pull/63114)); until it is released, get a `vllm` that includes it from[decision-models-vllm](https://github.com/Wolfgang9999/decision-models-vllm): `./install.sh` into your environment, or theimage `ghcr.io/wolfgang9999/decision-models-vllm`, a drop-in for `vllm/vllm-openai`. With 13.2k-token states it served 7.4 decisions/s at 11 questions per request against 5.6 with OneJev, 16.2 against 12.6 at 44 questions, and 6.2 against 2.2 when the same state comes back in three requests (A100); under 1% of decisions change their top option relative to OneJev. Text states only; the`confidence` field is computed differently from OneJev, while the option probabilities agree.
## 📊 Performance
README.md+8-10