Instructions to use bespokelabs/Nimble-v4-max with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bespokelabs/Nimble-v4-max with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="bespokelabs/Nimble-v4-max") 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("bespokelabs/Nimble-v4-max") model = AutoModelForMultimodalLM.from_pretrained("bespokelabs/Nimble-v4-max", 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 bespokelabs/Nimble-v4-max with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bespokelabs/Nimble-v4-max" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bespokelabs/Nimble-v4-max", "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/bespokelabs/Nimble-v4-max
- SGLang
How to use bespokelabs/Nimble-v4-max 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 "bespokelabs/Nimble-v4-max" \ --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": "bespokelabs/Nimble-v4-max", "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 "bespokelabs/Nimble-v4-max" \ --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": "bespokelabs/Nimble-v4-max", "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 bespokelabs/Nimble-v4-max with Docker Model Runner:
docker model run hf.co/bespokelabs/Nimble-v4-max
Nimble-v4-max
Nimble-v4-max is a decision model made by Bespoke Labs, a fine-tune of Qwen/Qwen3.8-27B. Given a context and typed questions (a choice among options, a yes or no, or a score on ordered levels), it returns a probability for each option.
Decision Index 0.3, public suite: 68.46. The full run, the inference code and instructions are in bespokelabs/nimble-v4-max-decision-index.
How to run it
Use the inference code in bespokelabs/nimble-v4-max-decision-index (code/nimble/). It builds the prompts that schema_config.json pins by hash, reads each request with the attention pattern the model was trained with, and scores one token per option. Loading the weights as a plain chat model, or generating text, does not reproduce its answers.
The model needs about 55 GB in BF16, so it runs on one 80 GB or larger GPU.
License
Nimble-v4-max is released under CC BY-NC 4.0, so it may not be used for commercial purposes. The base model, Qwen/Qwen3.8-27B, is licensed separately under Apache 2.0; its license text is in LICENSE-Qwen3.8-27B.
Citation
@misc{bespokelabs2026nimblev4max,
title = {Nimble-v4-max},
author = {Shreyas Pimpalgaonkar and Sid Devic and Mrinal Kumar and Pratik Dalal and Mahesh Sathiamoorthy},
year = {2026},
publisher = {Bespoke Labs},
howpublished = {\url{https://huggingface.co/bespokelabs/Nimble-v4-max}}
}
- Downloads last month
- 33
Model tree for bespokelabs/Nimble-v4-max
Base model
Qwen/Qwen3.8-27B