voidful / albert_chinese_xlarge

huggingface.co
Total runs: 17
24-hour runs: 0
7-day runs: 1
30-day runs: 8
Model's Last Updated: March 18 2023
fill-mask

Introduction of albert_chinese_xlarge

Model Details of albert_chinese_xlarge

albert_chinese_xlarge

This a albert_chinese_xlarge model from Google's github
converted by huggingface's script

Notice

Support AutoTokenizer

Since sentencepiece is not used in albert_chinese_base model
you have to call BertTokenizer instead of AlbertTokenizer !!!
we can eval it using an example on MaskedLM

由於 albert_chinese_base 模型沒有用 sentencepiece
用AlbertTokenizer會載不進詞表,因此需要改用BertTokenizer !!!
我們可以跑MaskedLM預測來驗證這個做法是否正確

Justify (驗證有效性)
from transformers import AutoTokenizer, AlbertForMaskedLM
import torch
from torch.nn.functional import softmax

pretrained = 'voidful/albert_chinese_xlarge'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
model = AlbertForMaskedLM.from_pretrained(pretrained)

inputtext = "今天[MASK]情很好"

maskpos = tokenizer.encode(inputtext, add_special_tokens=True).index(103)

input_ids = torch.tensor(tokenizer.encode(inputtext, add_special_tokens=True)).unsqueeze(0)  # Batch size 1
outputs = model(input_ids, labels=input_ids)
loss, prediction_scores = outputs[:2]
logit_prob = softmax(prediction_scores[0, maskpos],dim=-1).data.tolist()
predicted_index = torch.argmax(prediction_scores[0, maskpos]).item()
predicted_token = tokenizer.convert_ids_to_tokens([predicted_index])[0]
print(predicted_token, logit_prob[predicted_index])

Result: 心 0.9942440390586853

Runs of voidful albert_chinese_xlarge on huggingface.co

17
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
8
30-day runs

More Information About albert_chinese_xlarge huggingface.co Model

albert_chinese_xlarge huggingface.co

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

albert_chinese_xlarge huggingface.co Url

https://huggingface.co/voidful/albert_chinese_xlarge

voidful albert_chinese_xlarge online free

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

voidful albert_chinese_xlarge online free url in huggingface.co:

https://huggingface.co/voidful/albert_chinese_xlarge

albert_chinese_xlarge install

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

albert_chinese_xlarge install url in huggingface.co:

https://huggingface.co/voidful/albert_chinese_xlarge

Url of albert_chinese_xlarge

albert_chinese_xlarge huggingface.co Url

Provider of albert_chinese_xlarge huggingface.co

voidful
ORGANIZATIONS

Other API from voidful

huggingface.co

Total runs: 180
Run Growth: 131
Growth Rate: 72.78%
Updated:March 25 2023
huggingface.co

Total runs: 21
Run Growth: 10
Growth Rate: 52.63%
Updated:February 20 2023
huggingface.co

Total runs: 12
Run Growth: 7
Growth Rate: 58.33%
Updated:July 25 2023
huggingface.co

Total runs: 8
Run Growth: -499
Growth Rate: -6237.50%
Updated:January 07 2026
huggingface.co

Total runs: 5
Run Growth: 2
Growth Rate: 40.00%
Updated:December 25 2024
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:December 02 2025
huggingface.co

Total runs: 4
Run Growth: -2
Growth Rate: -50.00%
Updated:November 29 2024
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:April 10 2024
huggingface.co

Total runs: 4
Run Growth: 4
Growth Rate: 100.00%
Updated:January 23 2022
huggingface.co

Total runs: 4
Run Growth: 4
Growth Rate: 100.00%
Updated:June 15 2022