MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / __init__

Method __init__

train/fsdp_utils.py:69–81  ·  view source on GitHub ↗
(
        self,
        sharding_strategy, 
        backward_prefetch, 
        cpu_offload, 
        num_replicate,
        num_shard=8,
    )

Source from the content-addressed store, hash-verified

67
68class FSDPConfig:
69 def __init__(
70 self,
71 sharding_strategy,
72 backward_prefetch,
73 cpu_offload,
74 num_replicate,
75 num_shard=8,
76 ):
77 self.sharding_strategy = sharding_strategy
78 self.backward_prefetch = backward_prefetch
79 self.cpu_offload = cpu_offload
80 self.num_replicate = num_replicate
81 self.num_shard = num_shard
82
83
84def fsdp_wrapper(original_model, fsdp_config, ignored_modules=[]):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected