End of training
Browse files
README.md
CHANGED
@@ -50,7 +50,7 @@ fsdp_config: null
|
|
50 |
gradient_accumulation_steps: 4
|
51 |
gradient_checkpointing: false
|
52 |
group_by_length: false
|
53 |
-
hub_model_id:
|
54 |
hub_repo: null
|
55 |
hub_strategy: checkpoint
|
56 |
hub_token: null
|
|
|
50 |
gradient_accumulation_steps: 4
|
51 |
gradient_checkpointing: false
|
52 |
group_by_length: false
|
53 |
+
hub_model_id: null
|
54 |
hub_repo: null
|
55 |
hub_strategy: checkpoint
|
56 |
hub_token: null
|
test.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
with open("README.md", "r") as file:
|
2 |
-
|
3 |
-
print(data)
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
with open("README.md", "r") as file:
|
2 |
+
lines = file.readlines()
|
|
|
3 |
|
4 |
+
new_lines = []
|
5 |
+
for line in lines:
|
6 |
+
if "hub_model_id: " in line:
|
7 |
+
new_lines.append(f"hub_model_id: null\n")
|
8 |
+
else: new_lines.append(line)
|
9 |
+
with open("README.md", "w") as file:
|
10 |
+
file.writelines(new_lines)
|