Skip to content

Commit

Permalink
fix tokenizer.model upload
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Oct 6, 2023
1 parent b322bd7 commit a388a15
Showing 1 changed file with 2 additions and 2 deletions.
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 a388a15

Please sign in to comment.