Identify the transformer
A model has been loaded as llm
. Examine the transformer architecture by printing one of the following:
llm.model
llm.model.config
llm.model.config.is_decoder
llm.model.config.is_encoder_decoder
What architecture does this model have?
This exercise is part of the course
Introduction to LLMs in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
