-
Notifications
You must be signed in to change notification settings - Fork 15
Composable SFT #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
haileyschoelkopf
wants to merge
6
commits into
master
Choose a base branch
from
composable-sft
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Composable SFT #28
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b4f3c3d
composable-sft first pass
d8638c9
add K calculation
ed085e2
commit most recent sft changes
4a94bce
merge with new code + change args
ee1a9d1
Delete unnecessary extra files
haileyschoelkopf 0288567
Delete sft_args.py
haileyschoelkopf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,57 @@ | ||
# axis | ||
LANG="th" | ||
MAX_TRAIN_SAMPLES=100000 | ||
BIGS_MODEL="bigscience/bloom-350m" | ||
ADPT_REDUCTION_FACTOR=16 | ||
ADPT_STRATEGY="emb-and-sft" | ||
EMB_STRATEGY="replace" | ||
|
||
tokenizer_dir=./tokenizers/tok_bloom-350m_th_oscar_10000samples_5000vocab_extend/ | ||
cache_dir="./cache" | ||
output_dir="./sft_testing_save" | ||
logging_dir="./sft_testing_save" | ||
mkdir -p $output_dir | ||
mkdir -p $logging_dir | ||
|
||
CUDA_VISIBLE_DEVICES=5 python madx_run_clm.py \ | ||
--seed 0 \ | ||
--fp16 \ | ||
--model_name_or_path $BIGS_MODEL \ | ||
--tokenizer_name $tokenizer_dir \ | ||
--dataset_name oscar \ | ||
--dataset_config_name "unshuffled_deduplicated_$LANG" \ | ||
--cache_dir $cache_dir \ | ||
--logging_dir $logging_dir \ | ||
--report_to "tensorboard" \ | ||
--learning_rate 0.001 \ | ||
--do_train \ | ||
--do_eval \ | ||
--train_sft \ | ||
--load_best_model_at_end \ | ||
--output_dir $output_dir \ | ||
--preprocessing_num_workers 8 \ | ||
--overwrite_output_dir \ | ||
--per_device_train_batch_size 1 \ | ||
--gradient_accumulation_steps 8 \ | ||
--per_device_eval_batch_size 1 \ | ||
--eval_accumulation_steps 8 \ | ||
--eval_steps 500 \ | ||
--evaluation_strategy "steps" \ | ||
--max_eval_samples 5000 \ | ||
--logging_steps 100 \ | ||
--save_steps 5000 \ | ||
--save_strategy "steps" \ | ||
--max_train_samples $MAX_TRAIN_SAMPLES \ | ||
--max_steps 50000 \ | ||
--lang_adapt_strategies "$ADPT_STRATEGY" \ | ||
--embedding_strategies "$EMB_STRATEGY" \ | ||
--adapter_reduction_factor $ADPT_REDUCTION_FACTOR \ | ||
--language $LANG \ | ||
--full_ft_max_steps_per_iteration 2500 \ | ||
--sparse_ft_max_steps_per_iteration 10000 \ | ||
--n_ft_iterations 1 | ||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.