You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: model2vec/distill/distillation.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ def distill_from_model(
66
66
:param token_remove_pattern: If this is set to a string, we compile this into a regex. Any tokens that conform to this regex pattern will be removed from the vocabulary.
67
67
If the pattern is so general that it removes all tokens, we throw an error. If the pattern can't be compiled into a valid regex, we also throw an error.
68
68
:param quantize_to: The data type to quantize to. Can be any of the DType enum members or their string equivalents.
69
-
:param use_subword: Deprecated. If this is not set to None, we show a warning. It doesn't do anything.
69
+
:param use_subword: DEPRECATED: If this is not set to None, we show a warning. It doesn't do anything.
70
70
:return: A StaticModel
71
71
72
72
"""
@@ -229,7 +229,7 @@ def distill(
229
229
:param token_remove_pattern: If this is set to a string, we compile this into a regex. Any tokens that conform to this regex pattern will be removed from the vocabulary.
230
230
:param trust_remote_code: Whether to trust the remote code. If this is False, we will only load components coming from `transformers`. If this is True, we will load all components.
231
231
:param quantize_to: The data type to quantize to. Can be any of the DType enum members or their string equivalents.
232
-
:param use_subword: Deprecated. If this is not set to None, we show a warning. It doesn't do anything.
232
+
:param use_subword: DEPRECATED: If this is not set to None, we show a warning. It doesn't do anything.
0 commit comments