oops i should probably call this function lol
This commit is contained in:
@@ -42,6 +42,7 @@ expected_stdout = b'Once upon a time, there was a little girl named Lily. She lo
|
|||||||
|
|
||||||
def test_runc():
|
def test_runc():
|
||||||
""" Forwards a model against a known-good desired outcome in run.c for 200 steps"""
|
""" Forwards a model against a known-good desired outcome in run.c for 200 steps"""
|
||||||
|
attempt_download_files()
|
||||||
|
|
||||||
model_path = os.path.join(test_ckpt_dir, "stories260K.bin")
|
model_path = os.path.join(test_ckpt_dir, "stories260K.bin")
|
||||||
tokenizer_path = os.path.join(test_ckpt_dir, "tok512.bin")
|
tokenizer_path = os.path.join(test_ckpt_dir, "tok512.bin")
|
||||||
@@ -56,6 +57,7 @@ def test_runc():
|
|||||||
|
|
||||||
def test_python():
|
def test_python():
|
||||||
""" Forwards a model against a known-good desired outcome in sample.py for 200 steps"""
|
""" Forwards a model against a known-good desired outcome in sample.py for 200 steps"""
|
||||||
|
attempt_download_files()
|
||||||
|
|
||||||
device = "cpu" # stories260K is small enough to just breeze through it on CPU
|
device = "cpu" # stories260K is small enough to just breeze through it on CPU
|
||||||
checkpoint = os.path.join(test_ckpt_dir, "stories260K.pt")
|
checkpoint = os.path.join(test_ckpt_dir, "stories260K.pt")
|
||||||
|
|||||||
Reference in New Issue
Block a user