|
|
@ -36,7 +36,9 @@ func llamaFromOptions(ctx *cli.Context) (*llama.LLama, error) { |
|
|
|
if ctx.Bool("alpaca") { |
|
|
|
if ctx.Bool("alpaca") { |
|
|
|
opts = append(opts, llama.EnableAlpaca) |
|
|
|
opts = append(opts, llama.EnableAlpaca) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if ctx.Bool("gpt4all") { |
|
|
|
|
|
|
|
opts = append(opts, llama.EnableGPT4All) |
|
|
|
|
|
|
|
} |
|
|
|
return llama.New(ctx.String("model"), opts...) |
|
|
|
return llama.New(ctx.String("model"), opts...) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -95,6 +97,11 @@ var modelFlags = []cli.Flag{ |
|
|
|
EnvVars: []string{"ALPACA"}, |
|
|
|
EnvVars: []string{"ALPACA"}, |
|
|
|
Value: true, |
|
|
|
Value: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
&cli.BoolFlag{ |
|
|
|
|
|
|
|
Name: "gpt4all", |
|
|
|
|
|
|
|
EnvVars: []string{"GPT4ALL"}, |
|
|
|
|
|
|
|
Value: false, |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
@ -168,6 +175,11 @@ echo "An Alpaca (Vicugna pacos) is a domesticated species of South American came |
|
|
|
EnvVars: []string{"ALPACA"}, |
|
|
|
EnvVars: []string{"ALPACA"}, |
|
|
|
Value: true, |
|
|
|
Value: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
&cli.BoolFlag{ |
|
|
|
|
|
|
|
Name: "gpt4all", |
|
|
|
|
|
|
|
EnvVars: []string{"GPT4ALL"}, |
|
|
|
|
|
|
|
Value: false, |
|
|
|
|
|
|
|
}, |
|
|
|
&cli.IntFlag{ |
|
|
|
&cli.IntFlag{ |
|
|
|
Name: "context-size", |
|
|
|
Name: "context-size", |
|
|
|
EnvVars: []string{"CONTEXT_SIZE"}, |
|
|
|
EnvVars: []string{"CONTEXT_SIZE"}, |
|
|
|