Instructions to use SaeedLab/TITAN-BBB with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SaeedLab/TITAN-BBB with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SaeedLab/TITAN-BBB", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| from transformers import PretrainedConfig | |
| class BBBConfig(PretrainedConfig): | |
| model_type = "bbb-model" | |
| def __init__( | |
| self, | |
| d_tab : int = 384, | |
| d_img: int = 2048, | |
| d_txt: int = 768, | |
| proj_dim: int = 2048, | |
| dropout: float = 0.1, | |
| task: str = 'classification', | |
| **kwargs): | |
| self.d_tab = d_tab | |
| self.d_img = d_img | |
| self.d_txt = d_txt | |
| self.proj_dim = proj_dim | |
| self.dropout = dropout | |
| self.task = task | |
| super().__init__(**kwargs) |