Skip to content

Commit

Permalink
Merge pull request #3 from SpiritedAwayCN/artifact
Browse files Browse the repository at this point in the history
modified gen ckpt script
  • Loading branch information
Hsword authored Feb 22, 2024
2 parents 252db55 + 96c0523 commit 832b29f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckpt/generate_random_gpt_ckpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def gen_ckpt(output_dir):
(hidden_units,),
(hidden_units,)
]

if not os.path.exists(output_dir):
os.mkdir(output_dir)

for shape, name in zip(size_non_block, non_block_name):
a = np.random.normal(size=shape).astype(np.float32)
Expand Down

0 comments on commit 832b29f

Please sign in to comment.