def METHOD_NAME(cls, args, task):
    """Build a new model instance."""
    # make sure all arguments are present
    base_architecture(args)
    if not safe_hasattr(args, "max_positions"):
        args.max_positions = args.tokens_per_sample
    encoder = LinformerEncoder(args, task.source_dictionary)
    return cls(args, encoder)