Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ def main():
|
|
9 |
# Enable CUDA if available and load in tokenizer
|
10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
11 |
tokenizer, EMPTY_TOKENS = load_tokenizer(device)
|
12 |
-
model.cuda()
|
13 |
|
14 |
st.title("Scaling Transformers")
|
15 |
st.subheader("UCLA DSU Project, Fall 2023")
|
@@ -72,6 +71,7 @@ def main():
|
|
72 |
# small_model = load_casey_model(tokenizer, device)
|
73 |
model = load_big_model(tokenizer, device)
|
74 |
model.to('cuda')
|
|
|
75 |
|
76 |
|
77 |
|
|
|
9 |
# Enable CUDA if available and load in tokenizer
|
10 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
11 |
tokenizer, EMPTY_TOKENS = load_tokenizer(device)
|
|
|
12 |
|
13 |
st.title("Scaling Transformers")
|
14 |
st.subheader("UCLA DSU Project, Fall 2023")
|
|
|
71 |
# small_model = load_casey_model(tokenizer, device)
|
72 |
model = load_big_model(tokenizer, device)
|
73 |
model.to('cuda')
|
74 |
+
model.cuda()
|
75 |
|
76 |
|
77 |
|