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

Bunny-v1_1-4B

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

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

4.3B params8.54GBBunny-v1_1-4Bsafetensorspermissive
FactsParams4.3BSize8.54 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get BAAI/Bunny-v1_1-4B
# manifest sha256 17deafd7263f… · 8.54 GB · 18 files
$ fw verify ./Bunny-v1_1-4B BAAI/Bunny-v1_1-4B
From sourceHosted (signed)BAAI/Bunny-v1_1-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.54 GB
Weights
8.54 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 2faf178. Shown as plain text with links; images open at the publisher.

Model Card#

Image: Logo

📖 Technical report | 🏠 Code | 🐰 Demo

This is Bunny-v1.1-4B.

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.1-4B, which is built upon SigLIP and Phi-3-mini-4k-instruct with S \\(^{2}\\)-Wrapper, supporting 1152x1152 resolution. 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_1-4B',
    torch_dtype=torch.float16, # float32 for cpu
    device_map='auto',
    trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(
    'BAAI/Bunny-v1_1-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.54 GBWeights 8.54 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.13 KBf8c77a73f1f4eca705999fb2ce89bcfb374ef36c5be3780e912c3976994899dd
added_tokens.json293 B5f5c94d30901fe9c961d776d51eadbda4454991a77b53d36e0be0571a8e72a7d
comparison.png755 KBf9a3984c0e5e1f4a7c4233a50b3859dee753ccc2c1708aa213b983eaa95ba62c
config.json1.33 KB435b76ed4fb5ab076a59e54451553d4766fbef7130061da75c6620105ec0a7d6
configuration_bunny_phi3.py12.6 KBc1f613845240e17052204fd1c88d69ca953ce4339566bb6826918a086e58cf53
generation_config.json172 B48ef9b0af6d2e7b3a605f29c974f021df796d82a03e5864e898a315a426de934
icon.png812 KB3e291453e6d163cd244bbffa176aa07a13ee38a260d0a004d5e153b119cd18bb
images/example_1.png245 KB58c5c9898c5359bcf53797711e3d954c8ef529e141cb012ffc433376933839e7
images/example_2.png74.6 KBd25e79a65b225aedffdc864cfa037f2384d146e4e87a101af25ebe930660eee1
model-00001-of-00002.safetensors4.97 GB4beffed9f746a06871787f02b5b3379ad112a53c1998104586082bf1cd73bc99
model-00002-of-00002.safetensors3.57 GBf8c39cf9a996a65ee8e8da1e725e4ba7cd5b787b5fd4797f8b9591bee350ec0a
model.safetensors.index.json72.6 KBafe342e5815aa6744ef0d2828aa7f09dfecf45119d155ac50fb15722324c738e
modeling_bunny_phi3.py120 KB5fe0e49e40ae6baad0f11854347db3945a3de6e37178c48b598cb1607d801131
special_tokens_map.json569 B474d699677e264edd3851559548cbbb61801ad8da6b249c81455007602313c34
tokenizer.json1.84 MBfd0e7eeb8f7325eaaa0a715d9759edd5d736332140d71ea667cdc3c22139bb8e
tokenizer.model500 KB9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
tokenizer_config.json3.17 KB441a655644c244ab6fb6aae4320e5b01793bc5a9ef03dd94e9f6dedf337ec01b
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2faf1780f2 pinned now2026-11-15 04:02 UTC18 files · 8.54 GB

Use it

$ fw get BAAI/Bunny-v1_1-4B
# manifest sha256 17deafd7263f… · 8.54 GB · 18 files
$ fw verify ./Bunny-v1_1-4B BAAI/Bunny-v1_1-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_1-4B.json --dir ./Bunny-v1_1-4B $ python3 fw.py verify ./Bunny-v1_1-4B ./BAAI__Bunny-v1_1-4B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/Bunny-v1_1-4B --revision 2faf1780f240d4fc560d61142160a8562bfb6477 --local-dir ./Bunny-v1_1-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_1-4B", revision="2faf1780f240d4fc560d61142160a8562bfb6477") model = AutoModelForCausalLM.from_pretrained("BAAI/Bunny-v1_1-4B", revision="2faf1780f240d4fc560d61142160a8562bfb6477", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve BAAI/Bunny-v1_1-4B --revision 2faf1780f240d4fc560d61142160a8562bfb6477

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
f8c77a73f1f4eca705999fb2ce89bcfb374ef36c5be3780e912c3976994899dd
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_1-4BDate: 2026-11-15Commit: 2faf178Signed: 2DC28CC7B26A283B ✓
Upstream
BAAI/Bunny-v1_1-4B
Pinned commit
2faf1780f240d4fc560d61142160a8562bfb6477
Manifest
Bunny-v1_1-4B.json · .minisig
Manifest sha256
17deafd7263f7da5b98f23f76129156e7edf8989a3bc95fac4c236151fd3ce7b
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_1-4B.json $ curl -O https://freeweights.allternit.com/manifests/BAAI/Bunny-v1_1-4B.json.minisig $ minisign -Vm Bunny-v1_1-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_1-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_1-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