Instructions to use tester-123456789/tiny-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tester-123456789/tiny-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="tester-123456789/tiny-model", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tester-123456789/tiny-model", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| from transformers import PretrainedConfig | |
| class TinyModelConfig(PretrainedConfig): | |
| model_type = "tinymodel" | |
| def __init__(self, input_size=100, hidden_size=200, num_labels=10, **kwargs): | |
| super().__init__(**kwargs) | |
| self.input_size = input_size | |
| self.hidden_size = hidden_size | |
| self.num_labels = num_labels | |