Run this model with HF Jobs
Run hikmatfarhat/MNIST_Classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/hikmatfarhat/MNIST_Classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/hikmatfarhat/MNIST_Classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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)# pip install -U transformers accelerate # 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
Commit ·
0bd2cee
1
Parent(s): ae0c2b6
new version
Browse filesFiles changed (3)
- config.json+1-1
- config.py+1-1
- model.py+2-3
2 unmodified lines34567892 unmodified lines"MNIST_Classifier"],"auto_map": {"AutoConfig": "config.Config","AutoModel": "model.MNIST_Classifier"},"hidden_size1": 128,2 unmodified lines34567892 unmodified lines"MNIST_Classifier"],"auto_map": {"AutoConfig": "config.MNIST_config","AutoModel": "model.MNIST_Classifier"},"hidden_size1": 128,
12345from transformers import PretrainedConfigclass Config(PretrainedConfig):model_type = "MNIST_Classifier"def __init__(self, **kwargs):super().__init__(**kwargs)12345from transformers import PretrainedConfigclass MNIST_config(PretrainedConfig):model_type = "MNIST_Classifier"def __init__(self, **kwargs):super().__init__(**kwargs)
12345678910111213###import os,sys###sys.path.insert(1,os.path.join(sys.path[0],".."))from network import Netfrom config import Configfrom transformers import PreTrainedModel# utils not used but importing it forces the upload to huggingface hub to include itclass MNIST_Classifier(PreTrainedModel):config_class = Configdef __init__(self, config):super().__init__(config)self.classifier=Net(config.input_size,config.hidden_size1,config.hidden_size2,123456789101112###import os,sys###sys.path.insert(1,os.path.join(sys.path[0],".."))from network import Netfrom config import MNIST_configfrom transformers import PreTrainedModel# utils not used but importing it forces the upload to huggingface hub to include itclass MNIST_Classifier(PreTrainedModel):config_class = MNIST_configdef __init__(self, config):super().__init__(config)self.classifier=Net(config.input_size,config.hidden_size1,config.hidden_size2,
config.json+1-1
config.py+1-1
model.py+2-3