@@ -575,30 +575,30 @@ def impl_get_task_ip(cluster_name, task_arn, region):
575
575
return nics [0 ]["Association" ]["PublicIp" ]
576
576
577
577
578
- def impl_upload_untrained_model (model_path , bucket_name , region ):
578
+ def impl_upload_model (model_path , bucket_name , region ):
579
579
"""
580
- Uploads an untrained model to S3.
580
+ Uploads a model to S3.
581
581
582
582
:param model_path: The file path to the model to upload, ending with the name of the model.
583
583
:param bucket_name: The S3 bucket name.
584
584
:param region: The region, or `None` to pull the region from the environment.
585
585
"""
586
586
client = make_client ("s3" , region )
587
- key = "axon-untrained- models/" + os .path .basename (model_path )
587
+ key = "axon-models/" + os .path .basename (model_path )
588
588
client .upload_file (model_path , bucket_name , key )
589
589
print ("Uploaded to: {}\n " .format (key ))
590
590
591
591
592
- def impl_download_untrained_model (model_path , bucket_name , region ):
592
+ def impl_download_model (model_path , bucket_name , region ):
593
593
"""
594
- Downloads an untrained model from S3.
594
+ Downloads a model from S3.
595
595
596
596
:param model_path: The file path to download to, ending with the name of the model.
597
597
:param bucket_name: The S3 bucket name.
598
598
:param region: The region, or `None` to pull the region from the environment.
599
599
"""
600
600
client = make_client ("s3" , region )
601
- key = "axon-untrained- models/" + os .path .basename (model_path )
601
+ key = "axon-models/" + os .path .basename (model_path )
602
602
client .download_file (bucket_name , key , model_path )
603
603
print ("Downloaded from: {}\n " .format (key ))
604
604
@@ -820,30 +820,30 @@ def get_container_ip(task_arn, region):
820
820
print (impl_get_task_ip ("axon-autogenerated-cluster" , task_arn , region ))
821
821
822
822
823
- @cli .command (name = "upload-untrained- model" )
823
+ @cli .command (name = "upload-model" )
824
824
@click .argument ("model-path" )
825
825
@click .option ("--region" , help = "The region to connect to." ,
826
826
type = click .Choice (region_choices ))
827
- def upload_untrained_model (model_path , region ):
827
+ def upload_model (model_path , region ):
828
828
"""
829
- Uploads an untrained model from a local file.
829
+ Uploads a model from a local file.
830
830
831
831
MODEL_PATH The path to the model to upload, ending with the name of the model.
832
832
"""
833
- impl_upload_untrained_model (model_path , ensure_s3_bucket (region ), region )
833
+ impl_upload_model (model_path , ensure_s3_bucket (region ), region )
834
834
835
835
836
- @cli .command (name = "download-untrained- model" )
836
+ @cli .command (name = "download-model" )
837
837
@click .argument ("model-path" )
838
838
@click .option ("--region" , help = "The region to connect to." ,
839
839
type = click .Choice (region_choices ))
840
- def download_untrained_model (model_path , region ):
840
+ def download_model (model_path , region ):
841
841
"""
842
- Downloads an untrained model to a local file.
842
+ Downloads a model to a local file.
843
843
844
844
MODEL_PATH The path to download the model to, ending with the name of the model.
845
845
"""
846
- impl_download_untrained_model (model_path , ensure_s3_bucket (region ), region )
846
+ impl_download_model (model_path , ensure_s3_bucket (region ), region )
847
847
848
848
849
849
@cli .command (name = "download-training-script" )
0 commit comments