MCPcopy Create free account
hub / github.com/tinygrad/tinygrad / fetch_dep

Function fetch_dep

examples/webgpu/stable_diffusion/compile.py:73–75  ·  view source on GitHub ↗
(file, url)

Source from the content-addressed store, hash-verified

71 return part_end_offsets
72
73def 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
77if __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")

Callers 1

compile.pyFile · 0.85

Calls 3

writeMethod · 0.45
replaceMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…