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
Add a "Serving with vLLM" section (batched, prefix-cached, any GPU)
#6
by divg07 - opened
101 unmodified lines102103104105106107101 unmodified linesRequests longer than the trained length limits are refused, not truncated.## 📊 Performance### Jev Decision Index 0.4101 unmodified lines102103104105106107108109110111112113114115116117118119120121122101 unmodified linesRequests longer than the trained length limits are refused, not truncated.### Serving with vLLM```bash# image: ghcr.io/wolfgang9999/decision-models-vllm (vLLM nightly + the pending PRs, drop-in for vllm/vllm-openai)vllm serve baselabs/elephant-1 --served-model-name elephant-1```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. elephant-1 shares joey-1's architecture (Qwen3.5 hybrid layers with the same trained PrefixLM mask), so it runs the same per-GPU attention paths: FlashAttention-2 on Ampere/Ada, FlashAttention-3 on Hopper, FlashAttention-4 on B200 and FlashInfer on RTX PRO 6000 class GPUs. On those newer GPUs those paths were measured with joey-1: on an RTX PRO 6000 it served 2.3-2.8x OneJev's decisions/s, on an H100 and a B200 1.7-2.2x vLLM's Triton kernel at 13.2k-token states. Text states only (served text-only by default); the`confidence` field is computed differently from OneJev, while the option probabilities agree.## 📊 Performance### Jev Decision Index 0.4
README.md+15