GitHub - AlpinDale/gpt2.cmake: Implementation of the GPT-2 model in pure CMake · GitHub
/" data-turbo-transient="true" />
Skip to content
Search/
Sign in<br>Sign upAppearance settings
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
AlpinDale
gpt2.cmake
Public
Notifications<br>You must be signed in to change notification settings
Fork
Star
main
BranchesTags
Go to file
CodeOpen more actions menu
Latest commit
History<br>1 Commit<br>1 Commit
Folders and files<br>NameNameLast commit message<br>Last commit date<br>cmake
cmake
data
data
tools
tools
.gitignore
.gitignore
LICENSE
LICENSE
README.md
README.md
gpt2.cmake
gpt2.cmake
gpt2_full.cmake
gpt2_full.cmake
probe.cmake
probe.cmake
View all files
Repository files navigation
gpt2.cmake
GPT-2 in pure CMake, executed with Q16.16 integer arithmetic.
Full model
mkdir -p checkpoint<br>curl -L -o checkpoint/model.safetensors https://huggingface.co/openai-community/gpt2/resolve/main/model.safetensors<br>curl -L -o checkpoint/vocab.json https://huggingface.co/openai-community/gpt2/resolve/main/vocab.json<br>curl -L -o checkpoint/merges.txt https://huggingface.co/openai-community/gpt2/resolve/main/merges.txt<br>python3 tools/gen_full.py<br>cmake -P gpt2_full.cmake -DPROMPT="Hello" -DN=2
Toy model
python3 tools/gen_tables.py<br>python3 tools/gen_model.py<br>cmake -P gpt2.cmake
License
BSD 3-Clause. See LICENSE.
About<br>Implementation of the GPT-2 model in pure CMake<br>Resources<br>Readme<br>BSD-3-Clause license<br>Activity<br>Stars<br>4 stars<br>Watchers<br>0 watching<br>Forks<br>0 forks<br>Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.