UBC-NLP / Peacock

huggingface.co
Total runs: 108
24-hour runs: 0
7-day runs: 0
30-day runs: -23
Model's Last Updated: November 26 2024
image-to-text

Introduction of Peacock

Model Details of Peacock

🦚 Peacock

🦚 Peacock is an InstructBLIP based-model that uses AraLLaMA as its language model. It was introduced in the paper Peacock: A Family of Arabic Multimodal Large Language Models and Benchmarks .

How to use

Usage is as follows:

from transformers import InstructBlipProcessor, InstructBlipForConditionalGeneration
import torch
from PIL import Image
import requests
model = InstructBlipForConditionalGeneration.from_pretrained("UBC-NLP/Peacock")
processor = InstructBlipProcessor.from_pretrained("UBC-NLP/Peacock")
device = "cuda" if torch.cuda.is_available() else "cpu"
model.to(device)
url = "https://upload.wikimedia.org/wikipedia/commons/8/83/Socotra_dragon_tree.JPG"
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
prompt = "اوصف الصوره"
inputs = processor(images=image, text=prompt, return_tensors="pt").to(device)
outputs = model.generate(
        **inputs,
        do_sample=False,
        num_beams=5,
        max_length=256,
        min_length=1,
        top_p=0.9,
        repetition_penalty=1.5,
        length_penalty=1.0,
        temperature=1,
)
generated_text = processor.batch_decode(outputs, skip_special_tokens=True)[0].strip()
print(generated_text)

Citation

If you use this model, please cite the following paper:

@inproceedings{alwajih2024peacock,
  title = {Peacock: A Family of Arabic Multimodal Large Language Models and Benchmarks},
  author = {Alwajih, Fakhraddin and Nagoudi, El Moatez Billah and Bhatia, Gagan and Mohamed, Abdelrahman and Abdul-Mageed, Muhammad},
  booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages = {12753--12776},
  year = {2024},
  address = {Bangkok, Thailand},
  publisher = {Association for Computational Linguistics},
  url = {https://aclanthology.org/2024.acl-long.689}
}

Runs of UBC-NLP Peacock on huggingface.co

108
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-23
30-day runs

More Information About Peacock huggingface.co Model

More Peacock license Visit here:

https://choosealicense.com/licenses/other

Peacock huggingface.co

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

UBC-NLP Peacock online free

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

UBC-NLP Peacock online free url in huggingface.co:

https://huggingface.co/UBC-NLP/Peacock

Peacock install

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

Peacock install url in huggingface.co:

https://huggingface.co/UBC-NLP/Peacock

Url of Peacock

Peacock huggingface.co Url

Provider of Peacock huggingface.co

UBC-NLP
ORGANIZATIONS

Other API from UBC-NLP

huggingface.co

Total runs: 129.6K
Run Growth: 66.5K
Growth Rate: 51.31%
Updated:March 31 2022
huggingface.co

Total runs: 32.8K
Run Growth: 16.0K
Growth Rate: 48.67%
Updated:August 17 2022
huggingface.co

Total runs: 4.9K
Run Growth: -442
Growth Rate: -9.02%
Updated:April 24 2024
huggingface.co

Total runs: 4.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:May 17 2024
huggingface.co

Total runs: 1.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 11 2025
huggingface.co

Total runs: 1.8K
Run Growth: 703
Growth Rate: 39.76%
Updated:August 14 2024
huggingface.co

Total runs: 1.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 20 2024
huggingface.co

Total runs: 1.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 22 2025
huggingface.co

Total runs: 1.2K
Run Growth: 61
Growth Rate: 5.15%
Updated:January 20 2022
huggingface.co

Total runs: 1.0K
Run Growth: -629
Growth Rate: -62.40%
Updated:March 10 2026
huggingface.co

Total runs: 222
Run Growth: 180
Growth Rate: 81.08%
Updated:February 13 2026
huggingface.co

Total runs: 87
Run Growth: 41
Growth Rate: 47.13%
Updated:March 14 2025
huggingface.co

Total runs: 73
Run Growth: 0
Growth Rate: 0.00%
Updated:June 10 2022
huggingface.co

Total runs: 35
Run Growth: 24
Growth Rate: 68.57%
Updated:August 31 2021
huggingface.co

Total runs: 23
Run Growth: 11
Growth Rate: 47.83%
Updated:November 26 2024
huggingface.co

Total runs: 7
Run Growth: -4
Growth Rate: -57.14%
Updated:December 04 2023
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:June 03 2022
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:June 03 2022
huggingface.co

Total runs: 5
Run Growth: -10
Growth Rate: -200.00%
Updated:November 12 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 10 2023