alt.freeweights.text / Bunny-v1_0-4B
From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.textSubject:

Bunny-v1_0-4B

Date: 2026-11-15Commit: b4f110eSigned: 2DC28CC7B26A283B ✓

Text generation model with 4.3B parameters. Safetensors weights, 8.53 GB in all. Published by BAAI under Apache-2.0.

4.3B params8.53GBBunny-v1_0-4Bsafetensorspermissive
FactsParams4.3BSize8.53 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get BAAI/Bunny-v1_0-4B
# manifest sha256 6131f6655888… · 8.53 GB · 18 files
$ fw verify ./Bunny-v1_0-4B BAAI/Bunny-v1_0-4B
From sourceHosted (signed)BAAI/Bunny-v1_0-4BLast check: 2026-11-15 04:02 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
8.53 GB
Weights
8.52 GB (safetensors)
Parameters
4.3B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
18, each with a sha256
Publisher
BAAI
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:02 UTCpassed

Model card

From the publisher at commit b4f110e. Shown as plain text with links; images open at the publisher.

Model Card#

Image: 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.

Image: 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())

Files

18 files · 8.53 GBWeights 8.52 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.22 KBaaeee31028e69f240ad25a63d1d115352ef5462180ce6e670f0ec4a52a1e03ac
added_tokens.json940 B7287c2ad24ef268d101ae95529db3641f45eee855d0ea3d007ba042896533b35
comparison.png755 KBf9a3984c0e5e1f4a7c4233a50b3859dee753ccc2c1708aa213b983eaa95ba62c
config.json1.31 KB13470cdc0cf0303ef8647fe3a1e47408e82fcd1e081bffe1334f1f916e0de51f
configuration_bunny_phi3.py12.6 KBc1f613845240e17052204fd1c88d69ca953ce4339566bb6826918a086e58cf53
generation_config.json140 B2d43d13605798e5be63a7df0c1748d21ff5be391d7ea781b7553ceb0dadc160f
icon.png812 KB3e291453e6d163cd244bbffa176aa07a13ee38a260d0a004d5e153b119cd18bb
images/example_1.png245 KB58c5c9898c5359bcf53797711e3d954c8ef529e141cb012ffc433376933839e7
images/example_2.png74.6 KBd25e79a65b225aedffdc864cfa037f2384d146e4e87a101af25ebe930660eee1
model-00001-of-00002.safetensors4.97 GB69a0bfa70e5dbc7d7f1b5dd16827597b768847c0f3b16b7193cdc3eae09995a7
model-00002-of-00002.safetensors3.55 GB62a4d09295c5a1d05f14d22971f8fc3ddcf0a517b1daf67acdedb6d304e6044e
model.safetensors.index.json72.6 KB59946de01e6a6f28839b3dcc622b66cc9a181db4f7ea0e98dd9c41750cf1410a
modeling_bunny_phi3.py113 KBcf2691c12f7bc4a38825327b94690fc2894713c298eef3e42d45c10c8ce9e718
special_tokens_map.json623 B8f906ec461c91b18e621080b994b7664094ec8798590acae96382a4dc1779809
tokenizer.json1.85 MBef8af2aa4fb2460f062916c8c4c1a20a5076f7613d31b0e3166ccbae68894e68
tokenizer.model500 KB9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
tokenizer_config.json7.92 KB37d6f9617628195e7106880196da7f1de19afb6b3658e0c2adb5fa045f3bd99b
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b4f110ec33 pinned now2026-11-15 04:02 UTC18 files · 8.53 GB

Use it

$ fw get BAAI/Bunny-v1_0-4B
# manifest sha256 6131f6655888… · 8.53 GB · 18 files
$ fw verify ./Bunny-v1_0-4B BAAI/Bunny-v1_0-4B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/BAAI/Bunny-v1_0-4B.json --dir ./Bunny-v1_0-4B $ python3 fw.py verify ./Bunny-v1_0-4B ./BAAI__Bunny-v1_0-4B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/Bunny-v1_0-4B --revision b4f110ec3381dfe614e0012c28fc8adcfb5d9535 --local-dir ./Bunny-v1_0-4B
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("BAAI/Bunny-v1_0-4B", revision="b4f110ec3381dfe614e0012c28fc8adcfb5d9535") model = AutoModelForCausalLM.from_pretrained("BAAI/Bunny-v1_0-4B", revision="b4f110ec3381dfe614e0012c28fc8adcfb5d9535", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve BAAI/Bunny-v1_0-4B --revision b4f110ec3381dfe614e0012c28fc8adcfb5d9535

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
aaeee31028e69f240ad25a63d1d115352ef5462180ce6e670f0ec4a52a1e03ac
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.textSubject: Bunny-v1_0-4BDate: 2026-11-15Commit: b4f110eSigned: 2DC28CC7B26A283B ✓
Upstream
BAAI/Bunny-v1_0-4B
Pinned commit
b4f110ec3381dfe614e0012c28fc8adcfb5d9535
Manifest
Bunny-v1_0-4B.json · .minisig
Manifest sha256
6131f6655888f11973b5868f1d1c7a348264fc0c4996869f14e31d0fb4dff83b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:02 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/BAAI/Bunny-v1_0-4B.json $ curl -O https://freeweights.allternit.com/manifests/BAAI/Bunny-v1_0-4B.json.minisig $ minisign -Vm Bunny-v1_0-4B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/Bunny-v1_0-4B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Bunny-v1_0-4B.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B