Gemma issue
This commit is contained in:
parent
2ecf368b53
commit
427656d891
2 changed files with 2 additions and 6 deletions
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
__version__ = "2025.12.3"
|
||||
__version__ = "2025.12.4"
|
||||
|
||||
__all__ = [
|
||||
"SUPPORTS_BFLOAT16",
|
||||
|
|
|
|||
|
|
@ -349,16 +349,12 @@ def _patch_sft_trainer_auto_packing(trl_module):
|
|||
if not blocked:
|
||||
if padding_free_requested:
|
||||
configure_padding_free(config_arg)
|
||||
elif not is_unsupported_gemma and _should_auto_padding_free(config_arg):
|
||||
elif _should_auto_padding_free(config_arg):
|
||||
configure_padding_free(config_arg)
|
||||
auto_padding_free_active = True
|
||||
logger.info(
|
||||
"Unsloth: Padding-free batching auto-enabled for SFTTrainer instance."
|
||||
)
|
||||
elif is_unsupported_gemma and _should_auto_padding_free(config_arg):
|
||||
logger.info(
|
||||
"Unsloth: Padding-free batching auto-disabled for Gemma 2 (requires flash attention)."
|
||||
)
|
||||
|
||||
try:
|
||||
original_init(self, *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue