Text Classification
Transformers
TensorBoard
Safetensors
Russian
bert
Generated from Trainer
news
russian
media
Instructions to use data-silence/frozen_news_classifier_ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use data-silence/frozen_news_classifier_ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="data-silence/frozen_news_classifier_ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("data-silence/frozen_news_classifier_ft") model = AutoModelForSequenceClassification.from_pretrained("data-silence/frozen_news_classifier_ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
data-silence/any-news-frozen-classifier
Browse filesFiles changed (12)
- README.mdAdded+70
- config.jsonAdded+59
- model.safetensorsAdded+3
- runs/Aug27_09-22-26_432af69f58ad/events.out.tfevents.1724750711.432af69f58ad.380.0Added+3
- runs/Aug27_09-22-26_432af69f58ad/events.out.tfevents.1724750773.432af69f58ad.380.1Added+3
- runs/Aug27_09-34-52_12407ce5a830/events.out.tfevents.1724751305.12407ce5a830.768.0Added+3
- runs/Aug27_09-34-52_12407ce5a830/events.out.tfevents.1724753395.12407ce5a830.768.1Added+3
- runs/Aug27_10-13-24_12407ce5a830/events.out.tfevents.1724753703.12407ce5a830.768.2Added+3
- special_tokens_map.jsonAdded+37
- tokenizer_config.jsonAdded+58
- training_args.binAdded+3
- vocab.txtAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---license: apache-2.0base_model: sentence-transformers/LaBSEtags:- generated_from_trainermetrics:- accuracy- f1- precision- recallmodel-index:- name: frozen_news_classifier_ft 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. -->
# frozen_news_classifier_ft
This model is a fine-tuned version of [sentence-transformers/LaBSE](https://huggingface.co/sentence-transformers/LaBSE) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.7314- Accuracy: 0.7793- F1: 0.7753- Precision: 0.7785- Recall: 0.7793
## 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: 1e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- lr_scheduler_warmup_steps: 500- num_epochs: 10
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall ||:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|:---------:|:------:|| 0.8422 | 1.0 | 3596 | 0.8104 | 0.7681 | 0.7632 | 0.7669 | 0.7681 || 0.7923 | 2.0 | 7192 | 0.7738 | 0.7711 | 0.7666 | 0.7700 | 0.7711 || 0.7597 | 3.0 | 10788 | 0.7485 | 0.7754 | 0.7716 | 0.7741 | 0.7754 || 0.7564 | 4.0 | 14384 | 0.7314 | 0.7793 | 0.7753 | 0.7785 | 0.7793 |
### Framework versions
- Transformers 4.42.4- Pytorch 2.4.0+cu121- Datasets 2.21.0- Tokenizers 0.19.11234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ "_name_or_path": "sentence-transformers/LaBSE", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8", "9": "LABEL_9", "10": "LABEL_10" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_10": 10, "LABEL_2": 2, "LABEL_3": 3, "LABEL_4": 4, "LABEL_5": 5, "LABEL_6": 6, "LABEL_7": 7, "LABEL_8": 8, "LABEL_9": 9 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.42.4", "type_vocab_size": 2, "use_cache": true, "vocab_size": 501153}123version https://git-lfs.github.com/spec/v1oid sha256:8c1fb1a23ad8d429a2a521addc1b98aa13121188f2f39f5db609475fa4b54e8csize 1883765172123version https://git-lfs.github.com/spec/v1oid sha256:d548a6da5cb21c0557e93d9d40dd778d1e49fba9f1a0c5a73201a3515f608a46size 5516123version https://git-lfs.github.com/spec/v1oid sha256:8bfe169b270cf0ed6d57c9db57117c014a48dac020dae62912f1fab184e27017size 88123version https://git-lfs.github.com/spec/v1oid sha256:c5eaf85cbedff7bacf10021511f856941fac29463962382028136f068b9a875bsize 13668123version https://git-lfs.github.com/spec/v1oid sha256:07eeb4acec2419f253a5daf49bbec229292a467a74420f221fbb2b31f612416fsize 11614123version https://git-lfs.github.com/spec/v1oid sha256:b7960e5e489e96897a490ab036a4e8167525e4c491611873f23c85f8ec6ebff2size 1376812345678910111213141516171819202122232425262728293031323334353637{ "cls_token": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "mask_token": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "sep_token": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ "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 } }, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": false, "full_tokenizer_file": null, "mask_token": "[MASK]", "model_max_length": 512, "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:4aef35567507b260830490977ee80aef0a3b11f67029d25c354af656cdb6e338size 5176README.mdAdded+70
config.jsonAdded+59
model.safetensorsAdded+3
runs/Aug27_09-22-26_432af69f58ad/events.out.tfevents.1724750711.432af69f58ad.380.0Added+3
runs/Aug27_09-22-26_432af69f58ad/events.out.tfevents.1724750773.432af69f58ad.380.1Added+3
runs/Aug27_09-34-52_12407ce5a830/events.out.tfevents.1724751305.12407ce5a830.768.0Added+3
runs/Aug27_09-34-52_12407ce5a830/events.out.tfevents.1724753395.12407ce5a830.768.1Added+3
runs/Aug27_10-13-24_12407ce5a830/events.out.tfevents.1724753703.12407ce5a830.768.2Added+3
special_tokens_map.jsonAdded+37
tokenizer_config.jsonAdded+58
training_args.binAdded+3
vocab.txtAdded