BAAI / Bunny-v1_0-4B

huggingface.co
Total runs: 191
24-hour runs: -3
7-day runs: 26
30-day runs: 48
Model's Last Updated: June 24 2024
text-generation

Introduction of Bunny-v1_0-4B

Model Details of Bunny-v1_0-4B

Model Card

Logo

📖 Technical report | 🏠 Code | 🐰 Demo | 🤗 GGUF

This is Bunny-v1.0-4B.

We also provide v1.1 version accepting high-resolution images up to 1152x1152. 🤗 v1.1

Bunny is a family of lightweight but powerful multimodal models. It offers multiple plug-and-play vision encoders, like EVA-CLIP, SigLIP and language backbones, including Phi-3-mini, Llama-3-8B, Phi-1.5, StableLM-2 and Phi-2. To compensate for the decrease in model size, we construct more informative training data by curated selection from a broader data source.

We provide Bunny-v1.0-4B, which is built upon SigLIP and Phi-3-Mini-4K-Instruct . More details about this model can be found in GitHub .

comparison

Quickstart

Here we show a code snippet to show you how to use the model with transformers.

Before running the snippet, you need to install the following dependencies:

pip install torch transformers accelerate pillow

If the CUDA memory is enough, it would be faster to execute this snippet by setting CUDA_VISIBLE_DEVICES=0 .

Users especially those in Chinese mainland may want to refer to a HuggingFace mirror site .

import torch
import transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
from PIL import Image
import warnings

# disable some warnings
transformers.logging.set_verbosity_error()
transformers.logging.disable_progress_bar()
warnings.filterwarnings('ignore')

# set device
device = 'cuda'  # or cpu
torch.set_default_device(device)

# create model
model = AutoModelForCausalLM.from_pretrained(
    'BAAI/Bunny-v1_0-4B',
    torch_dtype=torch.float16, # float32 for cpu
    device_map='auto',
    trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(
    'BAAI/Bunny-v1_0-4B',
    trust_remote_code=True)

# text prompt
prompt = 'Why is the image funny?'
text = f"A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: <image>\n{prompt} ASSISTANT:"
text_chunks = [tokenizer(chunk).input_ids for chunk in text.split('<image>')]
input_ids = torch.tensor(text_chunks[0] + [-200] + text_chunks[1][1:], dtype=torch.long).unsqueeze(0).to(device)

# image, sample images can be found in images folder
image = Image.open('example_2.png')
image_tensor = model.process_images([image], model.config).to(dtype=model.dtype, device=device)

# generate
output_ids = model.generate(
    input_ids,
    images=image_tensor,
    max_new_tokens=100,
    use_cache=True,
    repetition_penalty=1.0 # increase this to avoid chattering
)[0]

print(tokenizer.decode(output_ids[input_ids.shape[1]:], skip_special_tokens=True).strip())

Runs of BAAI Bunny-v1_0-4B on huggingface.co

191
Total runs
-3
24-hour runs
11
3-day runs
26
7-day runs
48
30-day runs

More Information About Bunny-v1_0-4B huggingface.co Model

More Bunny-v1_0-4B license Visit here:

https://choosealicense.com/licenses/apache-2.0

Bunny-v1_0-4B huggingface.co

Bunny-v1_0-4B huggingface.co is an AI model on huggingface.co that provides Bunny-v1_0-4B's model effect (), which can be used instantly with this BAAI Bunny-v1_0-4B model. huggingface.co supports a free trial of the Bunny-v1_0-4B model, and also provides paid use of the Bunny-v1_0-4B. Support call Bunny-v1_0-4B model through api, including Node.js, Python, http.

Bunny-v1_0-4B huggingface.co Url

https://huggingface.co/BAAI/Bunny-v1_0-4B

BAAI Bunny-v1_0-4B online free

Bunny-v1_0-4B huggingface.co is an online trial and call api platform, which integrates Bunny-v1_0-4B's modeling effects, including api services, and provides a free online trial of Bunny-v1_0-4B, you can try Bunny-v1_0-4B online for free by clicking the link below.

BAAI Bunny-v1_0-4B online free url in huggingface.co:

https://huggingface.co/BAAI/Bunny-v1_0-4B

Bunny-v1_0-4B install

Bunny-v1_0-4B is an open source model from GitHub that offers a free installation service, and any user can find Bunny-v1_0-4B on GitHub to install. At the same time, huggingface.co provides the effect of Bunny-v1_0-4B install, users can directly use Bunny-v1_0-4B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Bunny-v1_0-4B install url in huggingface.co:

https://huggingface.co/BAAI/Bunny-v1_0-4B

Url of Bunny-v1_0-4B

Bunny-v1_0-4B huggingface.co Url

Provider of Bunny-v1_0-4B huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 63.1M
Run Growth: -3.2M
Growth Rate: -5.07%
Updated:February 22 2024
huggingface.co

Total runs: 35.1M
Run Growth: -2.0M
Growth Rate: -5.72%
Updated:July 03 2024
huggingface.co

Total runs: 10.2M
Run Growth: -1.2M
Growth Rate: -12.18%
Updated:February 21 2024
huggingface.co

Total runs: 9.8M
Run Growth: -3.5M
Growth Rate: -36.13%
Updated:February 21 2024
huggingface.co

Total runs: 1.8M
Run Growth: 168.7K
Growth Rate: 9.16%
Updated:April 17 2024
huggingface.co

Total runs: 734.0K
Run Growth: -391.2K
Growth Rate: -53.30%
Updated:April 02 2024
huggingface.co

Total runs: 639.8K
Run Growth: -390.0K
Growth Rate: -60.97%
Updated:October 12 2023
huggingface.co

Total runs: 200.3K
Run Growth: -476.2K
Growth Rate: -237.76%
Updated:December 13 2023
huggingface.co

Total runs: 65.8K
Run Growth: -14.9K
Growth Rate: -22.61%
Updated:October 12 2023
huggingface.co

Total runs: 64.3K
Run Growth: 49.3K
Growth Rate: 76.69%
Updated:October 12 2023
huggingface.co

Total runs: 58.6K
Run Growth: -10.0K
Growth Rate: -17.12%
Updated:July 13 2026
huggingface.co

Total runs: 51.1K
Run Growth: 2.9K
Growth Rate: 5.71%
Updated:October 12 2023
huggingface.co

Total runs: 40.9K
Run Growth: 1.1K
Growth Rate: 2.80%
Updated:January 15 2025
huggingface.co

Total runs: 40.1K
Run Growth: 2.3K
Growth Rate: 5.63%
Updated:November 14 2023
huggingface.co

Total runs: 15.6K
Run Growth: -698
Growth Rate: -4.47%
Updated:April 16 2025
huggingface.co

Total runs: 10.4K
Run Growth: 10.4K
Growth Rate: 100.00%
Updated:September 16 2026
huggingface.co

Total runs: 7.3K
Run Growth: -9.3K
Growth Rate: -126.60%
Updated:October 12 2023
huggingface.co

Total runs: 5.5K
Run Growth: 1.5K
Growth Rate: 27.89%
Updated:May 20 2025
huggingface.co

Total runs: 3.4K
Run Growth: 1.3K
Growth Rate: 38.38%
Updated:April 19 2024
huggingface.co

Total runs: 2.4K
Run Growth: 1.1K
Growth Rate: 45.32%
Updated:April 10 2026
huggingface.co

Total runs: 2.4K
Run Growth: 195
Growth Rate: 8.23%
Updated:September 11 2026
huggingface.co

Total runs: 1.9K
Run Growth: 1.0K
Growth Rate: 55.24%
Updated:November 28 2024
huggingface.co

Total runs: 1.7K
Run Growth: -13.8K
Growth Rate: -792.41%
Updated:January 15 2025
huggingface.co

Total runs: 1.6K
Run Growth: 82
Growth Rate: 5.13%
Updated:April 10 2026
huggingface.co

Total runs: 1.4K
Run Growth: -213
Growth Rate: -15.77%
Updated:December 31 2022
huggingface.co

Total runs: 1.0K
Run Growth: 676
Growth Rate: 66.27%
Updated:September 11 2026
huggingface.co

Total runs: 755
Run Growth: -20
Growth Rate: -2.65%
Updated:May 23 2025
huggingface.co

Total runs: 689
Run Growth: -801
Growth Rate: -116.26%
Updated:February 07 2024
huggingface.co

Total runs: 663
Run Growth: -105
Growth Rate: -15.84%
Updated:October 24 2024
huggingface.co

Total runs: 635
Run Growth: -499
Growth Rate: -78.58%
Updated:October 23 2024
huggingface.co

Total runs: 513
Run Growth: -183
Growth Rate: -35.67%
Updated:July 13 2026
huggingface.co

Total runs: 468
Run Growth: -87
Growth Rate: -18.59%
Updated:April 18 2023
huggingface.co

Total runs: 461
Run Growth: 313
Growth Rate: 67.90%
Updated:April 02 2024
huggingface.co

Total runs: 416
Run Growth: 116
Growth Rate: 27.88%
Updated:July 13 2026
huggingface.co

Total runs: 413
Run Growth: -27
Growth Rate: -6.54%
Updated:April 10 2026
huggingface.co

Total runs: 398
Run Growth: -3
Growth Rate: -0.75%
Updated:December 25 2025
huggingface.co

Total runs: 397
Run Growth: -134
Growth Rate: -33.75%
Updated:August 11 2026
huggingface.co

Total runs: 396
Run Growth: -135
Growth Rate: -34.09%
Updated:July 13 2026
huggingface.co

Total runs: 352
Run Growth: -348
Growth Rate: -98.86%
Updated:August 11 2026
huggingface.co

Total runs: 328
Run Growth: 121
Growth Rate: 36.89%
Updated:July 13 2026
huggingface.co

Total runs: 295
Run Growth: -126
Growth Rate: -42.71%
Updated:July 13 2026
huggingface.co

Total runs: 293
Run Growth: 293
Growth Rate: 100.00%
Updated:October 01 2026
huggingface.co

Total runs: 288
Run Growth: 20
Growth Rate: 6.94%
Updated:July 13 2026
huggingface.co

Total runs: 284
Run Growth: 55
Growth Rate: 19.37%
Updated:August 18 2026
huggingface.co

Total runs: 270
Run Growth: 270
Growth Rate: 100.00%
Updated:September 05 2026
huggingface.co

Total runs: 261
Run Growth: -146
Growth Rate: -55.94%
Updated:March 07 2024
huggingface.co

Total runs: 257
Run Growth: -199
Growth Rate: -77.43%
Updated:October 27 2023
huggingface.co

Total runs: 253
Run Growth: 45
Growth Rate: 17.79%
Updated:July 13 2026
huggingface.co

Total runs: 252
Run Growth: -385
Growth Rate: -145.28%
Updated:December 25 2025
huggingface.co

Total runs: 236
Run Growth: 33
Growth Rate: 13.98%
Updated:July 17 2026
huggingface.co

Total runs: 231
Run Growth: -12
Growth Rate: -5.19%
Updated:June 06 2025
huggingface.co

Total runs: 227
Run Growth: 142
Growth Rate: 62.56%
Updated:November 28 2023
huggingface.co

Total runs: 224
Run Growth: 29
Growth Rate: 12.95%
Updated:July 13 2026
huggingface.co

Total runs: 214
Run Growth: 110
Growth Rate: 51.40%
Updated:July 13 2026
huggingface.co

Total runs: 205
Run Growth: 94
Growth Rate: 45.85%
Updated:July 13 2026
huggingface.co

Total runs: 196
Run Growth: -2.0K
Growth Rate: -1035.20%
Updated:April 10 2026
huggingface.co

Total runs: 195
Run Growth: -200
Growth Rate: -102.56%
Updated:April 10 2026
huggingface.co

Total runs: 191
Run Growth: 93
Growth Rate: 48.69%
Updated:March 13 2026
huggingface.co

Total runs: 187
Run Growth: 44
Growth Rate: 23.53%
Updated:June 24 2024
huggingface.co

Total runs: 185
Run Growth: -10
Growth Rate: -5.41%
Updated:May 13 2024
huggingface.co

Total runs: 183
Run Growth: 17
Growth Rate: 9.29%
Updated:May 13 2024