stanfordnlp/imdb
Viewer โข Updated โข 100k โข 144k โข 552
Run Prikshit7766/distilbert-finetuned-imdb-mlm 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:
Use HF Jobs to fine-tune https://huggingface.co/Prikshit7766/distilbert-finetuned-imdb-mlm. 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.
Use HF Jobs to run batch inference with https://huggingface.co/Prikshit7766/distilbert-finetuned-imdb-mlm 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.
How to use Prikshit7766/distilbert-finetuned-imdb-mlm with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="Prikshit7766/distilbert-finetuned-imdb-mlm") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("Prikshit7766/distilbert-finetuned-imdb-mlm")
model = AutoModelForMaskedLM.from_pretrained("Prikshit7766/distilbert-finetuned-imdb-mlm", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased for the masked language modeling task. It has been trained on the IMDb dataset.
The following parameters were used during fine-tuning:
10Truesteps500steps500Trueeval_losseval_loss is better (greater_is_better = False).2e-50.0132321,000fp16 = True)1002eval_loss.eval_loss8.3421,000).The model can be used for masked language modeling tasks using the fill-mask pipeline from Hugging Face. Example:
from transformers import pipeline
mask_filler = pipeline("fill-mask", model="Prikshit7766/distilbert-finetuned-imdb-mlm")
text = "This is a great [MASK]."
predictions = mask_filler(text)
for pred in predictions:
print(f">>> {pred['sequence']}")
Output Example:
>>> This is a great movie.
>>> This is a great film.
>>> This is a great show.
>>> This is a great documentary.
>>> This is a great story.
Base model
distilbert/distilbert-base-uncased