Instructions to use endless-frontier/BigBang-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use endless-frontier/BigBang-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="endless-frontier/BigBang-v1") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("endless-frontier/BigBang-v1") model = AutoModelForMultimodalLM.from_pretrained("endless-frontier/BigBang-v1", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use endless-frontier/BigBang-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "endless-frontier/BigBang-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "endless-frontier/BigBang-v1", "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/endless-frontier/BigBang-v1
- SGLang
How to use endless-frontier/BigBang-v1 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 "endless-frontier/BigBang-v1" \ --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": "endless-frontier/BigBang-v1", "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 "endless-frontier/BigBang-v1" \ --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": "endless-frontier/BigBang-v1", "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 endless-frontier/BigBang-v1 with Docker Model Runner:
docker model run hf.co/endless-frontier/BigBang-v1
The model is very good.
In my personal tests, this is undoubtedly the champion among all the llm I can run on my 5060ti at an adequate speed. BigBang delivers 70t/s with llamacpp; here are the launch parameters:
./build/bin/llama-server
-m /endless-frontier_BigBang-v1-IQ4_XS.gguf
--host 0.0.0.0 --port 8080
--flash-attn on
--ctx-size 128000
-ctk q4_0 -ctv q4_0
-ngl 999
--n-cpu-moe 13
--reasoning on
--reasoning-preserve
--no-mmap
--mlock
--fit off
-t 7
-tb 4
--batch-size 512
--ubatch-size 256
--spec-type draft-mtp
--spec-draft-n-max 2
--spec-draft-p-min 0.0
--no-mmproj
--temp 0.6 --top-p 0.95 --top-k 20
--min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.1
repeat-penalty 1.1 otherwise the model starts to loop, takes a very long time to think through complex tasks, but follows the instructions perfectly. Thank you, developers.