You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
447 B
24 lines
447 B
1 year ago
|
package main
|
||
|
|
||
|
// Note: this is started internally by LocalAI and a server is allocated for each model
|
||
|
|
||
|
import (
|
||
|
"flag"
|
||
|
|
||
|
transformers "github.com/go-skynet/LocalAI/pkg/grpc/llm/transformers"
|
||
|
|
||
|
grpc "github.com/go-skynet/LocalAI/pkg/grpc"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
addr = flag.String("addr", "localhost:50051", "the address to connect to")
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
flag.Parse()
|
||
|
|
||
|
if err := grpc.StartServer(*addr, &transformers.Replit{}); err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
}
|