Instructions to use ydshieh/pt_custom_model_example with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ydshieh/pt_custom_model_example with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ydshieh/pt_custom_model_example", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
ydshieh commited on
Commit ·
cbde900
1
Parent(s): 70a6103
add model
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -3,6 +3,6 @@
|
|
| 3 |
"model_type": "my_model",
|
| 4 |
"auto_map": {
|
| 5 |
"AutoConfig": "configuration_my_model.MyModelConfig",
|
| 6 |
-
"AutoModel": "modeling_my_model.
|
| 7 |
}
|
| 8 |
}
|
|
|
|
| 3 |
"model_type": "my_model",
|
| 4 |
"auto_map": {
|
| 5 |
"AutoConfig": "configuration_my_model.MyModelConfig",
|
| 6 |
+
"AutoModel": "modeling_my_model.MyModel"
|
| 7 |
}
|
| 8 |
}
|