qingy2024 commited on
Commit
b2ad90b
·
verified ·
1 Parent(s): 9b0bbc3

Training in progress, step 700

Browse files
.ipynb_checkpoints/upload-checkpoint.py CHANGED
@@ -23,7 +23,7 @@ TRAINER_STATE_FILENAME = "trainer_state.json"
23
  LOSS_PLOT_FILENAME = "loss.png"
24
 
25
  # Plotting Configuration
26
- LOSS_SMOOTHING_WINDOW = 10
27
 
28
  # Monitoring Configuration
29
  CHECKPOINT_DIR_PATTERN = re.compile(r"^checkpoint-(\d+)$")
@@ -86,6 +86,8 @@ def generate_readme_content(checkpoint_number: int, total_steps: int, base_model
86
  progress_width = f"{progress_percentage:.2f}%"
87
  progress_text = f"Progress: {checkpoint_number} out of {total_steps} steps"
88
 
 
 
89
  # Using an f-string for the template makes insertions cleaner
90
  readme_template = f"""
91
  ---
@@ -106,7 +108,7 @@ library_name: peft
106
  <body>
107
  <div style="width: 100%; background-color: #e0e0e0; border-radius: 25px; overflow: hidden; margin: 20px 0;">
108
  <div style="height: 30px; width: {progress_width}; background-color: #44965a; text-align: center; line-height: 30px; color: white; border-radius: 25px 0 0 25px;">
109
- <!-- {progress_percentage:.2f}% -->
110
  </div>
111
  </div>
112
  <p style="font-family: Arial, sans-serif; font-size: 16px;">{progress_text}</p>
 
23
  LOSS_PLOT_FILENAME = "loss.png"
24
 
25
  # Plotting Configuration
26
+ LOSS_SMOOTHING_WINDOW = 30
27
 
28
  # Monitoring Configuration
29
  CHECKPOINT_DIR_PATTERN = re.compile(r"^checkpoint-(\d+)$")
 
86
  progress_width = f"{progress_percentage:.2f}%"
87
  progress_text = f"Progress: {checkpoint_number} out of {total_steps} steps"
88
 
89
+ progress_percentage_text = f"{progress_percentage:.1f}%" if progress_percentage > 10 else f"<!-- {progress_percentage:.1f}% -->"
90
+
91
  # Using an f-string for the template makes insertions cleaner
92
  readme_template = f"""
93
  ---
 
108
  <body>
109
  <div style="width: 100%; background-color: #e0e0e0; border-radius: 25px; overflow: hidden; margin: 20px 0;">
110
  <div style="height: 30px; width: {progress_width}; background-color: #44965a; text-align: center; line-height: 30px; color: white; border-radius: 25px 0 0 25px;">
111
+ {progress_percentage_text}
112
  </div>
113
  </div>
114
  <p style="font-family: Arial, sans-serif; font-size: 16px;">{progress_text}</p>
adapter_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
- "base_model_name_or_path": "Qwen/Qwen2.5-7B-Instruct",
5
  "bias": "none",
6
  "eva_config": null,
7
  "exclude_modules": null,
 
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
+ "base_model_name_or_path": "./Qwen-2.5-7B-Instruct",
5
  "bias": "none",
6
  "eva_config": null,
7
  "exclude_modules": null,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e2d3410de6bfb1e6fd42fd22266647a670a70880c82970c02a71823d67c938c7
3
  size 161533192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c52f0f730c0152bf5b7b26cd1ed15c4ff0c86cba3626a3b7f180fbc9a2960c1
3
  size 161533192
upload.py CHANGED
@@ -23,7 +23,7 @@ TRAINER_STATE_FILENAME = "trainer_state.json"
23
  LOSS_PLOT_FILENAME = "loss.png"
24
 
25
  # Plotting Configuration
26
- LOSS_SMOOTHING_WINDOW = 10
27
 
28
  # Monitoring Configuration
29
  CHECKPOINT_DIR_PATTERN = re.compile(r"^checkpoint-(\d+)$")
@@ -86,6 +86,8 @@ def generate_readme_content(checkpoint_number: int, total_steps: int, base_model
86
  progress_width = f"{progress_percentage:.2f}%"
87
  progress_text = f"Progress: {checkpoint_number} out of {total_steps} steps"
88
 
 
 
89
  # Using an f-string for the template makes insertions cleaner
90
  readme_template = f"""
91
  ---
@@ -106,7 +108,7 @@ library_name: peft
106
  <body>
107
  <div style="width: 100%; background-color: #e0e0e0; border-radius: 25px; overflow: hidden; margin: 20px 0;">
108
  <div style="height: 30px; width: {progress_width}; background-color: #44965a; text-align: center; line-height: 30px; color: white; border-radius: 25px 0 0 25px;">
109
- <!-- {progress_percentage:.2f}% -->
110
  </div>
111
  </div>
112
  <p style="font-family: Arial, sans-serif; font-size: 16px;">{progress_text}</p>
 
23
  LOSS_PLOT_FILENAME = "loss.png"
24
 
25
  # Plotting Configuration
26
+ LOSS_SMOOTHING_WINDOW = 30
27
 
28
  # Monitoring Configuration
29
  CHECKPOINT_DIR_PATTERN = re.compile(r"^checkpoint-(\d+)$")
 
86
  progress_width = f"{progress_percentage:.2f}%"
87
  progress_text = f"Progress: {checkpoint_number} out of {total_steps} steps"
88
 
89
+ progress_percentage_text = f"{progress_percentage:.1f}%" if progress_percentage > 10 else f"<!-- {progress_percentage:.1f}% -->"
90
+
91
  # Using an f-string for the template makes insertions cleaner
92
  readme_template = f"""
93
  ---
 
108
  <body>
109
  <div style="width: 100%; background-color: #e0e0e0; border-radius: 25px; overflow: hidden; margin: 20px 0;">
110
  <div style="height: 30px; width: {progress_width}; background-color: #44965a; text-align: center; line-height: 30px; color: white; border-radius: 25px 0 0 25px;">
111
+ {progress_percentage_text}
112
  </div>
113
  </div>
114
  <p style="font-family: Arial, sans-serif; font-size: 16px;">{progress_text}</p>