Merge branch 'main' into nightly

This commit is contained in:
Daniel Han 2025-03-05 22:58:40 -08:00
commit 710735652d
2 changed files with 3 additions and 4 deletions

View file

@ -7,7 +7,7 @@ name = "unsloth"
dynamic = ["version"]
description = "2-5X faster LLM finetuning"
readme = "README.md"
requires-python = ">=3.9,<=3.12"
requires-python = ">=3.9,<3.13"
license = {file = "LICENSE"}
keywords = ["ai", "llm",]
authors = [

View file

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = "2025.3.4"
__version__ = "2025.3.5"
__all__ = [
"SUPPORTS_BFLOAT16",
@ -1248,8 +1248,7 @@ LOGITS_ERROR_STRING = \
'set the environment variable `UNSLOTH_RETURN_LOGITS` to `"1" BEFORE starting to train ie before `trainer.train()`. For example:\n\n'\
"import os\n"\
"os.environ['UNSLOTH_RETURN_LOGITS'] = '1'\n"\
"... trainer.train() ...\n"\
"No need to restart training - just add this before trainer.train() and re-run it!"
"... trainer.train() ..."
def raise_logits_error(*args, **kwargs): raise NotImplementedError(LOGITS_ERROR_STRING)
def return_none(*args, **kwargs): return None