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 (7)
15 unmodified lines1617181920212219 unmodified lines4243444546474849505152535415 unmodified linesThis 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 description19 unmodified lines- 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 versions15 unmodified lines1617181920212219 unmodified lines424344454647484950515253545515 unmodified linesThis 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: 1.4653## Model description19 unmodified lines- 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- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:-----:|:---------------:|| 1.3678 | 1.0 | 8134 | 1.4974 || 1.1809 | 2.0 | 16268 | 1.4653 |### Framework versions
19 unmodified lines202122232419 unmodified lines"transformers_version": "4.57.1","type_vocab_size": 2,"use_cache": true,"vocab_size": 30523}19 unmodified lines202122232419 unmodified lines"transformers_version": "4.57.1","type_vocab_size": 2,"use_cache": true,"vocab_size": 30522}
123version https://git-lfs.github.com/spec/v1oid sha256:8e20e70325bc2b04edfedb4e579e588f7cd79b760045af7a77c1b673953fb0d0size 132876360123version https://git-lfs.github.com/spec/v1oid sha256:05f5ffd839326b9220d1c28a932e820badfad6bb2c8bc6b72d932140154a293csize 132874824
123version https://git-lfs.github.com/spec/v1oid sha256:43eb94c897b5ff07d4efc529d48c6820577f3cfb22bbff0c0795655760a327d2size 40020123456789101112131439 unmodified lines545556575859606162636465666768{"version": "1.0","truncation": null,"padding": {"strategy": "BatchLongest","direction": "Right","pad_to_multiple_of": null,"pad_id": 0,"pad_type_id": 0,"pad_token": "[PAD]"},"added_tokens": [{"id": 0,39 unmodified lines"rstrip": false,"normalized": false,"special": true},{"id": 30522,"content": "<no_answer>","single_word": false,"lstrip": false,"rstrip": false,"normalized": true,"special": false}],"normalizer": {123456739 unmodified lines474849505152{"version": "1.0","truncation": null,"padding": null,"added_tokens": [{"id": 0,39 unmodified lines"rstrip": false,"normalized": false,"special": true}],"normalizer": {
38 unmodified lines394041424344454647484950515238 unmodified lines"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,38 unmodified lines39404142434438 unmodified lines"rstrip": false,"single_word": false,"special": true}},"clean_up_tokenization_spaces": true,
123version https://git-lfs.github.com/spec/v1oid sha256:6af54618a182499fbc4c29b222e2ef83f7628c325d27b2cd7d78932d872b0eb9size 5841123version https://git-lfs.github.com/spec/v1oid sha256:498c5d0fc3f7a62a2d8f4e0d73a974ec2f3d7b792fb80caafbb5a0cc19250cadsize 5841
README.md+4-3
config.json+1-1
model.safetensors+2-2
runs/Nov20_03-14-07_26cd4a53f5b5/events.out.tfevents.1763608469.26cd4a53f5b5.285.0Added+3
tokenizer.json+1-17
tokenizer_config.json-8
training_args.bin+1-1