Instructions to use nhatkhangdtp/CKTN-ELECTRA-no-script-aware with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nhatkhangdtp/CKTN-ELECTRA-no-script-aware with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="nhatkhangdtp/CKTN-ELECTRA-no-script-aware")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("nhatkhangdtp/CKTN-ELECTRA-no-script-aware") model = AutoModel.from_pretrained("nhatkhangdtp/CKTN-ELECTRA-no-script-aware", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CKTN-ELECTRA (ablation: no script-aware filtering)
This is an ablation checkpoint from the paper Echoes Across Vietnam's Highlands, Delta, and Coast: A Multilingual Corpus for Cham, Khmer, and Tay-Nung. It is released so that the ablation study can be reproduced. For downstream use, take the full model, nhatkhangdtp/CKTN-ELECTRA.
It was trained exactly like CKTN-ELECTRA, except that the replacement sampler's script-compatibility filter is disabled. Identity, well-formedness and embedding-similarity filters stay on, so the generator may, for example, substitute a Khmer-script piece into a Latin-script Cham or Tay-Nung sentence. All other settings are the same: 8-layer generator with shared embeddings, top-64 candidates at temperature 1.25, similarity band [0.15, 0.95], AdamW at lr 2e-5, 6 epochs, 15% masking and sequence length 512.
The weights are the discriminator from the epoch with the best development replaced-token-detection F1: epoch 3, with RTD F1 0.878 and accuracy 0.969. It is a plain RemBertModel with no task head.
from transformers import AutoModel, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("nhatkhangdtp/CKTN-ELECTRA-no-script-aware", use_fast=False)
model = AutoModel.from_pretrained("nhatkhangdtp/CKTN-ELECTRA-no-script-aware")
Code and training configuration: github.com/TracDucAnh/CKTN-ELECTRA, config configs/pretrain/no_script_aware.json.
Citation
@misc{dinh2026echoes,
title = {Echoes Across Vietnam's Highlands, Delta, and Coast: A Multilingual Corpus for Cham, Khmer, and Tay-Nung},
author = {Dinh, Anh Trac Duc and Vo, Khang Nhat Hoang and Doan, Vinh Cong and Ta, Tai Tien and Lam, Khoa Duc Anh},
year = {2026},
eprint = {2607.08362},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2607.08362}
}
- Downloads last month
- 22