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

pipe = pipeline("fill-mask", model="Intel/bert-base-uncased-sparse-70-unstructured")
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("Intel/bert-base-uncased-sparse-70-unstructured")
model = AutoModelForMaskedLM.from_pretrained("Intel/bert-base-uncased-sparse-70-unstructured")
Quick Links

Sparse BERT base model (uncased)

Pretrained model pruned to 70% sparsity. The model is a pruned version of the BERT base model.

Intended Use

The model can be used for fine-tuning to downstream tasks with sparsity already embeded to the model. To keep the sparsity a mask should be added to each sparse weight blocking the optimizer from updating the zeros.

Downloads last month
14
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including Intel/bert-base-uncased-sparse-70-unstructured