-
Given a model, I would like to know the number of layers in it, but I am bit lost between all the items in the metadata. I used https://github.com/abetlen/llama-cpp-python to easily get the metadata of a given model as followed
However, I am not sure to know which value is the one I should read as there is lot. In the logs I can see the following
but in the metadata the values available are
but not sure which value I should use |
Beta Was this translation helpful? Give feedback.
Answered by
ngxson
Jun 24, 2024
Replies: 1 comment 1 reply
-
The number of layer is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
axel7083
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The number of layer is
llama.block_count
. One layer can have multiple heads (hence the name "multi-head attention")