Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VISA: Group-wise Visual Token Selection and Aggregation via Graph Summarization for Efficient Large Language Models Inference

Setup:

You can build the environment as follow:

pip install -r requirements.txt

Download Eval Data:

You can download evaluation benchmarks according to Evaluation.md, and put them into playground/data/eval.

Evaluation:

You can evaluate the download benchmarks according to .sh files in scripts folder. For example, use scripts/mmbench.sh to evaluate mmbench benchmark.
single GPU:

CUDA_VISIBLE_DEVICES=0 bash scripts/mmbench.sh

Multple GPUs:

CUDA_VISIBLE_DEVICES=0,1 bash scripts/mmbench.sh

Adjust compression ratios:

You can modify the hyperparameter pRate in the LlamaModel class within the llava/model/language_model/modeling_llama_visa.py file to balance between model performance and inference speed.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages