BERT
Collection
BERT models of varying flavors โข 19 items โข Updated
Run Intel/bert-base-uncased-mnli-sparse-70-unstructured 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/Intel/bert-base-uncased-mnli-sparse-70-unstructured. 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/Intel/bert-base-uncased-mnli-sparse-70-unstructured 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 Intel/bert-base-uncased-mnli-sparse-70-unstructured with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Intel/bert-base-uncased-mnli-sparse-70-unstructured") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Intel/bert-base-uncased-mnli-sparse-70-unstructured")
model = AutoModelForSequenceClassification.from_pretrained("Intel/bert-base-uncased-mnli-sparse-70-unstructured", device_map="auto")Fine tuned sparse BERT base to MNLI (GLUE Benchmark) task from bert-base-uncased-sparse-70-unstructured.
Note: This model requires transformers==2.10.0
Matched: 82.5%
Mismatched: 83.3%
This model can be further fine-tuned to other tasks and achieve the following evaluation results:
| Task | QQP (Acc/F1) | QNLI (Acc) | SST-2 (Acc) | STS-B (Pears/Spear) | SQuADv1.1 (Acc/F1) |
|---|---|---|---|---|---|
| 90.2/86.7 | 90.3 | 91.5 | 88.9/88.6 | 80.5/88.2 |