Skip to content

Commit

Permalink
merge with main debug succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhansu committed Aug 8, 2023
1 parent ad82030 commit e926795
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 108 deletions.
2 changes: 1 addition & 1 deletion inst_follow/eval/bbh/run_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def main(args):
load_from = args.load_from

print("Loading model and tokenizer... from {}".format(load_from))

topic_router = None
if load_from == "llama":
################# load model from llama #############################
model, tokenizer = load_from_llama()
Expand Down
8 changes: 5 additions & 3 deletions mttl/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Config:
def __init__(self, filenames=None, kwargs=None, raise_error=True):
# Stores personalization of the config file in a dict (json serializable)
self._updated_kwargs = {}
self._updated_kwargs = set()
self.filenames = filenames
self._set_defaults()

Expand Down Expand Up @@ -57,7 +57,9 @@ def update_kwargs(self, kwargs, eval=True, raise_error=True):
v = Template(v).substitute(os.environ)

setattr(self, k, v)
self._updated_kwargs[k] = v
print(type(self._updated_kwargs))
# self._updated_kwargs[k] = v
self._updated_kwargs.add(k)

def __getitem__(self, item):
return getattr(self, item, None)
Expand Down Expand Up @@ -105,7 +107,7 @@ def parse(cls, extra_kwargs=None, raise_error=True):

config = cls(args.config_files, args.kwargs, raise_error=raise_error)

print(config.to_json())
print("config", config.to_json())
return config

def _set_defaults(self):
Expand Down
1 change: 0 additions & 1 deletion projects/mhr/scripts/finetune/run_alpaca_eval.sh

This file was deleted.

12 changes: 0 additions & 12 deletions projects/mhr/scripts/finetune/run_bbh_eval.sh

This file was deleted.

9 changes: 0 additions & 9 deletions projects/mhr/scripts/finetune/run_codex_eval.sh

This file was deleted.

11 changes: 0 additions & 11 deletions projects/mhr/scripts/finetune/run_gsm_eval.sh

This file was deleted.

59 changes: 0 additions & 59 deletions projects/mhr/scripts/finetune/run_mmlu_eval.sh

This file was deleted.

12 changes: 0 additions & 12 deletions projects/mhr/scripts/finetune/run_tydiqa_eval.sh

This file was deleted.

0 comments on commit e926795

Please sign in to comment.