Skip to content

Commit

Permalink
Fix tokenizer model and remove debug logging (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Oct 7, 2023
1 parent bb86f35 commit 7ff3768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions base/scripts/run-notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
parser.add_argument('-c', '--cwd', help="Change the working directory")
args = parser.parse_args()

logging.basicConfig(level=logging.DEBUG, format="%(message)s")
logger.setLevel(logging.DEBUG)
logging.basicConfig(level=logging.INFO, format="%(message)s")
logger.setLevel(logging.INFO)

class HTMLExecutionManager(NotebookExecutionManager):
def __init__(self, *args, **kwargs):
Expand Down
4 changes: 2 additions & 2 deletions model-trainer-huggingface/src/train.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@
" model.push_to_hub(repo_id)\n",
" tokenizer.push_to_hub(repo_id)\n",
" hf_api = HfApi()\n",
" # Upload tokenizer.model if it was not included in trained model but was in base model\n",
" if tokenizer_model_path_base.exists() and not tokenizer_model_path_trained.exists():\n",
" # Upload tokenizer.model if it was in base model\n",
" if tokenizer_model_path_base.exists():\n",
" hf_api.upload_file(\n",
" path_or_fileobj=tokenizer_model_path_base,\n",
" path_in_repo=tokenizer_model_path_base.name,\n",
Expand Down

0 comments on commit 7ff3768

Please sign in to comment.