-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
277 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ notebooks | |
final_outputs | ||
.cache* | ||
data_subset/** | ||
*.pth | ||
*.pth | ||
**/checkpoint-*/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"model_name_or_path": "facebook/xlm-v-base", | ||
"output_dir": "xlmv-normal", | ||
"train_text_path": "data/sentence/train.parquet", | ||
"valid_text_path": "data/sentence/valid.parquet", | ||
"block_size": 512, | ||
"use_bert": true, | ||
"do_train": true, | ||
"do_eval": true, | ||
"evaluation_strategy": "steps", | ||
"per_device_train_batch_size": 32, | ||
"per_device_eval_batch_size": 32, | ||
"gradient_accumulation_steps": 2, | ||
"eval_accumulation_steps": 8, | ||
"dataloader_num_workers": 1, | ||
"preprocessing_num_workers": 32, | ||
"learning_rate": 1e-4, | ||
"save_strategy": "steps", | ||
"fp16": false, | ||
"max_steps": 400000, | ||
"save_steps": 20000, | ||
"eval_steps": 5000, | ||
"logging_steps": 50, | ||
"report_to": "wandb", | ||
"is_decoder": false, | ||
"remove_unused_columns": false, | ||
"lookahead": null, | ||
"one_sample_per_line": false, | ||
"do_sentence_training": true, | ||
"do_auxiliary_training": true, | ||
"warmup_steps": 5000, | ||
"adapter_warmup_steps": 0, | ||
"adapter_lr_multiplier": 1, | ||
"ngram_order": 1, | ||
"non_punctuation_sample_ratio": 0.1, | ||
"prediction_loss_only": true, | ||
"use_auxiliary": true, | ||
"ddp_timeout": 3600, | ||
"use_subwords": true, | ||
"num_hidden_layers": 3, | ||
"custom_punctuation_file": "punctuation_xlmv_unk.txt", | ||
"log_level": "info" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# This script writes the "Mem" line from the free -h command and the current time in one line every second to a file, and also prints it to the console | ||
|
||
output_file="memory_usage_log.txt" | ||
|
||
# Header line | ||
header=" total used free shared buff/cache available" | ||
|
||
# Write header to both console and file | ||
echo "$header" | tee $output_file | ||
|
||
while true; do | ||
# Get the "Mem" line from free -h and store it | ||
mem_usage=$(free -h | grep "Mem:") | ||
|
||
# Format the output string | ||
output="$(date +"%a %b %d %H:%M:%S") | $mem_usage" | ||
|
||
# Write to both console and file | ||
echo -e "$output" | tee -a $output_file | ||
|
||
# Wait for one second | ||
sleep 1 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
! | ||
" | ||
# | ||
$ | ||
% | ||
& | ||
' | ||
( | ||
) | ||
* | ||
+ | ||
, | ||
- | ||
. | ||
/ | ||
: | ||
; | ||
< | ||
= | ||
> | ||
? | ||
@ | ||
[ | ||
\ | ||
] | ||
^ | ||
_ | ||
` | ||
{ | ||
| | ||
} | ||
~ | ||
¡ | ||
£ | ||
§ | ||
© | ||
« | ||
¬ | ||
® | ||
° | ||
± | ||
· | ||
» | ||
¿ | ||
÷ | ||
՝ | ||
՞ | ||
։ | ||
־ | ||
׳ | ||
، | ||
؛ | ||
؟ | ||
۔ | ||
। | ||
॥ | ||
၊ | ||
။ | ||
၌ | ||
၍ | ||
၎ | ||
၏ | ||
፡ | ||
። | ||
፣ | ||
፤ | ||
፥ | ||
។ | ||
៕ | ||
៖ | ||
– | ||
— | ||
‘ | ||
’ | ||
“ | ||
” | ||
„ | ||
• | ||
′ | ||
‹ | ||
› | ||
€ | ||
↑ | ||
→ | ||
□ | ||
➖ | ||
、 | ||
。 | ||
《 | ||
》 | ||
「 | ||
」 | ||
『 | ||
』 | ||
【 | ||
】 | ||
・ | ||
~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
! | ||
" | ||
# | ||
$ | ||
% | ||
& | ||
' | ||
( | ||
) | ||
* | ||
+ | ||
, | ||
- | ||
. | ||
/ | ||
: | ||
; | ||
< | ||
= | ||
> | ||
? | ||
@ | ||
[ | ||
\ | ||
] | ||
^ | ||
_ | ||
` | ||
{ | ||
| | ||
} | ||
~ | ||
¡ | ||
£ | ||
<unk> | ||
§ | ||
© | ||
« | ||
¬ | ||
® | ||
° | ||
± | ||
· | ||
» | ||
¿ | ||
÷ | ||
՝ | ||
՞ | ||
։ | ||
־ | ||
׳ | ||
، | ||
؛ | ||
؟ | ||
۔ | ||
। | ||
॥ | ||
၊ | ||
။ | ||
၌ | ||
၍ | ||
၎ | ||
၏ | ||
፡ | ||
። | ||
፣ | ||
፤ | ||
፥ | ||
។ | ||
៕ | ||
៖ | ||
– | ||
— | ||
‘ | ||
’ | ||
“ | ||
” | ||
„ | ||
• | ||
′ | ||
‹ | ||
› | ||
€ | ||
↑ | ||
→ | ||
□ | ||
➖ | ||
、 | ||
。 | ||
《 | ||
》 | ||
「 | ||
」 | ||
『 | ||
』 | ||
【 | ||
】 | ||
・ | ||
~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters