Instructions to use DJY75/my-first-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DJY75/my-first-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="DJY75/my-first-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("DJY75/my-first-model") model = AutoModelForSequenceClassification.from_pretrained("DJY75/my-first-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
My First Model
Model Description
This is a tiny 2-layer transformer model created to learn how to upload models to Hugging Face. It was built from a DistilBERT configuration with:
- 2 hidden layers
- 4 hidden units per layer
- 2 attention heads
Intended Uses
This model is for educational purposes only - specifically for learning how to upload and manage models on the Hugging Face Hub.
How to Use
from transformers import AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("DJY75/my-first-model")
- Downloads last month
- 2