Instructions to use ydshieh/tf_custom_model_example with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ydshieh/tf_custom_model_example with Transformers:
# Load model directly from transformers import TFAutoModel model = TFAutoModel.from_pretrained("ydshieh/tf_custom_model_example", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "n_layers": 2, | |
| "model_type": "my_model", | |
| "auto_map": { | |
| "AutoConfig": "configuration_my_model.MyModelConfig", | |
| "AutoModel": "modeling_my_model.MyModel", | |
| "TFAutoModel": "modeling_tf_my_model.TFMyModel" | |
| } | |
| } | |