Instructions to use Hartunka/bert_base_rand_50_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hartunka/bert_base_rand_50_v2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, DistilBertForLDAMaskedLM tokenizer = AutoTokenizer.from_pretrained("Hartunka/bert_base_rand_50_v2") model = DistilBertForLDAMaskedLM.from_pretrained("Hartunka/bert_base_rand_50_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Hartunka/bert_base_rand_50_v2: direct link, hf CLI and curl.
- Browser
- Download file 2.07 kB
-
https://huggingface.co/Hartunka/bert_base_rand_50_v2/resolve/main/README.md
- Command line
-
hf download hf://Hartunka/bert_base_rand_50_v2/README.md
-
curl -L -o README.md https://huggingface.co/Hartunka/bert_base_rand_50_v2/resolve/main/README.md
2.07 kB
| library_name: transformers | |
| tags: | |
| - generated_from_trainer | |
| datasets: | |
| - Hartunka/processed_wikitext-103-raw-v1-rand-50_v2 | |
| metrics: | |
| - accuracy | |
| model-index: | |
| - name: bert_base_rand_50_v2 | |
| results: | |
| - task: | |
| name: Masked Language Modeling | |
| type: fill-mask | |
| dataset: | |
| name: Hartunka/processed_wikitext-103-raw-v1-rand-50_v2 | |
| type: Hartunka/processed_wikitext-103-raw-v1-rand-50_v2 | |
| metrics: | |
| - name: Accuracy | |
| type: accuracy | |
| value: 0.151748883991637 | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # bert_base_rand_50_v2 | |
| This model is a fine-tuned version of [](https://huggingface.co/) on the Hartunka/processed_wikitext-103-raw-v1-rand-50_v2 dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 10.1382 | |
| - Accuracy: 0.1517 | |
| ## 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: 0.0001 | |
| - train_batch_size: 96 | |
| - eval_batch_size: 96 | |
| - seed: 10 | |
| - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments | |
| - lr_scheduler_type: linear | |
| - lr_scheduler_warmup_steps: 10000 | |
| - num_epochs: 25 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | | |
| |:-------------:|:-------:|:-----:|:---------------:|:--------:| | |
| | 9.9441 | 4.1982 | 10000 | 10.1116 | 0.1491 | | |
| | 8.9223 | 8.3963 | 20000 | 10.7880 | 0.1528 | | |
| | 7.6087 | 12.5945 | 30000 | 11.9659 | 0.1540 | | |
| | 6.6937 | 16.7926 | 40000 | 13.0278 | 0.1506 | | |
| | 6.355 | 20.9908 | 50000 | 13.7891 | 0.1520 | | |
| ### Framework versions | |
| - Transformers 4.50.2 | |
| - Pytorch 2.2.1+cu121 | |
| - Datasets 2.18.0 | |
| - Tokenizers 0.21.1 | |