-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix detokenizer space match for quote #1072
Conversation
llms/mlx_lm/__init__.py
Outdated
import os | ||
os.environ["TRANSFORMERS_NO_ADVISORY_WARNINGS"] = "1" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get's rid of the warning:
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blanks are now there: import ‘package:flutter/material.dart’; Thank you for fixing
from ._version import __version__ | ||
|
||
os.environ["TRANSFORMERS_NO_ADVISORY_WARNINGS"] = "1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a comment in the code would be nice, why you set the flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I introduces a bug when trying to port the
clean_up_tokenization_spaces
from HF.Their match is actually to find and replace instances of
'
with'
. That one specifically requires a special case to post-process which is tedious, so I just removed that case as I have never seen it come up. But if it does we can revisit.For reference, the transformers matching conditions.
Closes #1073