Run this model with HF Jobs
Run h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2 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/h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2. 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/h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2 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 h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2") model = AutoModelForTokenClassification.from_pretrained("h3110Fr13nd/guj-eng-code-switch-bert-multilingual-data2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (9)
- README.mdAdded+70
- config.jsonAdded+44
- logs/events.out.tfevents.1763828047.f0da10c9a12b.1796.0Added+3
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+56
- training_args.binAdded+3
- vocab.txtAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---library_name: transformerslicense: apache-2.0base_model: bert-base-multilingual-casedtags:- generated_from_trainermetrics:- precision- recall- f1- accuracymodel-index:- name: guj-eng-code-switch-bert-multilingual-data2 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. -->
# guj-eng-code-switch-bert-multilingual-data2
This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.0412- Precision: 0.9367- Recall: 0.9359- F1: 0.9363- Accuracy: 0.9890
## 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: 32- 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- lr_scheduler_warmup_ratio: 0.1- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|| 0.1821 | 1.0 | 164 | 0.0723 | 0.8931 | 0.9068 | 0.8999 | 0.9802 || 0.0789 | 2.0 | 328 | 0.0403 | 0.9354 | 0.9402 | 0.9378 | 0.9897 || 0.054 | 3.0 | 492 | 0.0412 | 0.9367 | 0.9359 | 0.9363 | 0.9890 |
### Framework versions
- Transformers 4.57.1- Pytorch 2.9.0+cu126- Datasets 4.4.1- Tokenizers 0.22.11234567891011121314151617181920212223242526272829303132333435363738394041424344{ "architectures": [ "BertForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "dtype": "float32", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "B-GUJ", "2": "I-GUJ", "3": "B-ENG", "4": "I-ENG" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "B-ENG": 3, "B-GUJ": 1, "I-ENG": 4, "I-GUJ": 2, "O": 0 }, "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", "transformers_version": "4.57.1", "type_vocab_size": 2, "use_cache": true, "vocab_size": 119547}123version https://git-lfs.github.com/spec/v1oid sha256:11f59fec4a9eeb76959e35c152f23687e285254cd1a51f46c5ab6560524c6041size 9332123version https://git-lfs.github.com/spec/v1oid sha256:6e82c8a60b0ffcc693e3958531f762d553c6cfac14e6d2308b507e9c8387c82csize 7090901321234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "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": false, "cls_token": "[CLS]", "do_lower_case": false, "extra_special_tokens": {}, "mask_token": "[MASK]", "model_max_length": 512, "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:77490e02e47bfdf1ff26042d302fbbf302a48e48b8abf86cd2088ca82d24f326size 5969README.mdAdded+70
config.jsonAdded+44
logs/events.out.tfevents.1763828047.f0da10c9a12b.1796.0Added+3
model.safetensorsAdded+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+56
training_args.binAdded+3
vocab.txtAdded