Skip to content

Commit

Permalink
improve finetune compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Jul 3, 2023
1 parent 525fb13 commit 511652b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions finetune/json2binidx_tool/tools/preprocess_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@

"""Processing data for pretraining."""

import argparse
import multiprocessing
import os
import sys

sys.path.append(os.path.dirname(os.path.realpath(__file__)))

import argparse
import multiprocessing

import lm_dataformat as lmd
import numpy as np

Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func main() {
backend.CopyEmbed(finetune)
os.Mkdir("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")
Expand Down

0 comments on commit 511652b

Please sign in to comment.