Run this model with HF Jobs

Run TehranNLP-org/bert-large-mnli-3ep 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:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/TehranNLP-org/bert-large-mnli-3ep. 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.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/TehranNLP-org/bert-large-mnli-3ep 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 from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="TehranNLP-org/bert-large-mnli-3ep")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("TehranNLP-org/bert-large-mnli-3ep")
model = AutoModelForSequenceClassification.from_pretrained("TehranNLP-org/bert-large-mnli-3ep", device_map="auto")
Quick Links

YAML Metadata Error:"model-index[0].results[0].dataset.type" is not allowed to be empty

SEED0042

This model is a fine-tuned version of bert-large-uncased on the MNLI dataset. It achieves the following results on the evaluation set:

  • Loss: 0.5092
  • Accuracy: 0.8573

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 1
  • eval_batch_size: 1
  • seed: 42
  • distributed_type: not_parallel
  • gradient_accumulation_steps: 32
  • total_train_batch_size: 32
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_steps: 2000
  • num_epochs: 3

Training results

Training Loss Epoch Step Validation Loss Accuracy
0.4736 1.0 12271 0.4213 0.8372
0.3248 2.0 24542 0.4055 0.8538
0.1571 3.0 36813 0.5092 0.8573

Framework versions

  • Transformers 4.17.0
  • Pytorch 1.10.0+cu113
  • Datasets 2.1.0
  • Tokenizers 0.11.6
Downloads last month
32
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Evaluation results

Model card error

This model's model-index metadata is invalid: Schema validation error. "model-index[0].results[0].dataset.type" is not allowed to be empty