You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .meta/mast/README.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,3 +44,48 @@ The launch script will automatically:
44
44
- Launch the MAST job with the specified config
45
45
46
46
You can run it from anywhere, and it will figure out the correct paths.
47
+
48
+
49
+
## Managing HuggingFace Models in MAST
50
+
51
+
### The Problem: No Internet Access
52
+
53
+
MAST compute nodes cannot access the internet, which means they cannot download models directly from HuggingFace. To work around this, we store all HuggingFace models and cache data on OilFS at `/mnt/wsfuse/teamforge/hf`, which is accessible from MAST.
54
+
55
+
### Solution: Two-Step Process
56
+
57
+
You need to perform both steps below to ensure models work correctly in MAST:
58
+
59
+
#### 1. Download Model Weights to OilFS
60
+
61
+
First, download the model weights directly to the OilFS path. This should be done from a machine with internet access (like your devserver):
62
+
63
+
```bash
64
+
# Set HF_HOME to the OilFS path
65
+
export HF_HOME=/mnt/wsfuse/teamforge/hf
66
+
67
+
# Download the model (replace with your desired model)
0 commit comments