[fix][RL] Fix DeepSeekV3ForCausalLM.post_load_weights for multiple update weight (#6265)
This commit is contained in:
@@ -2217,3 +2217,11 @@ def read_system_prompt_from_file(model_name: str) -> str:
|
||||
except Exception:
|
||||
# If anything fails, return empty string
|
||||
return ""
|
||||
|
||||
|
||||
def bind_or_assign(target, source):
|
||||
if target is not None:
|
||||
target.copy_(source)
|
||||
return target
|
||||
else:
|
||||
return source
|
||||
|
||||
Reference in New Issue
Block a user