Update _utils.py
This commit is contained in:
parent
1454f60c45
commit
386caf02ed
1 changed files with 2 additions and 1 deletions
|
|
@ -1248,7 +1248,8 @@ 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() ..."
|
||||
"... trainer.train() ...\n"\
|
||||
"No need to restart training - just add this before trainer.train() and re-run it!"
|
||||
|
||||
def raise_logits_error(*args, **kwargs): raise NotImplementedError(LOGITS_ERROR_STRING)
|
||||
def return_none(*args, **kwargs): return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue