def get_external_data_file_names(model_path: Union[str, Path]) -> list[str]:
    """Get the external data file names from the model.

    :param model_path: Path to the model file.
    :return: List of external data file names.
    """
    file_names = set()
    for tensor in external_data_helper._get_all_tensors(  # pylint: disable=W0212
        onnx.load(model_path, load_external_data=False)
    ):
        if external_data_helper.uses_external_data(tensor):
            file_names.add(external_data_helper.ExternalDataInfo(tensor).location)
    return list(file_names)
Get the external data file names from the model.

    :param model_path: Path to the model file.
    :return: List of external data file names.
    
olive/passes/onnx/common.py