(file, url)
| 71 | return part_end_offsets |
| 72 | |
| 73 | def fetch_dep(file, url): |
| 74 | with open(file, "w", encoding="utf-8") as f: |
| 75 | f.write(requests.get(url).text.replace("https://huggingface.co/wpmed/tinygrad-sd-f16/raw/main/bpe_simple_vocab_16e6.mjs", "./bpe_simple_vocab_16e6.mjs")) |
| 76 | |
| 77 | if __name__ == "__main__": |
| 78 | fetch_dep(os.path.join(os.path.dirname(__file__), "clip_tokenizer.js"), "https://huggingface.co/wpmed/tinygrad-sd-f16/raw/main/clip_tokenizer.js") |
no test coverage detected
searching dependent graphs…