|
import numpy as np |
|
import torch |
|
from typing import List, Dict, Union |
|
|
|
|
|
error_title_markdown = (""" |
|
<div style="display: flex; justify-content: center; align-items: center; text-align: center;"> |
|
#<a href="https://github.com/PKU-YuanGroup/MoE-LLaVA" style="margin-right: 20px; text-decoration: none; display: flex; align-items: center;"> |
|
#<img src="https://s11.ax1x.com/2023/12/28/piqvDMV.png" alt="MoE-LLaVA🚀" style="max-width: 120px; height: auto;"> |
|
</a> |
|
<div> |
|
<h1 >MoE-LLaVA: Mixture of Experts for Large Vision-Language Models</h1> |
|
<h4 style="margin: 0;">If you like our project, please give us a star ✨ on Github for the latest update.</h4> |
|
#<h2 style="margin: 0.5;"><a href='https://github.com/PKU-YuanGroup/MoE-LLaVA'>https://github.com/PKU-YuanGroup/MoE-LLaVA</a></h2> |
|
</div> |
|
</div> |
|
<div align="center"> |
|
<div style="display:flex; gap: 0.25rem;" align="center"> |
|
#<a href='https://github.com/PKU-YuanGroup/MoE-LLaVA'><img src='https://img.shields.io/badge/Github-Code-blue'></a> |
|
#<a href="https://arxiv.org/pdf/2401.15947.pdf"><img src="https://img.shields.io/badge/Arxiv-2401.15947-red"></a> |
|
#<a href='https://github.com/PKU-YuanGroup/MoE-LLaVA/stargazers'><img src='https://img.shields.io/github/stars/PKU-YuanGroup/MoE-LLaVA.svg?style=social'></a> |
|
|
|
</div> |
|
""") |
|
|
|
|
|
title_markdown = (""" |
|
<div style="display: flex; justify-content: center; align-items: center; text-align: center;"> </div> |
|
<div> |
|
<h1 >MoE-LLaVA: Mixture of Experts for Large Vision-Language Models</h1>a |
|
</div> |
|
<div align="center"> |
|
<div style="display:flex; gap: 0.25rem;" align="center"></div> |
|
</div> |
|
""") |
|
|
|
|
|
|
|
block_css = """ |
|
#buttons button { |
|
min-width: min(120px,100%); |
|
} |
|
""" |
|
|
|
tos_markdown = (""" |
|
### TOS MARKDOWN |
|
""") |
|
|
|
learn_more_markdown = (""" |
|
### Smart Solutions Contact |
|
""") |
|
|