flpelerin commited on
Commit
c9340cb
·
verified ·
1 Parent(s): ac8f63b

Update train.py

Browse files
Files changed (1) hide show
  1. train.py +3 -11
train.py CHANGED
@@ -6,7 +6,9 @@ import numpy as np
6
  import wandb # Import W&B library
7
 
8
  from model import minGRULM
9
- from util import generate_text
 
 
10
 
11
  # ============================
12
  # Configuration Parameters
@@ -101,16 +103,6 @@ print(f"Model has {parameters_count:,} parameters")
101
  # ============================
102
  # Initialize the Weights and Biases Run
103
  # ============================
104
-
105
- ## TODO: Add naming of the run, from: "[MODEL_NAME]-[RANDOM_HEX]" (like: mingru-a14b)
106
-
107
- def generate_name():
108
- prefix = "mingru"
109
- random_number = random.randint(0, 0xFFFF)
110
- hex_code = f"{random_number:04x}"
111
- unique_name = f"{prefix}-{hex_code}"
112
- return unique_name
113
-
114
  wandb.login(key="860f8753998c6e6dc356914de07e8855aa2f9642")
115
  wandb.init(
116
  project="minGRU-Training",
 
6
  import wandb # Import W&B library
7
 
8
  from model import minGRULM
9
+ from util import generate_text, generate_name
10
+
11
+
12
 
13
  # ============================
14
  # Configuration Parameters
 
103
  # ============================
104
  # Initialize the Weights and Biases Run
105
  # ============================
 
 
 
 
 
 
 
 
 
 
106
  wandb.login(key="860f8753998c6e6dc356914de07e8855aa2f9642")
107
  wandb.init(
108
  project="minGRU-Training",