docstr: Check that the initialisation of the ViT with FSDP leads
  to the same results than the initialisation with DDP
docstr_tok: ["Check","that","the","initialisation","of","the","ViT","with","FSDP","leads","to","the","same","results","than","the","initialisation","with","DDP"]
code: def test_init_vit_init(self) -> None:
      """
      Check that the initialisation of the ViT with FSDP leads
      to the same results than the initialisation with DDP
      """
      with in_temporary_directory():
          with with_temp_files(count=1) as sync_file:
              world_size = 2
              mp.spawn(
                  self._worker_test_init_vit_init,
                  (sync_file, world_size),
                  nprocs=world_size,
              )
  
file_path: vissl/tests/test_dino_xcit_fsdp.py
imports: import unittest
  import torch
  import torch.multiprocessing
  from torch.nn.parallel import DistributedDataParallel
  from vissl.models import build_model
  from vissl.utils.fsdp_utils import fsdp_wrapper
  from vissl.utils.hydra_config import compose_hydra_configuration, convert_to_attrdict
  from vissl.utils.test_utils import gpu_test, in_temporary_directory, init_distributed_on_file, run_integration_test, with_temp_files
label_desc: Use image node_id 3 for calling the TestDINO_XCIT obj's underlying member method code with example usage: obj.test_init_vit_init() without return types