hon9kon9ize / bert-large-cantonese

huggingface.co
Total runs: 340
24-hour runs: 0
7-day runs: 43
30-day runs: 278
Model's Last Updated: June 21 2024
fill-mask

Introduction of bert-large-cantonese

Model Details of bert-large-cantonese

bert-large-cantonese

Description

This model is tranied from scratch on Cantonese text. It is a BERT model with a large architecture (24-layer, 1024-hidden, 16-heads, 326M parameters).

The first training stage is to pre-train the model on 128 length sequences with a batch size of 512 for 1 epoch. the second stage is to continued pre-train the model on 512 length sequences with a batch size of 512 for one more epoch.

How to use

You can use this model directly with a pipeline for masked language modeling:

from transformers import pipeline

mask_filler = pipeline(
    "fill-mask",
    model="hon9kon9ize/bert-large-cantonese"
)

mask_filler("雞蛋六隻,糖呢就兩茶匙,仲有[MASK]橙皮添。")

; [{'score': 0.08160534501075745,
;   'token': 943,
;   'token_str': '個',
;   'sequence': '雞 蛋 六 隻 , 糖 呢 就 兩 茶 匙 , 仲 有 個 橙 皮 添 。'},
;  {'score': 0.06182105466723442,
;   'token': 1576,
;   'token_str': '啲',
;   'sequence': '雞 蛋 六 隻 , 糖 呢 就 兩 茶 匙 , 仲 有 啲 橙 皮 添 。'},
;  {'score': 0.04600336775183678,
;   'token': 1646,
;   'token_str': '嘅',
;   'sequence': '雞 蛋 六 隻 , 糖 呢 就 兩 茶 匙 , 仲 有 嘅 橙 皮 添 。'},
;  {'score': 0.03743772581219673,
;   'token': 3581,
;   'token_str': '橙',
;   'sequence': '雞 蛋 六 隻 , 糖 呢 就 兩 茶 匙 , 仲 有 橙 橙 皮 添 。'},
;  {'score': 0.031560592353343964,
;   'token': 5148,
;   'token_str': '紅',
;   'sequence': '雞 蛋 六 隻 , 糖 呢 就 兩 茶 匙 , 仲 有 紅 橙 皮 添 。'}]
Training hyperparameters

The following hyperparameters were used during first training:

  • Batch size: 512
  • Learning rate: 1e-4
  • Learning rate scheduler: linear decay
  • 1 Epoch
  • Warmup ratio: 0.1

Loss plot on WanDB

The following hyperparameters were used during second training:

  • Batch size: 512
  • Learning rate: 5e-5
  • Learning rate scheduler: linear decay
  • 1 Epoch
  • Warmup ratio: 0.1

Loss plot on WanDB

Runs of hon9kon9ize bert-large-cantonese on huggingface.co

340
Total runs
0
24-hour runs
11
3-day runs
43
7-day runs
278
30-day runs

More Information About bert-large-cantonese huggingface.co Model

More bert-large-cantonese license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

bert-large-cantonese huggingface.co

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

bert-large-cantonese huggingface.co Url

https://huggingface.co/hon9kon9ize/bert-large-cantonese

hon9kon9ize bert-large-cantonese online free

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

hon9kon9ize bert-large-cantonese online free url in huggingface.co:

https://huggingface.co/hon9kon9ize/bert-large-cantonese

bert-large-cantonese install

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

bert-large-cantonese install url in huggingface.co:

https://huggingface.co/hon9kon9ize/bert-large-cantonese

Url of bert-large-cantonese

bert-large-cantonese huggingface.co Url

Provider of bert-large-cantonese huggingface.co

hon9kon9ize
ORGANIZATIONS

Other API from hon9kon9ize