monsoon-nlp / hindi-tpu-electra

huggingface.co
Total runs: 34
24-hour runs: 0
7-day runs: 8
30-day runs: 20
Model's Last Updated: August 27 2020
feature-extraction

Introduction of hindi-tpu-electra

Model Details of hindi-tpu-electra

Hindi language model

Trained with ELECTRA base size settings

Tokenization and training CoLab

Example Notebooks

This model outperforms Multilingual BERT on Hindi movie reviews / sentiment analysis (using SimpleTransformers)

You can get higher accuracy using ktrain + TensorFlow, where you can adjust learning rate and other hyperparameters: https://colab.research.google.com/drive/1mSeeSfVSOT7e-dVhPlmSsQRvpn6xC05w?usp=sharing

Question-answering on MLQA dataset: https://colab.research.google.com/drive/1i6fidh2tItf_-IDkljMuaIGmEU6HT2Ar#scrollTo=IcFoAHgKCUiQ

A smaller model ( Hindi-BERT ) performs better on a BBC news classification task.

Corpus

The corpus is two files:

Bonus notes:

  • Adding English wiki text or parallel corpus could help with cross-lingual tasks and training
Vocabulary

https://drive.google.com/file/d/1-6tXrii3tVxjkbrpSJE9MOG_HhbvP66V/view?usp=sharing

Bonus notes:

  • Created with HuggingFace Tokenizers; you can increase vocabulary size and re-train; remember to change ELECTRA vocab_size
Training

Structure your files, with data-dir named "trainer" here

trainer
- vocab.txt
- pretrain_tfrecords
-- (all .tfrecord... files)
- models
-- modelname
--- checkpoint
--- graph.pbtxt
--- model.*
Conversion

Use this process to convert an in-progress or completed ELECTRA checkpoint to a Transformers-ready model:

git clone https://github.com/huggingface/transformers
python ./transformers/src/transformers/convert_electra_original_tf_checkpoint_to_pytorch.py
  --tf_checkpoint_path=./models/checkpointdir
  --config_file=config.json
  --pytorch_dump_path=pytorch_model.bin
  --discriminator_or_generator=discriminator
python
from transformers import TFElectraForPreTraining
model = TFElectraForPreTraining.from_pretrained("./dir_with_pytorch", from_pt=True)
model.save_pretrained("tf")

Once you have formed one directory with config.json, pytorch_model.bin, tf_model.h5, special_tokens_map.json, tokenizer_config.json, and vocab.txt on the same level, run:

transformers-cli upload directory

Runs of monsoon-nlp hindi-tpu-electra on huggingface.co

34
Total runs
0
24-hour runs
0
3-day runs
8
7-day runs
20
30-day runs

More Information About hindi-tpu-electra huggingface.co Model

hindi-tpu-electra huggingface.co

hindi-tpu-electra huggingface.co is an AI model on huggingface.co that provides hindi-tpu-electra's model effect (), which can be used instantly with this monsoon-nlp hindi-tpu-electra model. huggingface.co supports a free trial of the hindi-tpu-electra model, and also provides paid use of the hindi-tpu-electra. Support call hindi-tpu-electra model through api, including Node.js, Python, http.

hindi-tpu-electra huggingface.co Url

https://huggingface.co/monsoon-nlp/hindi-tpu-electra

monsoon-nlp hindi-tpu-electra online free

hindi-tpu-electra huggingface.co is an online trial and call api platform, which integrates hindi-tpu-electra's modeling effects, including api services, and provides a free online trial of hindi-tpu-electra, you can try hindi-tpu-electra online for free by clicking the link below.

monsoon-nlp hindi-tpu-electra online free url in huggingface.co:

https://huggingface.co/monsoon-nlp/hindi-tpu-electra

hindi-tpu-electra install

hindi-tpu-electra is an open source model from GitHub that offers a free installation service, and any user can find hindi-tpu-electra on GitHub to install. At the same time, huggingface.co provides the effect of hindi-tpu-electra install, users can directly use hindi-tpu-electra installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

hindi-tpu-electra install url in huggingface.co:

https://huggingface.co/monsoon-nlp/hindi-tpu-electra

Url of hindi-tpu-electra

hindi-tpu-electra huggingface.co Url

Provider of hindi-tpu-electra huggingface.co

monsoon-nlp
ORGANIZATIONS

Other API from monsoon-nlp

huggingface.co

Total runs: 47
Run Growth: 27
Growth Rate: 60.00%
Updated:September 03 2023
huggingface.co

Total runs: 15
Run Growth: 6
Growth Rate: 40.00%
Updated:February 25 2025
huggingface.co

Total runs: 14
Run Growth: -1
Growth Rate: -6.67%
Updated:February 03 2025
huggingface.co

Total runs: 7
Run Growth: -8
Growth Rate: -114.29%
Updated:May 23 2021