michael-guenther
commited on
Commit
•
215a6e1
1
Parent(s):
4be32c2
Save Transformer module in root when training with ST (#50)
Browse files- Save the Transformer module in the root for easier loading (2e1536ace112a8f74bde5b43b2fe5644bc1426f7)
- custom_st.py +2 -0
custom_st.py
CHANGED
@@ -33,6 +33,8 @@ class Transformer(nn.Module):
|
|
33 |
None, then model_name_or_path is used
|
34 |
"""
|
35 |
|
|
|
|
|
36 |
def __init__(
|
37 |
self,
|
38 |
model_name_or_path: str,
|
|
|
33 |
None, then model_name_or_path is used
|
34 |
"""
|
35 |
|
36 |
+
save_in_root: bool = True
|
37 |
+
|
38 |
def __init__(
|
39 |
self,
|
40 |
model_name_or_path: str,
|