]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Some llama-run cleanups (#11973)
authorEric Curtin <redacted>
Sun, 23 Feb 2025 13:14:32 +0000 (13:14 +0000)
committerGitHub <redacted>
Sun, 23 Feb 2025 13:14:32 +0000 (13:14 +0000)
commitf777a73e18c218848bca0748581c043987348a5d
tree2bae6ad0627ae4c44d28b5840069765797474bde
parentaf7747c95ae71a5db4184947f837179e82c70b77
Some llama-run cleanups (#11973)

Use consolidated open function call from File class. Change
read_all to to_string(). Remove exclusive locking, the intent for
that lock is to avoid multiple processes writing to the same file,
it's not an issue for readers, although we may want to consider
adding a shared lock. Remove passing nullptr as reference,
references are never supposed to be null. clang-format the code
for consistent styling.

Signed-off-by: Eric Curtin <redacted>
examples/run/run.cpp