]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
scripts : platform independent script to verify sha256 checksums (#1203)
authorKASR <redacted>
Wed, 3 May 2023 15:31:28 +0000 (17:31 +0200)
committerGitHub <redacted>
Wed, 3 May 2023 15:31:28 +0000 (18:31 +0300)
commitb0c71c7b6dc0c0adb507d78f401e95e7ab0f5a38
treeeb622de196bed36a2fd48f888cdb64199b0e7df9
parenta8a2efdc8161d4f69a0dd863e741c11fbd5df85c
scripts : platform independent script to verify sha256 checksums (#1203)

* python script to verify the checksum of the llama models

Added Python script for verifying SHA256 checksums of files in a directory, which can run on multiple platforms. Improved the formatting of the output results for better readability.

* Update README.md

update to the readme for improved readability and to explain the usage of the python checksum verification script

* update the verification script

I've extended the script based on suggestions by @prusnak

The script now checks the available RAM, is there is enough to check the file at once it will do so. If not the file is read in chunks.

* minor improvment

small change so that the available ram is checked and not the total ram

* remove the part of the code that reads the file at once if enough ram is available

based on suggestions from @prusnak i removed the part of the code that checks whether the user had enough ram to read the entire model at once. the file is now always read in chunks.

* Update verify-checksum-models.py

quick fix to pass the git check
README.md
scripts/verify-checksum-models.py [new file with mode: 0644]