]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
main : check if input files exist before proceeding (whisper/1872)
authorDavidson Francis <redacted>
Mon, 19 Feb 2024 08:51:26 +0000 (05:51 -0300)
committerGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 13:55:13 +0000 (15:55 +0200)
commit5f3c76ce28f1d6680409afd4dd3e9198483ccdc4
tree340cf63e52a35cfe1f51927ffd39fa847e1dd90d
parent390cdf8fdf232a59516cf99b86018ccf686b49d9
main : check if input files exist before proceeding (whisper/1872)

Until the most recent commit (3d42463), the main.cpp sample file does
not check whether the input files exist or not. Consequently, the
model is loaded first before reporting whether there was a failure or
not when processing a file. In environments with HDD, this can take
about 50 seconds or more, depending on the loaded model.

This commit addresses this issue by checking in advance whether the
input files exist or not.
examples/whisper/main.cpp