flax-community / gpt2-bengali

huggingface.co
Total runs: 1.7K
24-hour runs: 0
7-day runs: 35
30-day runs: 1.1K
Model's Last Updated: August 28 2023
text-generation

Introduction of gpt2-bengali

Model Details of gpt2-bengali

Bengali GPT-2

Bengali GPT-2 demo. Part of the Huggingface JAX/Flax event . Also features a finetuned model on bengali song lyrics.

Model Description

OpenAI GPT-2 model was proposed in Language Models are Unsupervised Multitask Learners paper .Original GPT2 model was a causal (unidirectional) transformer pretrained using language modeling on a very large corpus of ~40 GB of text data. This model has same configuration but has been pretrained on bengali corpus of mC4(multilingual C4) dataset. The code for training the model has all been open-sourced here .

Training Details

Overall Result:

Eval loss : 1.45, Eval Perplexity : 3.141

Data: mC4-bn

Train Steps: 250k steps

link 🤗 flax-community/gpt2-bengali

Demo : https://huggingface.co/spaces/flax-community/Gpt2-bengali

Usage

For using the model there are multiple options available. For example using the pipeline directly we can try to generate sentences.

from transformers import pipeline

gpt2_bengali = pipeline('text-generation',model="flax-community/gpt2-bengali", tokenizer='flax-community/gpt2-bengali')

Similarly for using the finetuned model on bangla songs we can use following.

from transformers import pipeline

singer = pipeline('text-generation',model="khalidsaifullaah/bengali-lyricist-gpt2", tokenizer='khalidsaifullaah/bengali-lyricist-gpt2')

For using on other tasks the model needs to be fine-tuned on custom datasets. Details can be found in huggingface documentation

Contributors

  • Khalid Saifullah
  • Tasmiah Tahsin Mayeesha
  • Ritobrata Ghosh
  • Ibrahim Musa
  • M Saiful Bari
BibTeX entry and citation info

@misc {flax_community_2023, author = { {Flax Community} }, title = { gpt2-bengali (Revision cb8fff6) }, year = 2023, url = { https://huggingface.co/flax-community/gpt2-bengali }, doi = { 10.57967/hf/0938 }, publisher = { Hugging Face } }

Runs of flax-community gpt2-bengali on huggingface.co

1.7K
Total runs
0
24-hour runs
-51
3-day runs
35
7-day runs
1.1K
30-day runs

More Information About gpt2-bengali huggingface.co Model

More gpt2-bengali license Visit here:

https://choosealicense.com/licenses/mit

gpt2-bengali huggingface.co

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

flax-community gpt2-bengali online free

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

flax-community gpt2-bengali online free url in huggingface.co:

https://huggingface.co/flax-community/gpt2-bengali

gpt2-bengali install

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

gpt2-bengali install url in huggingface.co:

https://huggingface.co/flax-community/gpt2-bengali

Url of gpt2-bengali

Provider of gpt2-bengali huggingface.co

flax-community
ORGANIZATIONS

Other API from flax-community