GPT2/check.sh

7 lines
284 B
Bash
Raw Normal View History

2024-08-12 13:32:45 +00:00
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"