Text Classification
Transformers
PyTorch
Safetensors
distilbert
Generated from Trainer
mlflow
sentiment-analysis
Run this model with HF Jobs
Run juliensimon/distilbert-imdb-mlflow 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/juliensimon/distilbert-imdb-mlflow. 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/juliensimon/distilbert-imdb-mlflow 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 juliensimon/distilbert-imdb-mlflow with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use juliensimon/distilbert-imdb-mlflow with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="juliensimon/distilbert-imdb-mlflow")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("juliensimon/distilbert-imdb-mlflow") model = AutoModelForSequenceClassification.from_pretrained("juliensimon/distilbert-imdb-mlflow", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Improve README with usage example and video link
Browse files1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758591 unmodified linelicense: apache-2.0tags:- generated_from_trainerdatasets:- imdbbase_model: distilbert-base-casedmodel-index:- name: distilbert-imdb-mlflowresults: []---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># distilbert-imdb-mlflowThis model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on the imdb dataset.MLflow logs are included. To visualize them, just clone the repo and run :```mlflow ui```## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 1### Training results### Framework versions- Transformers 4.20.1- Pytorch 1.10.0- Datasets 2.3.2- Tokenizers 0.12.11 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061621 unmodified linelicense: apache-2.0tags:- generated_from_trainer- mlflow- sentiment-analysisdatasets:- imdbbase_model: distilbert/distilbert-base-casedmodel-index:- name: distilbert-imdb-mlflowresults: []---# DistilBERT IMDB — MLflow IntegrationA [DistilBERT](https://huggingface.co/distilbert-base-cased) model fine-tuned on the [IMDB](https://huggingface.co/datasets/imdb) dataset for sentiment analysis, with [MLflow](https://mlflow.org/) experiment tracking.> **Video walkthrough**: [Log with MLflow and Hugging Face Transformers](https://youtube.com/watch?v=vmfaDZjeB4M)## Model Details| Detail | Value ||--------|-------|| **Base model** | [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) || **Task** | Binary sentiment classification || **Dataset** | [IMDB](https://huggingface.co/datasets/imdb) (50K movie reviews) || **License** | Apache 2.0 |## Training Configuration| Parameter | Value ||-----------|-------|| Learning rate | 5e-05 || Batch size | 8 (train & eval) || Optimizer | Adam (β₁=0.9, β₂=0.999, ε=1e-08) || LR scheduler | Linear || Epochs | 1 |## Usage```pythonfrom transformers import pipelineclassifier = pipeline("sentiment-analysis", model="juliensimon/distilbert-imdb-mlflow")classifier("This movie was absolutely fantastic!")```## Viewing MLflow LogsMLflow training logs are included in the repository. To view:```bashpip install mlflowmlflow ui```## Framework Versions- Transformers 4.20.1- PyTorch 1.10.0- Datasets 2.3.2
README.md+35-32