Skip to content

Commit 19495bd

Browse files
committed
update for single gpu
1 parent ca7af6c commit 19495bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/llamafactory/train/tuner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,7 @@ def export_model(args: Optional[Dict[str, Any]] = None) -> None:
142142

143143
except Exception as e:
144144
logger.warning("Cannot save tokenizer, please copy the files manually: {}.".format(e))
145+
146+
147+
if __name__ == "__main__":
148+
run_exp()

src/llmtuner/wrapers/export_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from llmtuner import export_model
1+
from llamafactory.train.tuner import export_model
22

33

44
def main():

0 commit comments

Comments
 (0)