improve finetune compatibility
This commit is contained in:
parent
525fb132d6
commit
511652b71c
@ -17,11 +17,14 @@
|
|||||||
|
|
||||||
"""Processing data for pretraining."""
|
"""Processing data for pretraining."""
|
||||||
|
|
||||||
import argparse
|
|
||||||
import multiprocessing
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import multiprocessing
|
||||||
|
|
||||||
import lm_dataformat as lmd
|
import lm_dataformat as lmd
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
1
main.go
1
main.go
@ -37,6 +37,7 @@ func main() {
|
|||||||
backend.CopyEmbed(finetune)
|
backend.CopyEmbed(finetune)
|
||||||
os.Mkdir("models", os.ModePerm)
|
os.Mkdir("models", os.ModePerm)
|
||||||
os.Mkdir("lora-models", os.ModePerm)
|
os.Mkdir("lora-models", os.ModePerm)
|
||||||
|
os.Mkdir("finetune/json2binidx_tool/data", os.ModePerm)
|
||||||
}
|
}
|
||||||
|
|
||||||
f, err := os.Create("lora-models/train_log.txt")
|
f, err := os.Create("lora-models/train_log.txt")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user