Create executables for generate, lora, server, merge, convert (#682)

* feat: create executables mlx_lm.<cmd>

* nits in docs

---------

Co-authored-by: Awni Hannun <awni@apple.com>
This commit is contained in:
Phúc H. Lê Khắc
2024-04-17 00:08:49 +01:00
committed by GitHub
parent 7d7e236061
commit 35206806ac
10 changed files with 54 additions and 27 deletions

View File

@@ -101,7 +101,10 @@ def colorprint_by_t0(s, t0):
colorprint(color, s)
def main(args):
def main():
parser = setup_arg_parser()
args = parser.parse_args()
mx.random.seed(args.seed)
# Building tokenizer_config
@@ -143,6 +146,4 @@ def main(args):
if __name__ == "__main__":
parser = setup_arg_parser()
args = parser.parse_args()
main(args)
main()