Closed albertpurnama closed 4 months ago
@joshcarp this might not be the change that you wanted, but I figured it's the correct direction, but let me know what you think!
This PR adds a llmgo init command.
llmgo init
What init command does:
init
~/.cache/llmgo/base
base
Other changes:
run
stdin
run gpt2
https://github.com/joshcarp/llm.go/assets/14824254/f3785a6c-c8f7-4156-befc-511984acd6e6
I like this and from a general usability perspective i think this is a really good first pass. Gonna merge it just like the other CLI command
@joshcarp this might not be the change that you wanted, but I figured it's the correct direction, but let me know what you think!
Changes
This PR adds a
llmgo init
command.What
init
command does:~/.cache/llmgo/base
directory, if not exist, then create it.base
directory, if any of the base files (listed below) does not exist, it will try to load it from HF.Other changes:
run
command now loads the tokenizer before showingstdin
. It will return error asking user to runinit
beforerun gpt2
.Recording
https://github.com/joshcarp/llm.go/assets/14824254/f3785a6c-c8f7-4156-befc-511984acd6e6