Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
truskovskiyk committed Jul 16, 2024
1 parent 5929e58 commit b4b54e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion module-3/classic-example/run_training_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def run_classic_example():
train(config_path=Path("/app/conf/example.json"))
upload_to_registry(model_name="modal-classic-example", model_path=Path("results"))
load_from_registry(
model_name="modal-classic-example", model_path=Path("loaded-model")
model_name="modal-classic-example:latest", model_path=Path("loaded-model")
)
run_inference_on_dataframe(
df_path=Path("/tmp/data/test.csv"),
Expand Down
6 changes: 3 additions & 3 deletions module-3/generative-example/run_training_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def run_generative_example():

load_sql_data(path_to_save=Path("/tmp/data"), subsample=0.01)
train(config_path=Path("/app/conf/example-modal.json"))
# upload_to_registry(model_name="modal_generative_example", model_path=Path("/tmp/phi-3-mini-lora-text2sql"))
# load_from_registry(model_name="modal_generative_example", model_path=Path("/tmp/loaded-model"))
run_evaluate_on_json(json_path=Path("/tmp/data/test.json"), model_load_path=Path("/tmp/phi-3-mini-lora-text2sql"), result_path=Path("/tmp/data/results.json"))
upload_to_registry(model_name="modal_generative_example", model_path=Path("/tmp/phi-3-mini-lora-text2sql"))
load_from_registry(model_name="modal_generative_example:latest", model_path=Path("/tmp/loaded-model"))
run_evaluate_on_json(json_path=Path("/tmp/data/test.json"), model_load_path=Path("/tmp/loaded-model"), result_path=Path("/tmp/data/results.json"))


def main():
Expand Down

0 comments on commit b4b54e8

Please sign in to comment.