Buckets:
MergeModelCallback[[trl.experimental.merge_model_callback.MergeModelCallback]]
- merge_config (
experimental.merge_model_callback.MergeConfig, optional) -- Configuration used for the merging process. If not provided, the defaultMergeConfigis used. - merge_at_every_checkpoint (
bool, optional, defaults toFalse) -- Whether to merge the model at every checkpoint. - push_to_hub (
bool, optional, defaults toFalse) -- Whether to push the merged model to the Hub after merging.
A TrainerCallback that merges the policy model (the model being trained) with another model based on a merge configuration.
Example:
>>> from trl.experimental.merge_model_callback import MergeConfig, MergeModelCallback
>>> config = MergeConfig()
>>> merge_callback = MergeModelCallback(config)
>>> trainer = DPOTrainer(..., callbacks=[merge_callback])
Xet Storage Details
- Size:
- 991 Bytes
- Xet hash:
- ba2b22af7535ffa4c92cee32a0edfdeca00f351b5819666afb35b42437418f89
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.