()
| 2 | |
| 3 | |
| 4 | def 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 | |
| 19 | image = ( |
nothing calls this directly
no outgoing calls
no test coverage detected