Update batch size and configs
Browse files- .gitignore +1 -0
- 11 Indobert-base-p1_without_law.py +1 -1
- 12 Indobert-base-p1_with_law.py +1 -1
- 21 Indobert-IndoLegalBERT_without_law.py +1 -1
- 22 Indobert-IndoLegalBERT_with_law.py +1 -1
- 31 Indobert-base-p1_without_law_with_svr.py +1 -1
- 32 Indobert-base-p1_with_law_with_svr.py +1 -1
- 41 Indobert-base-p1_without_law_mlp.py +1 -1
- 42 Indobert-base-p1_with_law_mlp.py +1 -1
- 51 Indobert-base-p1_without_law_with_xgboost.py +1 -1
- 52 Indobert-base-p1_with_law_with_xgboost.py +1 -1
- README.md +6 -0
.gitignore
CHANGED
|
@@ -2,3 +2,4 @@
|
|
| 2 |
__pycache__
|
| 3 |
colloquial_data/
|
| 4 |
wandb/
|
|
|
|
|
|
| 2 |
__pycache__
|
| 3 |
colloquial_data/
|
| 4 |
wandb/
|
| 5 |
+
README.md
|
11 Indobert-base-p1_without_law.py
CHANGED
|
@@ -77,7 +77,7 @@ import wandb
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./11 Indobert-base-p1_without_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
-
BATCH_SIZE =
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
|
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./11 Indobert-base-p1_without_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
+
BATCH_SIZE = 512
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
12 Indobert-base-p1_with_law.py
CHANGED
|
@@ -77,7 +77,7 @@ import wandb
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./12 Indobert-base-p1_with_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
-
BATCH_SIZE =
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
|
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./12 Indobert-base-p1_with_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
+
BATCH_SIZE = 512
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
21 Indobert-IndoLegalBERT_without_law.py
CHANGED
|
@@ -77,7 +77,7 @@ import wandb
|
|
| 77 |
MODEL_NAME = "archi-ai/Indo-LegalBERT"
|
| 78 |
OUTPUT_DIR = "./21 Indobert-IndoLegalBERT_without_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
-
BATCH_SIZE =
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
|
|
|
| 77 |
MODEL_NAME = "archi-ai/Indo-LegalBERT"
|
| 78 |
OUTPUT_DIR = "./21 Indobert-IndoLegalBERT_without_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
+
BATCH_SIZE = 512
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
22 Indobert-IndoLegalBERT_with_law.py
CHANGED
|
@@ -77,7 +77,7 @@ import wandb
|
|
| 77 |
MODEL_NAME = "archi-ai/Indo-LegalBERT"
|
| 78 |
OUTPUT_DIR = "./22 Indobert-IndoLegalBERT_with_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
-
BATCH_SIZE =
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
|
|
|
| 77 |
MODEL_NAME = "archi-ai/Indo-LegalBERT"
|
| 78 |
OUTPUT_DIR = "./22 Indobert-IndoLegalBERT_with_law"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
+
BATCH_SIZE = 512
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
31 Indobert-base-p1_without_law_with_svr.py
CHANGED
|
@@ -77,7 +77,7 @@ import wandb
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./31 Indobert-base-p1_without_law_with_svr"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
-
BATCH_SIZE =
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
|
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./31 Indobert-base-p1_without_law_with_svr"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
+
BATCH_SIZE = 512
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
32 Indobert-base-p1_with_law_with_svr.py
CHANGED
|
@@ -77,7 +77,7 @@ import wandb
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./32 Indobert-base-p1_with_law_with_svr"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
-
BATCH_SIZE =
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
|
|
|
| 77 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 78 |
OUTPUT_DIR = "./32 Indobert-base-p1_with_law_with_svr"
|
| 79 |
MAX_LENGTH = 512
|
| 80 |
+
BATCH_SIZE = 512
|
| 81 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 82 |
NUM_EPOCHS = 30
|
| 83 |
SEED = 42
|
41 Indobert-base-p1_without_law_mlp.py
CHANGED
|
@@ -79,7 +79,7 @@ import wandb
|
|
| 79 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 80 |
OUTPUT_DIR = "./41 Indobert-base-p1_without_law_mlp"
|
| 81 |
MAX_LENGTH = 512
|
| 82 |
-
BATCH_SIZE =
|
| 83 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 84 |
NUM_EPOCHS = 30
|
| 85 |
SEED = 42
|
|
|
|
| 79 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 80 |
OUTPUT_DIR = "./41 Indobert-base-p1_without_law_mlp"
|
| 81 |
MAX_LENGTH = 512
|
| 82 |
+
BATCH_SIZE = 512
|
| 83 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 84 |
NUM_EPOCHS = 30
|
| 85 |
SEED = 42
|
42 Indobert-base-p1_with_law_mlp.py
CHANGED
|
@@ -79,7 +79,7 @@ import wandb
|
|
| 79 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 80 |
OUTPUT_DIR = "./42 Indobert-base-p1_with_law_mlp"
|
| 81 |
MAX_LENGTH = 512
|
| 82 |
-
BATCH_SIZE =
|
| 83 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 84 |
NUM_EPOCHS = 30
|
| 85 |
SEED = 42
|
|
|
|
| 79 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 80 |
OUTPUT_DIR = "./42 Indobert-base-p1_with_law_mlp"
|
| 81 |
MAX_LENGTH = 512
|
| 82 |
+
BATCH_SIZE = 512
|
| 83 |
GRADIENT_ACCUMULATION_STEPS = 3
|
| 84 |
NUM_EPOCHS = 30
|
| 85 |
SEED = 42
|
51 Indobert-base-p1_without_law_with_xgboost.py
CHANGED
|
@@ -34,7 +34,7 @@ import xgboost as xgb
|
|
| 34 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 35 |
OUTPUT_DIR = "./51 Indobert-base-p1_without_law_with_xgboost"
|
| 36 |
MAX_LENGTH = 512
|
| 37 |
-
BATCH_SIZE =
|
| 38 |
SEED = 42
|
| 39 |
|
| 40 |
def set_seed(seed: int):
|
|
|
|
| 34 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 35 |
OUTPUT_DIR = "./51 Indobert-base-p1_without_law_with_xgboost"
|
| 36 |
MAX_LENGTH = 512
|
| 37 |
+
BATCH_SIZE = 512
|
| 38 |
SEED = 42
|
| 39 |
|
| 40 |
def set_seed(seed: int):
|
52 Indobert-base-p1_with_law_with_xgboost.py
CHANGED
|
@@ -34,7 +34,7 @@ import xgboost as xgb
|
|
| 34 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 35 |
OUTPUT_DIR = "./52 Indobert-base-p1_with_law_with_xgboost"
|
| 36 |
MAX_LENGTH = 512
|
| 37 |
-
BATCH_SIZE =
|
| 38 |
SEED = 42
|
| 39 |
|
| 40 |
def set_seed(seed: int):
|
|
|
|
| 34 |
MODEL_NAME = "indobenchmark/indobert-base-p1"
|
| 35 |
OUTPUT_DIR = "./52 Indobert-base-p1_with_law_with_xgboost"
|
| 36 |
MAX_LENGTH = 512
|
| 37 |
+
BATCH_SIZE = 512
|
| 38 |
SEED = 42
|
| 39 |
|
| 40 |
def set_seed(seed: int):
|
README.md
CHANGED
|
@@ -5,6 +5,9 @@ Panduan singkat ini menunjukkan cara menjalankan proses training di server lewat
|
|
| 5 |
install git xet
|
| 6 |
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/huggingface/xet-core/refs/heads/main/git_xet/install.sh | sh
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
## Persiapan (prasyarat)
|
| 9 |
|
| 10 |
- Sistem target: Linux server (atau WSL di Windows).
|
|
@@ -22,6 +25,9 @@ tmux new -s mysession
|
|
| 22 |
# atau beri nama: tmux new -s nama_sesi
|
| 23 |
```
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
---
|
| 26 |
|
| 27 |
## Clone repository
|
|
|
|
| 5 |
install git xet
|
| 6 |
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/huggingface/xet-core/refs/heads/main/git_xet/install.sh | sh
|
| 7 |
|
| 8 |
+
ssh
|
| 9 |
+
ssh -i "c:\Users\patri\Documents\Skripsi\Regression\id_rsa_primeintellect" root@31.22.104.199 -p 22
|
| 10 |
+
|
| 11 |
## Persiapan (prasyarat)
|
| 12 |
|
| 13 |
- Sistem target: Linux server (atau WSL di Windows).
|
|
|
|
| 25 |
# atau beri nama: tmux new -s nama_sesi
|
| 26 |
```
|
| 27 |
|
| 28 |
+
```bash
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
---
|
| 32 |
|
| 33 |
## Clone repository
|