instruct model setup

This commit is contained in:
Your Name
2025-08-28 17:57:59 +00:00
parent 77c563f358
commit d49b4ff2d5
55 changed files with 27760 additions and 326 deletions
@@ -1,7 +1,7 @@
"""
2025.8.4
2025.8.5
4.55.1
2025.8.9
2025.8.10
4.55.4
0.21.0
__UNSLOTH_VERSIONING__
"""
@@ -136,9 +136,10 @@ class UnslothAlignPropConfig(AlignPropConfig):
default = -1,
metadata = {'help': 'Chunk size to reduce memory usage. -1 is most efficient.'},
)
def __init__(
self,
exp_name = 'inference',
exp_name = 'train',
run_name = '',
seed = 3407,
log_with = None,
@@ -169,6 +170,7 @@ class UnslothAlignPropConfig(AlignPropConfig):
push_to_hub = False,
vllm_sampling_params = None,
unsloth_num_chunks = -1,
**kwargs,
):
@@ -204,6 +206,7 @@ class UnslothAlignPropConfig(AlignPropConfig):
push_to_hub = push_to_hub,**kwargs)
self.vllm_sampling_params = vllm_sampling_params
self.unsloth_num_chunks = unsloth_num_chunks
pass
class _UnslothAlignPropTrainer(PyTorchModelHubMixin):
@@ -663,3 +666,13 @@ class UnslothAlignPropTrainer(_UnslothAlignPropTrainer):
image_samples_hook = image_samples_hook,**kwargs)
pass
if hasattr(logger, "addFilter"):
import logging
class HideLoggingMessage(logging.Filter):
def __init__(self, text): self.text = text
def filter(self, x): return not (self.text in x.getMessage())
pass
logger.addFilter(HideLoggingMessage("`use_cache=True`"))