GPT2/check.sh
2024-08-12 21:32:45 +08:00

7 lines
284 B
Bash

echo "Checking your model..."
checksum=$(sha1sum gpt2_124M.bin)
if [ "$checksum" != "4c7ef26bf866185203350d310e12bb1e6a5b48cb gpt2_124M.bin" ]; then
echo "Your model seems broken or missing. Please redownload it or rename it to 'gpt2_124M.bin'"
return 1
fi
echo "Model is OK"