mirror of
https://github.com/unslothai/unsloth.git
synced 2026-07-10 00:08:58 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
2c8aacc55a
commit
873cb0be55
1 changed files with 1 additions and 0 deletions
|
|
@ -1393,6 +1393,7 @@ def _transformers_exceeds_llm_compressor_ceiling(transformers_version = None):
|
|||
return False, "unknown"
|
||||
try:
|
||||
from packaging.version import parse as _parse
|
||||
|
||||
# Drop any local build suffix ("4.57.6+abc") so it does not skew the comparison.
|
||||
active = _parse(str(transformers_version).split("+", 1)[0])
|
||||
ceiling = _parse(_LLM_COMPRESSOR_MAX_TRANSFORMERS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue