SuperCowPowers / sageworks

SageWorks: An easy to use Python API for creating and deploying AWS SageMaker Models
https://www.supercowpowers.com
MIT License
37 stars 1 forks source link

Model Page Slow Response #438

Closed brifordwylie closed 3 months ago

brifordwylie commented 3 months ago

The model page seems to be a bit slower then before, might be because the number of callbacks has increased.

# Callback for the model table
callbacks.table_row_select(app, "models_table")
callbacks.update_inference_dropdown(app)
callbacks.update_model_detail_component(app)
callbacks.update_model_metrics_component(app)
callbacks.update_model_plot_component(app)

Looking through the code the Model(model_uuid) object is constructed 5 times, so this is probably the issue. Not sure we could get this down to 1, but lets see of these callbacks can be combined or we can minimize number of object constructions

brifordwylie commented 3 months ago

okay.. this has been a least partially fixed, with the new composite model_details component