VERSIL91 commited on
Commit
9ab0f04
·
verified ·
1 Parent(s): a12c325

End of training

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. test.py +8 -3
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: duyphu/bbdecd00-d8b9-464e-9454-e600bc6d1772
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
- data = file.read()
3
- print(data)
4
 
5
- print(data)
 
 
 
 
 
 
 
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)