Downloads · 30 days
26
0% of all-time downloads
NeTSlab/gpt2_parfind_en_nl_zh_equal
gpt2_parfind_en_nl_zh_equal is a text generation model from NeTSlab. Use it when you need the model to write or continue text. It is set up for transformers.
Multilingual GPT-2 model for the BabyLM 2026 multilingual setting, paired with a custom ParadigmFinder tokenizer trained on English, Dutch, and Chinese.
Downloads · 30 days
26
0% of all-time downloads
All-time downloads
6K
Public
Parameters
120M
13.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors479 MB · 100%
From the Hugging Face model README
Multilingual GPT-2 model for the BabyLM 2026 multilingual setting, paired with a custom ParadigmFinder tokenizer trained on English, Dutch, and Chinese.
This export comes from:
toktrain_ParFindFast_ML_BD_budget16k_zhchildes_v1.0model_gpt2_ParFindFast_ML_BD_budget16k_zhchildes_v1.0The model and tokenizer are packaged together for direct Hugging Face upload. Because the tokenizer uses custom code, loading requires trust_remote_code=True.
GPT2LMHeadModel1212768102451244090EnhancedParadigmTokenizerWrapperParadigmFindertruespace_free_only16384eng, nld, zhoThis tokenizer includes the custom runtime files needed for HF loading:
tokenizer.pyboundary_discovery.pypreprocessing.pyparadigm_utils.pyparadigms.jsonmultilingual_meta.jsonThe model was trained on the BabyLM 2026 multilingual corpus selection used in this repo, with aligned tokenizer training and LM training over the same multilingual data source.
Languages:
from transformers import AutoTokenizer, AutoModelForCausalLM
repo_id = "NeTSlab/gpt2_parfind_en_nl_zh_equal"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo_id)
prompt = "The child looked at"
inputs = tokenizer(prompt, return_tensors="pt")
output = model.generate(**inputs, max_new_tokens=30)
print(tokenizer.decode(output[0]))
If your Hugging Face cache is not writable, set:
export HF_HOME=/tmp/hf_cache
trust_remote_code=True.