Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Sep 27, 2024
1 parent 00fffed commit 523f999
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/coral/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from .data import load_data_for_finetuning
from .data_models import ModelSetup
from .model_setup import load_model_setup
from .ngram import train_and_store_ngram_model
from .utils import push_model_to_hub

logger = logging.getLogger(__package__)
Expand Down Expand Up @@ -71,8 +72,8 @@ def finetune(config: DictConfig) -> None:

# model.save_pretrained(save_directory=config.model_dir)

# if hasattr(config.model, "use_decoder") and config.model.use_decoder:
# train_and_store_ngram_model(config=config)
if hasattr(config.model, "use_decoder") and config.model.use_decoder:
train_and_store_ngram_model(config=config)

if config.push_to_hub:
push_model_to_hub(
Expand Down

0 comments on commit 523f999

Please sign in to comment.