Skip to content

Commit

Permalink
[#33]FIX: global.yaml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SuwonPabby committed Jul 29, 2023
1 parent 24e0373 commit 2a90a9c
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 48 deletions.
1 change: 1 addition & 0 deletions experiment/ch/global.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
next_sweep_count: 0
next_version_count: 17
next_hugging_face_count: 0
12 changes: 6 additions & 6 deletions experiment/ej/ckpt2huggingface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"import ruamel.yaml\n",
"import wandb\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning)\n"
"warnings.filterwarnings(\"ignore\", category=UserWarning)"
]
},
{
Expand Down Expand Up @@ -97,7 +97,7 @@
" for key in self.keys:\n",
" item.append(self.data[key][index])\n",
"\n",
" return item"
" return item\n"
]
},
{
Expand Down Expand Up @@ -292,7 +292,7 @@
" return DataLoader(self.test_dataset, batch_size=self.batch_size, collate_fn=self._collate_fn_train)\n",
"\n",
" def predict_dataloader(self) -> EVAL_DATALOADERS:\n",
" return DataLoader(self.predict_dataset, batch_size=self.predict_batch_size, collate_fn=self._collate_fn_predict)\n"
" return DataLoader(self.predict_dataset, batch_size=self.predict_batch_size, collate_fn=self._collate_fn_predict)"
]
},
{
Expand Down Expand Up @@ -430,12 +430,12 @@
" if self.lr_scheduler is not None:\n",
" return [optimizer], [self.lr_scheduler]\n",
" else:\n",
" return optimizer\n"
" return optimizer"
]
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -484,7 +484,7 @@
" allow_unicode=True)\n",
"\n",
"\n",
"hf_trainer.save_model(save_dir)"
"hf_trainer.save_model(save_dir)\n"
]
}
],
Expand Down
63 changes: 21 additions & 42 deletions experiment/ej/predict.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions experiment/ih/global.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
next_sweep_count: 0
next_version_count: 17
next_hugging_face_count: 0
1 change: 1 addition & 0 deletions experiment/jh/global.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
next_sweep_count: 0
next_version_count: 17
next_hugging_face_count: 0
1 change: 1 addition & 0 deletions experiment/sl/global.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
next_sweep_count: 0
next_version_count: 17
next_hugging_face_count: 0
1 change: 1 addition & 0 deletions experiment/tg/global.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
next_sweep_count: 0
next_version_count: 17
next_hugging_face_count: 0

0 comments on commit 2a90a9c

Please sign in to comment.