Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
decision-model
system-one
calibrated-probabilities
typed-decisions
ainode
merged-lora
conversational
Eval Results (legacy)
Instructions to use frontier-infra/jebadiah-9b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use frontier-infra/jebadiah-9b-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="frontier-infra/jebadiah-9b-v2") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("frontier-infra/jebadiah-9b-v2") model = AutoModelForMultimodalLM.from_pretrained("frontier-infra/jebadiah-9b-v2", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use frontier-infra/jebadiah-9b-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "frontier-infra/jebadiah-9b-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "frontier-infra/jebadiah-9b-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/frontier-infra/jebadiah-9b-v2
- SGLang
How to use frontier-infra/jebadiah-9b-v2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "frontier-infra/jebadiah-9b-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "frontier-infra/jebadiah-9b-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "frontier-infra/jebadiah-9b-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "frontier-infra/jebadiah-9b-v2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use frontier-infra/jebadiah-9b-v2 with Docker Model Runner:
docker model run hf.co/frontier-infra/jebadiah-9b-v2
Download temperatures.json from frontier-infra/jebadiah-9b-v2: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/frontier-infra/jebadiah-9b-v2/resolve/d902ba5a0d9bd06ea53bb0236dd69c8ff55b10f4/temperatures.json
- Command line
-
hf download hf://frontier-infra/jebadiah-9b-v2@d902ba5a0d9bd06ea53bb0236dd69c8ff55b10f4/temperatures.json
-
curl -L -o temperatures.json https://huggingface.co/frontier-infra/jebadiah-9b-v2/resolve/d902ba5a0d9bd06ea53bb0236dd69c8ff55b10f4/temperatures.json
1.23 kB
| { | |
| "temperatures": { | |
| "choice": 1.1863, | |
| "noul": 1.0903, | |
| "score": 1.2162 | |
| }, | |
| "applied_target": "train", | |
| "calib_file": "/workspace/jeb/data-v1/calib.jsonl", | |
| "n": { | |
| "choice": 225, | |
| "noul": 147, | |
| "score": 549 | |
| }, | |
| "fits": { | |
| "hard": { | |
| "choice": { | |
| "T": 0.7857, | |
| "nll_before": 0.3375, | |
| "nll_after": 0.3301 | |
| }, | |
| "noul": { | |
| "T": 0.666, | |
| "nll_before": 0.2968, | |
| "nll_after": 0.2834 | |
| }, | |
| "score": { | |
| "T": 0.8329, | |
| "nll_before": 0.9298, | |
| "nll_after": 0.9225 | |
| } | |
| }, | |
| "train": { | |
| "choice": { | |
| "T": 1.1863, | |
| "nll_before": 0.4594, | |
| "nll_after": 0.4542 | |
| }, | |
| "noul": { | |
| "T": 1.0903, | |
| "nll_before": 0.3776, | |
| "nll_after": 0.3768 | |
| }, | |
| "score": { | |
| "T": 1.2162, | |
| "nll_before": 1.1017, | |
| "nll_after": 1.0929 | |
| } | |
| } | |
| }, | |
| "nll_before": { | |
| "choice": 0.4594, | |
| "noul": 0.3776, | |
| "score": 1.1017 | |
| }, | |
| "nll_after": { | |
| "choice": 0.4542, | |
| "noul": 0.3768, | |
| "score": 1.0929 | |
| }, | |
| "ece_before": { | |
| "choice": 0.0738, | |
| "noul": 0.0637, | |
| "score": 0.0923 | |
| }, | |
| "ece_after": { | |
| "choice": 0.0888, | |
| "noul": 0.0643, | |
| "score": 0.1276 | |
| }, | |
| "accuracy": { | |
| "choice": 0.9067, | |
| "noul": 0.8707, | |
| "score": 0.623 | |
| }, | |
| "score_targets": "ordinal", | |
| "score_ordinal_adjacent": 0.2 | |
| } |