CoolFace
Modelpublic

FreedomIntelligence/LongLLaVAMed-9B

sourceHugging Facemitupdated 2y agoView on Hugging Face
1likes40downloads
Model Card

[image]

<p align="center"> πŸ“ƒ <a href="https://arxiv.org/abs/2409.02889" target="blank">Paper</a> β€’ 🌐 <a href="" target="blank">Demo</a> β€’ πŸ“ƒ <a href="https://github.com/FreedomIntelligence/LongLLaVA" target="blank">Github</a> β€’ πŸ€— <a href="https://huggingface.co/FreedomIntelligence/LongLLaVA-53B-A13B" target="blank">LongLLaVA-53B-A13B</a> </p>

[image]

🌈 Update

Architecture

<details> <summary>Click to view the architecture image</summary>

[image]

</details>

Results

<details> <summary>Click to view the Results</summary>

  • β€”Main Results [image]
  • β€”Diagnostic Results [image]
  • β€”Video-NIAH [image]

</details>

Results reproduction

Evaluation

  • β€”Preparation

Get the model inference code from Github.

bash
git clone https://github.com/FreedomIntelligence/LongLLaVA.git
  • β€”Environment Setup
bash
pip install -r requirements.txt
  • β€”Command Line Interface
bash
python cli.py --model_dir path-to-longllava
  • β€”Model Inference
python
query = 'What does the picture show?'
image_paths = ['image_path1'] # image or video path

from cli import Chatbot
bot = Chatbot(path-to-longllava)
output = bot.chat(query, image_paths)
print(output) # Prints the output of the model

Acknowledgement

  • β€”LLaVA: Visual Instruction Tuning (LLaVA) built towards GPT-4V level capabilities and beyond.

Citation

@misc{wang2024longllavascalingmultimodalllms,
      title={LongLLaVA: Scaling Multi-modal LLMs to 1000 Images Efficiently via Hybrid Architecture}, 
      author={Xidong Wang and Dingjie Song and Shunian Chen and Chen Zhang and Benyou Wang},
      year={2024},
      eprint={2409.02889},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2409.02889}, 
}