Instructions to use toind/custom-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use toind/custom-model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("toind/custom-model", dtype="auto") - Notebooks
- Google Colab
- Kaggle
| # __init__.py | |
| from transformers import AutoConfig, AutoModel | |
| from .custom_model import CustomConfig, CustomModel | |
| # Register the custom classes | |
| AutoConfig.register("custom_model", CustomConfig) | |
| AutoModel.register(CustomConfig, CustomModel) | |