MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / default_bpe

Function default_bpe

python/dump.py:458–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

456# Clip tokenizer, taken from https://github.com/openai/CLIP/blob/main/clip/simple_tokenizer.py (MIT license)
457@lru_cache()
458def default_bpe():
459 return Path(__file__).parent.parent / "weights/bpe_simple_vocab_16e6.txt.gz"
460
461def get_pairs(word):
462 """Return set of symbol pairs in a word.

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected