Skip to content

Commit

Permalink
merging clf with master
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul committed Oct 8, 2020
2 parents 19e7149 + a6b8389 commit 1c90605
Show file tree
Hide file tree
Showing 16 changed files with 788 additions and 1,542 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__/
*.sh
logs/
wandb/
test.ipynb

# C extensions
*.so
Expand Down
34 changes: 34 additions & 0 deletions configs/basic_pos_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"model_type": "bert-base-multilingual-cased",
"max_seq_length": 128,
"weight_decay": 0.1,
"batch_size": 128,
"num_epochs": 200,
"patience": -1,
"num_warmup_steps": 100,
"seed": 42,
"max_grad_norm": 5.0,
"hidden_dropout_prob": 0.2,
"is_fomaml": true,
"outer_lr": 0.0005,
"inner_lr": 0.1,
"num_tasks": 20000,
"task_batch_size": 20,
"num_episodes": 64,
"inner_loop_steps": 2,
"shots": 50,
"train_paths": [
"./data/x/af.train",
"./data/x/bg.train",
"./data/x/da.train",
"./data/x/fi.train",
"./data/x/zh.train"
],
"dev_paths": [
"./data/x/af.dev",
"./data/x/bg.dev",
"./data/x/da.dev",
"./data/x/fi.dev",
"./data/x/zh.dev"
]
}
24 changes: 18 additions & 6 deletions model_config.json → configs/basic_pos_mtl.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,32 @@
"max_seq_length": 128,
"weight_decay": 0.1,
"batch_size": 128,
"num_epochs": 500,
"num_epochs": 200,
"patience": 10,
"num_warmup_steps": 100,
"seed": 42,
"max_grad_norm": 5.0,
"hidden_dropout_prob": 0.2,
"output_dir": "./models",
"is_fomaml": true,
"outer_lr": 0.0005,
"inner_lr": 0.1,
"num_tasks": 20000,
"task_batch_size": 20,
"num_episodes": 32,
"num_episodes": 64,
"inner_loop_steps": 2,
"ways": 2,
"shots": 50
}
"shots": 50,
"train_paths": [
"./data/x/af.train",
"./data/x/bg.train",
"./data/x/da.train",
"./data/x/fi.train",
"./data/x/zh.train"
],
"dev_paths": [
"./data/x/af.dev",
"./data/x/bg.dev",
"./data/x/da.dev",
"./data/x/fi.dev",
"./data/x/zh.dev"
]
}
5 changes: 0 additions & 5 deletions data_config.json

This file was deleted.

Loading

0 comments on commit 1c90605

Please sign in to comment.