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
Distill a staticmodel from a sentence transformer.
@@ -64,9 +66,11 @@ def distill_from_model(
64
66
:param use_subword: Whether to keep subword tokens in the vocabulary. If this is False, you must pass a vocabulary, and the returned tokenizer will only detect full words.
65
67
: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.
66
68
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.
69
+
:param quantize_to: The data type to quantize to. Can be any of the DType enum members or their string equivalents.
Distill a staticmodel from a sentence transformer.
@@ -232,6 +240,7 @@ def distill(
232
240
:param use_subword: Whether to keep subword tokens in the vocabulary. If this is False, you must pass a vocabulary, and the returned tokenizer will only detect full words.
233
241
: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.
234
242
: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.
243
+
:param quantize_to: The data type to quantize to. Can be any of the DType enum members or their string equivalents.
0 commit comments