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.

Add a "Serving with vLLM" section (batched, prefix-cached, any GPU)

#6
by divg07 - opened

This adds a short "Serving with vLLM" section for high-throughput self-hosting.

vLLM batches concurrent requests and reuses each state's prefill across its questions (and across requests that send
the same state again), behind the same POST /v1/systemone request and response 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).

Model support is still in review in vLLM (vllm-project/vllm#63114, with #65186 for A100 prefix caching and #65222 for
FlashAttention-2 prefill on A100). Until a release includes them, the section points to an image that pins a vLLM
nightly and applies those pull requests; method, full tables and caveats are in its README:
https://github.com/Wolfgang9999/decision-models-vllm

Happy to change the wording or placement, or to drop the image once upstream vLLM serves the model directly.

Updated: the section now shows plain vllm serve baselabs/elephant-1; the image is only one way to get a vllm with the pending pull requests.

Updated the image notes: it now picks the attention path per GPU (FA2 on Ampere/Ada, FA3 on Hopper, FA4 on B200, FlashInfer on RTX PRO 6000) and serves text-only by default, so plain vllm serve needs no extra flags.

Added: elephant-1 shares joey-1's architecture, so it uses the same per-GPU attention paths; the newer-GPU numbers in the section were measured with joey-1 and are labelled as such. elephant-1's own numbers are from an A100.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment