MetaNLI
Meta-learning algorithms for cross-lingual NLI
Install / Use
/learn @mojabyte/MetaNLIREADME
MetaNLI
Meta learning algorithms to train cross-lingual NLI (multi-task) models
Train (source task)
Reptile
To train the model using Reptile algorithm, run the command below:
python reptile.py \
--meta_tasks sc_en,sc_de,sc_es,sc_fr \
--queue_len 4 \
--temp 5.0 \
--epochs 1 \
--meta_lr 1e-5 \
--scheduler \
--gamma 0.5 \
--step_size 4000 \
--shot 4 \
--meta_iteration 8000 \
--log_interval 300
Prototypical
To train the model using Prototypical Networks algorithm, run the command below:
python prototype.py \
--meta_tasks sc_en,sc_de,sc_es,sc_fr \
--target_task sc_fa \
--epochs 1 \
--meta_lr 1e-5 \
--lambda_1 1 \
--lambda_2 1 \
--scheduler \
--gamma 0.5 \
--step_size 1000 \
--shot 8 \
--query_num 0 \
--target_shot 8 \
--meta_iteration 2500 \
--log_interval 50
Zero-shot Test (on target task)
To perform a zero-shot test of the trained model on the target task, run the command below:
python zeroshot.py \
--load saved/model_sc.pt \
--task sc_fa
Fine-tune (target task)
To fine-tune the trained model on the target task, run the command below:
python finetune.py \
--save saved \
--model_filename fine.pt \
--load saved/model_sc.pt \
--task sc_fa \
--epochs 5 \
--lr 1e-5
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
