How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="Intel/bert-mini-sst2-distilled-sparse-90-1X4-block")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("Intel/bert-mini-sst2-distilled-sparse-90-1X4-block")
model = AutoModelForSequenceClassification.from_pretrained("Intel/bert-mini-sst2-distilled-sparse-90-1X4-block", device_map="auto")
Quick Links

Sparse BERT mini model (uncased)

Finetuned model pruned to 1:4 structured sparsity. The model is a pruned version of the BERT mini model.

Intended Use

The model can be used for inference with sparsity optimization. For further details on the model and its usage will be soon available.

Evaluation Results

We get the following results on the sst2 tasks development set:

Task SST-2 (Acc)
87.2
Better than dense bert mini which is 84.74%.
Downloads last month
109
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including Intel/bert-mini-sst2-distilled-sparse-90-1X4-block