tok...
This commit is contained in:
parent
a6b8255a65
commit
0323f1a00e
@ -19,7 +19,7 @@ def train(ouputdir: Path, blocksize: int, vocabsize: int, num_steps: int, gpu: b
|
|||||||
from aitextgen import aitextgen
|
from aitextgen import aitextgen
|
||||||
|
|
||||||
exts = ['.json', '.gz']
|
exts = ['.json', '.gz']
|
||||||
files = [x for x in ouputdir.glob('*') if x.suffix in exts]
|
files = [x for x in ouputdir.glob('*') if x.suffix in exts and x != "config.json"]
|
||||||
if len(files) == 2:
|
if len(files) == 2:
|
||||||
if files[0].suffix == '.json':
|
if files[0].suffix == '.json':
|
||||||
tok = str(files[0])
|
tok = str(files[0])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user