Question Answering
Transformers
TensorBoard
Safetensors
English
bert
Generated from Trainer
extractive_QA
Run this model with HF Jobs
Run hf-tuner/bert-mini-squadv2 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/hf-tuner/bert-mini-squadv2. 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/hf-tuner/bert-mini-squadv2 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.
Instructions to use hf-tuner/bert-mini-squadv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tuner/bert-mini-squadv2 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="hf-tuner/bert-mini-squadv2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-tuner/bert-mini-squadv2") model = AutoModelForQuestionAnswering.from_pretrained("hf-tuner/bert-mini-squadv2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (12)
- README.mdAdded+59
- added_tokens.jsonAdded+3
- config.jsonAdded+24
- model.safetensorsAdded+3
- runs/Nov18_16-37-06_3413c5580b68/events.out.tfevents.1763483876.3413c5580b68.24678.0Added+3
- runs/Nov18_16-38-41_3413c5580b68/events.out.tfevents.1763483925.3413c5580b68.24678.1Added+3
- runs/Nov18_16-39-18_3413c5580b68/events.out.tfevents.1763483961.3413c5580b68.24678.2Added+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+66
- training_args.binAdded+3
- vocab.txtAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859---library_name: transformerslicense: mitbase_model: microsoft/MiniLM-L12-H384-uncasedtags:- generated_from_trainermodel-index:- name: bert-mini-squadv2 results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# bert-mini-squadv2
This model is a fine-tuned version of [microsoft/MiniLM-L12-H384-uncased](https://huggingface.co/microsoft/MiniLM-L12-H384-uncased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: nan
## 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: 2e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 2
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:-----:|:---------------:|| 0.9316 | 1.0 | 8134 | nan || 0.7836 | 2.0 | 16268 | nan |
### Framework versions
- Transformers 4.57.1- Pytorch 2.8.0+cu126- Datasets 4.0.0- Tokenizers 0.22.1123{ "<no_answer>": 30522}123456789101112131415161718192021222324{ "architectures": [ "BertForQuestionAnswering" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "dtype": "float32", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 384, "initializer_range": 0.02, "intermediate_size": 1536, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "transformers_version": "4.57.1", "type_vocab_size": 2, "use_cache": true, "vocab_size": 30523}123version https://git-lfs.github.com/spec/v1oid sha256:8e20e70325bc2b04edfedb4e579e588f7cd79b760045af7a77c1b673953fb0d0size 132876360123version https://git-lfs.github.com/spec/v1oid sha256:1fb66a0f88d222a780c8a68363e25931e7f5706feeb560615c78fa63305e88d8size 4947123version https://git-lfs.github.com/spec/v1oid sha256:f05ba71919fff0c0f868be6c3af9528bc62f8477da43c1742bc1b4c7b4374910size 4947123version https://git-lfs.github.com/spec/v1oid sha256:f726813bc42fb9c34948da4f80ec1b71bdfc1baa9e316c3c17539ebb4f4ca9e0size 400211234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "30522": { "content": "<no_answer>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false } }, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": true, "extra_special_tokens": {}, "mask_token": "[MASK]", "model_max_length": 1000000000000000019884624838656, "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:6af54618a182499fbc4c29b222e2ef83f7628c325d27b2cd7d78932d872b0eb9size 5841README.mdAdded+59
added_tokens.jsonAdded+3
config.jsonAdded+24
model.safetensorsAdded+3
runs/Nov18_16-37-06_3413c5580b68/events.out.tfevents.1763483876.3413c5580b68.24678.0Added+3
runs/Nov18_16-38-41_3413c5580b68/events.out.tfevents.1763483925.3413c5580b68.24678.1Added+3
runs/Nov18_16-39-18_3413c5580b68/events.out.tfevents.1763483961.3413c5580b68.24678.2Added+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+66
training_args.binAdded+3
vocab.txtAdded