MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / cache_model_weights

Function cache_model_weights

trainer/src/trainer/base.py:4–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def cache_model_weights():
5 from huggingface_hub import snapshot_download
6
7 # Images seem to be cached really efficiently on Modal so let's just save
8 # all our base model weights to the image to make training faster.
9 snapshot_download("OpenPipe/mistral-ft-optimized-1227")
10 snapshot_download("mistralai/Mixtral-8x7B-Instruct-v0.1")
11 snapshot_download("mistralai/Mistral-7B-Instruct-v0.2")
12
13 # This one is rarely used and quite large so just skip
14 # snapshot_download("meta-llama/Llama-2-13b-hf")
15
16 print("Model weights cached")
17
18
19image = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected