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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SaeedLab/TITAN-BBB", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download configuration_bbb.py from SaeedLab/TITAN-BBB: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/SaeedLab/TITAN-BBB/resolve/ca052d3ff0db0de632525ef3a2823cedf6c25fed/configuration_bbb.py
- Command line
-
hf download hf://SaeedLab/TITAN-BBB@ca052d3ff0db0de632525ef3a2823cedf6c25fed/configuration_bbb.py
-
curl -L -o configuration_bbb.py https://huggingface.co/SaeedLab/TITAN-BBB/resolve/ca052d3ff0db0de632525ef3a2823cedf6c25fed/configuration_bbb.py
483 Bytes
| 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) |