add data and update code
This commit is contained in:
parent
d975632c1a
commit
f2d7a607cb
1
UMLS-train-v2.json
Normal file
1
UMLS-train-v2.json
Normal file
File diff suppressed because one or more lines are too long
@ -179,9 +179,9 @@ def train(
|
||||
slama_model = KoPAWithAdapter(model, num_prefix, kge_model=kge_model)
|
||||
|
||||
if data_path.endswith(".json") or data_path.endswith(".jsonl"):
|
||||
data = load_dataset("json", data_files=data_path, cache_dir="/data/zhangyichi/.huggingface/")
|
||||
data = load_dataset("json")
|
||||
else:
|
||||
data = load_dataset(data_path, cache_dir="/data/zhangyichi/.huggingface/")
|
||||
data = load_dataset(data_path)
|
||||
|
||||
if resume_from_checkpoint:
|
||||
# Check the available weights and load them
|
||||
|
Loading…
Reference in New Issue
Block a user