Transformers4Rec
Transformers4Rec copied to clipboard
[QST] Accessing the model architectures separately.
Similar HuggingFace Transformers is there a way to import model architectures and explore them.
from transformers import BertModel, BertConfig
# Initializing a BERT bert-base-uncased style configuration
configuration = BertConfig()
# Initializing a model from the bert-base-uncased style configuration
model = BertModel(configuration)
# Accessing the model configuration
configuration = model.config
@shamanez thanks for the question. If you want to print out the model architecture you can simply run model in a jupyter notebook cell.
closing due to no recent activities.