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, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
54159da
1
Parent(s): 0bd2cee
new version
Browse files
model.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
###import os,sys
|
| 2 |
###sys.path.insert(1,os.path.join(sys.path[0],".."))
|
| 3 |
-
from network import Net
|
| 4 |
-
from config import MNIST_config
|
| 5 |
from transformers import PreTrainedModel
|
| 6 |
# utils not used but importing it forces the upload to huggingface hub to include it
|
| 7 |
|
|
|
|
| 1 |
###import os,sys
|
| 2 |
###sys.path.insert(1,os.path.join(sys.path[0],".."))
|
| 3 |
+
from .network import Net
|
| 4 |
+
from .config import MNIST_config
|
| 5 |
from transformers import PreTrainedModel
|
| 6 |
# utils not used but importing it forces the upload to huggingface hub to include it
|
| 7 |
|