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
File size: 344 Bytes
db32fc7 | 1 2 3 4 5 6 7 8 9 10 11 | 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
|