Downloads · 30 days
258
14% of all-time downloads
RishiDarkDevil/distilroberta-base-finetuned-amazon-products
distilroberta-base-finetuned-amazon-products is a fill-mask model from RishiDarkDevil. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
258
14% of all-time downloads
All-time downloads
1.9K
Public
Repo size
250 GB
Likes
0
Public
Click a slice to open those files.
.bin329 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilroberta-base on the on 1 million sentences sampled randomly from the pool of approximately 20 million product titles, product descriptions and product bullet points extracted out of Amazon India Scrapped Dataset in 2023. The model is evaluated on 0.1 million sentences which were held out. It achieves the following results on the evaluation set:
from transformers import AutoTokenizer, AutoModelForMaskedLM, pipeline
model_checkpoint = "RishiDarkDevil/distilroberta-base-finetuned-amazon-products"
tokenizer = AutoTokenizer.from_pretrained("distilroberta-base", use_fast=True)
model = AutoModelForMaskedLM.from_pretrained(model_checkpoint, output_hidden_states = True)
fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
fill_mask('Made with Super Hard Coating and Shock <mask> technology and it protects the display')
# actual word: Absorption, predicted: 'proof' (0.36), 'absorption' (0.23)
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.5129 | 1.0 | 125000 | 2.3504 |
| 2.3418 | 2.0 | 250000 | 2.2269 |
| 2.2978 | 3.0 | 375000 | 2.1161 |