Skip to content
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

handle tokenization more correctly, clean up CI #62

Merged
merged 9 commits into from
May 30, 2024
Prev Previous commit
Next Next commit
adjust epoch counts
  • Loading branch information
charlesfrye committed May 30, 2024
commit 1f3e48216df0c30440ea9e8bcf0330d9857710ff
9 changes: 8 additions & 1 deletion ci/prep_for_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ def main(config: str, data: str):
cfg["lora_dropout"] = 0
cfg["weight_decay"] = 0

num_epochs = 50
val_set_size = 0.5
num_epochs = 50
if (
"Meta-Llama-3-8B" in cfg["base_model"]
or "codellama/CodeLlama-7b-Instruct-hf" in cfg["base_model"]
):
num_epochs = num_epochs // 2
elif "pythia" in cfg["base_model"]:
num_epochs = num_epochs * 2

cfg["val_set_size"] = val_set_size
cfg["num_epochs"] = num_epochs
Expand Down