@ 3.25
HKLII dataset stat(summary of token length of in each paragraph)
| stat value | value |
|---|---|
| count | 2.851737e+06 |
| mean | 83.66615 |
| std | 73.47763 |
| min | 8.0 |
| 25% | 34 |
| 50% | 65 |
| 75% | 112 |
| max | 11819 |
HKLII + caill
| stat value | value |
|---|---|
| count | 2.883591e+06 |
| mean | 87.13742 |
| std | 949.2628 |
| min | 8.0 |
| 25% | 34 |
| 50% | 66 |
| 75% | 114 |
| max | 17415 |
cd huggface
conda env create -f environment.yml
config the model and run
python train.py
CUDA_VISIBLE_DEVICES={your devices} python -m torch.distributed.launch --nproc_per_node={\# your divce} train.py
eg:
CUDA_VISIBLE_DEVICES=0,2,3 python -m torch.distributed.launch --nproc_per_node=3 train.py
| Model name | Method | Perplexity (before) | Perplexity (after) | Vocb size |
|---|---|---|---|---|
| custom-legalbert | mask | 18.370377004 | 4.567 | 32000 |
| legal-bert-base | mask | 11.055 | 3.376 | 30522 |
| multilingual bert | mask | 15.6468 | 2.850 | 105879 |
| multilingual bert (caill added) | mask | 15.7227 | 3.04 | 105879 |
| custom-legalbert | mask+cls | todo | todo | todo |
| legal-bert-base | mask+cls | todo | todo | todo |
| multilingual bert | mask+cls | todo | todo | todo |
because in HKLII datasets it is possible to have chinese and english in same document multilingual
| Model name | Method | Task | Perplexity (after) | Vocb size |
|---|---|---|---|---|
| custom-legalbert | mask | todo | todo | todo |
| legal-bert-base | mask | todo | todo | todo |
| multilingual bert | mask | |||
| custom-legalbert | mask+cls | |||
| legal-bert-base | mask+cls | |||
| multilingual bert | mask+cls |
| Model name | Method | Task | Perplexity (after) | Vocb size |
|---|---|---|---|---|
| custom-legalbert | mask | training | training | training |
| legal-bert-base | mask | training | training | training |
| multilingual bert | mask | |||
| custom-legalbert | mask+cls | |||
| legal-bert-base | mask+cls | |||
| multilingual bert | mask+cls |
MIT © Huijie Pan
@ 3.25
HKLII dataset stat(summary of token length of in each paragraph)
| stat value | value |
|---|---|
| count | 2.851737e+06 |
| mean | 83.66615 |
| std | 73.47763 |
| min | 8.0 |
| 25% | 34 |
| 50% | 65 |
| 75% | 112 |
| max | 11819 |
HKLII + caill
| stat value | value |
|---|---|
| count | 2.883591e+06 |
| mean | 87.13742 |
| std | 949.2628 |
| min | 8.0 |
| 25% | 34 |
| 50% | 66 |
| 75% | 114 |
| max | 17415 |
cd huggface
conda env create -f environment.yml
config the model and run
python train.py
CUDA_VISIBLE_DEVICES={your devices} python -m torch.distributed.launch --nproc_per_node={\# your divce} train.py
eg:
CUDA_VISIBLE_DEVICES=0,2,3 python -m torch.distributed.launch --nproc_per_node=3 train.py
| Model name | Method | Perplexity (before) | Perplexity (after) | Vocb size |
|---|---|---|---|---|
| custom-legalbert | mask | 18.370377004 | 4.567 | 32000 |
| legal-bert-base | mask | 11.055 | 3.376 | 30522 |
| multilingual bert | mask | 15.6468 | 2.850 | 105879 |
| multilingual bert (caill added) | mask | 15.7227 | 3.04 | 105879 |
| custom-legalbert | mask+cls | todo | todo | todo |
| legal-bert-base | mask+cls | todo | todo | todo |
| multilingual bert | mask+cls | todo | todo | todo |
because in HKLII datasets it is possible to have chinese and english in same document multilingual
| Model name | Method | Task | Perplexity (after) | Vocb size |
|---|---|---|---|---|
| custom-legalbert | mask | todo | todo | todo |
| legal-bert-base | mask | todo | todo | todo |
| multilingual bert | mask | |||
| custom-legalbert | mask+cls | |||
| legal-bert-base | mask+cls | |||
| multilingual bert | mask+cls |
| Model name | Method | Task | Perplexity (after) | Vocb size |
|---|---|---|---|---|
| custom-legalbert | mask | training | training | training |
| legal-bert-base | mask | training | training | training |
| multilingual bert | mask | |||
| custom-legalbert | mask+cls | |||
| legal-bert-base | mask+cls | |||
| multilingual bert | mask+cls |
MIT © Huijie Pan