[Feature] SPMD for SGLang + Verl (#3852)
This commit is contained in:
@@ -336,12 +336,6 @@ class GemmaForCausalLM(nn.Module):
|
||||
weight_loader = getattr(param, "weight_loader", default_weight_loader)
|
||||
weight_loader(param, loaded_weight)
|
||||
loaded_params.add(name)
|
||||
unloaded_params = params_dict.keys() - loaded_params
|
||||
if unloaded_params:
|
||||
raise RuntimeError(
|
||||
"Some weights are not initialized from checkpoints: "
|
||||
f"{unloaded_params}"
|
||||
)
|
||||
|
||||
|
||||
EntryClass = GemmaForCausalLM
|
||||
|
||||
@@ -437,12 +437,5 @@ class Gemma2ForCausalLM(nn.Module):
|
||||
weight_loader(param, loaded_weight)
|
||||
loaded_params.add(name)
|
||||
|
||||
unloaded_params = params_dict.keys() - loaded_params
|
||||
if unloaded_params:
|
||||
raise RuntimeError(
|
||||
"Some weights are not initialized from checkpoints: "
|
||||
f"{unloaded_params}"
|
||||
)
|
||||
|
||||
|
||||
EntryClass = Gemma2ForCausalLM
|
||||
|
||||
Reference in New Issue
Block a user