Instructions to use hikmatfarhat/MNIST_Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hikmatfarhat/MNIST_Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hikmatfarhat/MNIST_Classifier", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hikmatfarhat/MNIST_Classifier", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| from transformers import PretrainedConfig | |
| class MNIST_config(PretrainedConfig): | |
| model_type = "MNIST_Classifier" | |
| def __init__(self, **kwargs): | |
| super().__init__(**kwargs) | |
| for key,value in kwargs.items(): | |
| setattr(self,key,value) | |
| #print(key,value) | |
| #self.input_size=kwargs['input_size'] | |
| #self.hidden_size1=kwargs["hidden_size1"] | |
| #self.hidden_size2=kwargs["hidden_size2"] | |
| #self.output_size=kwargs["output_size"] | |