def vit_large_patch16_224(pretrained=False, **kwargs):
    """
    ViT-Large (ViT-L/16) from original paper
    (https://arxiv.org/abs/2010.11929).
    ImageNet-1k weights fine-tuned from in21k @ 224x224,
    source https://github.com/google-research/vision_transformer.
    """
    from avalanche.models.timm_vit import _create_vision_transformer

    model_kwargs = dict(patch_size=16, embed_dim=1024, depth=24, num_heads=16, **kwargs)
    model = _create_vision_transformer(
        "vit_large_patch16_224", pretrained=pretrained, **model_kwargs
    )
    return model

    ViT-Large (ViT-L/16) from original paper
    (https://arxiv.org/abs/2010.11929).
    ImageNet-1k weights fine-tuned from in21k @ 224x224,
    source https://github.com/google-research/vision_transformer.
    
avalanche/models/vit.py