You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a hint to allow model input data to be discarded after an input is accessed, for memory management in cases where models are dealing with very large inputs.
Potential Solutions:
This should be a hint rather than a command. One solution is to add a "retain" parameter to get_*_table methods, which can be True, False or None. None means take the default value, which may differ depending on various factors (requested format, data size etc).
To implement this hint, the runtime must have the ability to re-load data on demand if it is no longer held in the context. This facility will also allow for lazy-loading of datasets. The runtime can decide (a) whether to pre-load each dataset and (b) whether to discard them after they are accessed. If the model requests a dataset that is not available (either because it was discarded or never loaded), the runtime will re-load the dataset from source.
Following this pattern the hint will have no functional impact on the model.
The text was updated successfully, but these errors were encountered:
Feature Request
Description of Problem:
Provide a hint to allow model input data to be discarded after an input is accessed, for memory management in cases where models are dealing with very large inputs.
Potential Solutions:
This should be a hint rather than a command. One solution is to add a "retain" parameter to get_*_table methods, which can be True, False or None. None means take the default value, which may differ depending on various factors (requested format, data size etc).
To implement this hint, the runtime must have the ability to re-load data on demand if it is no longer held in the context. This facility will also allow for lazy-loading of datasets. The runtime can decide (a) whether to pre-load each dataset and (b) whether to discard them after they are accessed. If the model requests a dataset that is not available (either because it was discarded or never loaded), the runtime will re-load the dataset from source.
Following this pattern the hint will have no functional impact on the model.
The text was updated successfully, but these errors were encountered: