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
Update __init__.py
Browse files- __init__.py +1 -1
__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# __init__.py
|
| 2 |
|
| 3 |
from transformers import AutoConfig, AutoModel
|
| 4 |
-
from .
|
| 5 |
|
| 6 |
# Register the custom classes
|
| 7 |
AutoConfig.register("custom_model", CustomConfig)
|
|
|
|
| 1 |
# __init__.py
|
| 2 |
|
| 3 |
from transformers import AutoConfig, AutoModel
|
| 4 |
+
from .custom_model import CustomConfig, CustomModel
|
| 5 |
|
| 6 |
# Register the custom classes
|
| 7 |
AutoConfig.register("custom_model", CustomConfig)
|