加载中…
加载中…
An FP16 version of distilbert/distilbert-base-uncased-finetuned-sst-2-english,
prepared for a quantization comparison project. This model performs binary
sentiment classification on English text using the SST-2 label set.
The latency is from the project's CPU benchmark and is not a general speed claim. In that run, FP16 was slower than the FP32 baseline. See the project repository's report for the full methodology and limitations.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo_id = "SoloCode/distilbert-sst2-fp16-quantization"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForSequenceClassification.from_pretrained(repo_id)
This checkpoint derives from the model linked above. Review its model card and license before reuse.