mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-24 06:46:39 +00:00
fdb45153fe
* feat(llama.cpp): Enable decentralized, distributed inference As https://github.com/mudler/LocalAI/pull/2324 introduced distributed inferencing thanks to @rgerganov implementation in https://github.com/ggerganov/llama.cpp/pull/6829 in upstream llama.cpp, now it is possible to distribute the workload to remote llama.cpp gRPC server. This changeset now uses mudler/edgevpn to establish a secure, distributed network between the nodes using a shared token. The token is generated automatically when starting the server with the `--p2p` flag, and can be used by starting the workers with `local-ai worker p2p-llama-cpp-rpc` by passing the token via environment variable (TOKEN) or with args (--token). As per how mudler/edgevpn works, a network is established between the server and the workers with dht and mdns discovery protocols, the llama.cpp rpc server is automatically started and exposed to the underlying p2p network so the API server can connect on. When the HTTP server is started, it will discover the workers in the network and automatically create the port-forwards to the service locally. Then llama.cpp is configured to use the services. This feature is behind the "p2p" GO_FLAGS Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * go mod tidy Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * ci: add p2p tag Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * better message Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
278 lines
13 KiB
Modula-2
278 lines
13 KiB
Modula-2
module github.com/go-skynet/LocalAI
|
|
|
|
go 1.21.1
|
|
|
|
toolchain go1.22.2
|
|
|
|
require (
|
|
github.com/M0Rf30/go-tiny-dream v0.0.0-20231128165230-772a9c0d9aaf
|
|
github.com/Masterminds/sprig/v3 v3.2.3
|
|
github.com/alecthomas/kong v0.9.0
|
|
github.com/census-instrumentation/opencensus-proto v0.4.1
|
|
github.com/charmbracelet/glamour v0.7.0
|
|
github.com/chasefleming/elem-go v0.25.0
|
|
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4
|
|
github.com/donomii/go-rwkv.cpp v0.0.0-20240228065144-661e7ae26d44
|
|
github.com/elliotchance/orderedmap/v2 v2.2.0
|
|
github.com/fsnotify/fsnotify v1.7.0
|
|
github.com/ggerganov/whisper.cpp/bindings/go v0.0.0-20230628193450-85ed71aaec8e
|
|
github.com/go-audio/wav v1.1.0
|
|
github.com/go-skynet/go-bert.cpp v0.0.0-20230716133540-6abe312cded1
|
|
github.com/go-skynet/go-llama.cpp v0.0.0-20231009155254-aeba71ee8428
|
|
github.com/gofiber/fiber/v2 v2.52.4
|
|
github.com/gofiber/swagger v1.0.0
|
|
github.com/gofiber/template/html/v2 v2.1.1
|
|
github.com/google/uuid v1.5.0
|
|
github.com/grpc-ecosystem/grpc-gateway v1.16.0
|
|
github.com/hpcloud/tail v1.0.0
|
|
github.com/imdario/mergo v0.3.16
|
|
github.com/ipfs/go-log v1.0.5
|
|
github.com/jaypipes/ghw v0.12.0
|
|
github.com/joho/godotenv v1.5.1
|
|
github.com/klauspost/cpuid/v2 v2.2.7
|
|
github.com/libp2p/go-libp2p v0.31.0
|
|
github.com/mholt/archiver/v3 v3.5.1
|
|
github.com/microcosm-cc/bluemonday v1.0.26
|
|
github.com/mudler/edgevpn v0.25.3
|
|
github.com/mudler/go-processmanager v0.0.0-20230818213616-f204007f963c
|
|
github.com/mudler/go-stable-diffusion v0.0.0-20230605122230-d89260f598af
|
|
github.com/nomic-ai/gpt4all/gpt4all-bindings/golang v0.0.0-20231022042237-c25dc5193530
|
|
github.com/onsi/ginkgo/v2 v2.17.1
|
|
github.com/onsi/gomega v1.33.0
|
|
github.com/ory/dockertest/v3 v3.10.0
|
|
github.com/otiai10/openaigo v1.6.0
|
|
github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5
|
|
github.com/prometheus/client_golang v1.17.0
|
|
github.com/rs/zerolog v1.32.0
|
|
github.com/russross/blackfriday v1.6.0
|
|
github.com/sashabaranov/go-openai v1.20.4
|
|
github.com/schollz/progressbar/v3 v3.13.1
|
|
github.com/shirou/gopsutil/v3 v3.23.9
|
|
github.com/stretchr/testify v1.9.0
|
|
github.com/swaggo/swag v1.16.3
|
|
github.com/tmc/langchaingo v0.0.0-20231019140956-c636b3da7701
|
|
github.com/valyala/fasthttp v1.51.0
|
|
go.opentelemetry.io/otel v1.19.0
|
|
go.opentelemetry.io/otel/exporters/prometheus v0.42.0
|
|
go.opentelemetry.io/otel/metric v1.19.0
|
|
go.opentelemetry.io/otel/sdk/metric v1.19.0
|
|
google.golang.org/api v0.126.0
|
|
google.golang.org/grpc v1.59.0
|
|
google.golang.org/protobuf v1.33.0
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go/compute v1.23.0 // indirect
|
|
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
|
github.com/benbjohnson/clock v1.3.5 // indirect
|
|
github.com/c-robinson/iplib v1.0.8 // indirect
|
|
github.com/containerd/cgroups v1.1.0 // indirect
|
|
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
|
github.com/creachadair/otp v0.4.2 // indirect
|
|
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
|
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
|
|
github.com/elastic/gosigar v0.14.2 // indirect
|
|
github.com/envoyproxy/protoc-gen-validate v1.0.2 // indirect
|
|
github.com/flynn/noise v1.0.0 // indirect
|
|
github.com/francoispqt/gojay v1.2.13 // indirect
|
|
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
|
github.com/golang/mock v1.6.0 // indirect
|
|
github.com/google/btree v1.1.2 // indirect
|
|
github.com/google/gopacket v1.1.19 // indirect
|
|
github.com/google/s2a-go v0.1.4 // indirect
|
|
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
|
|
github.com/googleapis/gax-go/v2 v2.11.0 // indirect
|
|
github.com/gorilla/websocket v1.5.0 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/hashicorp/golang-lru v0.5.4 // indirect
|
|
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
|
github.com/huin/goupnp v1.2.0 // indirect
|
|
github.com/ipfs/boxo v0.10.0 // indirect
|
|
github.com/ipfs/go-cid v0.4.1 // indirect
|
|
github.com/ipfs/go-datastore v0.6.0 // indirect
|
|
github.com/ipfs/go-log/v2 v2.5.1 // indirect
|
|
github.com/ipld/go-ipld-prime v0.20.0 // indirect
|
|
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
|
|
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
|
|
github.com/jbenet/goprocess v0.1.4 // indirect
|
|
github.com/koron/go-ssdp v0.0.4 // indirect
|
|
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
|
|
github.com/libp2p/go-cidranger v1.1.0 // indirect
|
|
github.com/libp2p/go-flow-metrics v0.1.0 // indirect
|
|
github.com/libp2p/go-libp2p-asn-util v0.3.0 // indirect
|
|
github.com/libp2p/go-libp2p-kad-dht v0.25.2 // indirect
|
|
github.com/libp2p/go-libp2p-kbucket v0.6.3 // indirect
|
|
github.com/libp2p/go-libp2p-pubsub v0.9.3 // indirect
|
|
github.com/libp2p/go-libp2p-record v0.2.0 // indirect
|
|
github.com/libp2p/go-libp2p-routing-helpers v0.7.2 // indirect
|
|
github.com/libp2p/go-msgio v0.3.0 // indirect
|
|
github.com/libp2p/go-nat v0.2.0 // indirect
|
|
github.com/libp2p/go-netroute v0.2.1 // indirect
|
|
github.com/libp2p/go-reuseport v0.4.0 // indirect
|
|
github.com/libp2p/go-yamux/v4 v4.0.1 // indirect
|
|
github.com/libp2p/zeroconf/v2 v2.2.0 // indirect
|
|
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
|
|
github.com/miekg/dns v1.1.59 // indirect
|
|
github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
|
|
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
|
|
github.com/minio/sha256-simd v1.0.1 // indirect
|
|
github.com/mr-tron/base58 v1.2.0 // indirect
|
|
github.com/mudler/water v0.0.0-20221010214108-8c7313014ce0 // indirect
|
|
github.com/multiformats/go-base32 v0.1.0 // indirect
|
|
github.com/multiformats/go-base36 v0.2.0 // indirect
|
|
github.com/multiformats/go-multiaddr v0.12.3 // indirect
|
|
github.com/multiformats/go-multiaddr-dns v0.3.1 // indirect
|
|
github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect
|
|
github.com/multiformats/go-multibase v0.2.0 // indirect
|
|
github.com/multiformats/go-multicodec v0.9.0 // indirect
|
|
github.com/multiformats/go-multihash v0.2.3 // indirect
|
|
github.com/multiformats/go-multistream v0.4.1 // indirect
|
|
github.com/multiformats/go-varint v0.0.7 // indirect
|
|
github.com/opencontainers/runtime-spec v1.1.0 // indirect
|
|
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
|
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
|
|
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
|
|
github.com/polydawn/refmt v0.89.0 // indirect
|
|
github.com/quic-go/qpack v0.4.0 // indirect
|
|
github.com/quic-go/qtls-go1-20 v0.3.3 // indirect
|
|
github.com/quic-go/quic-go v0.38.1 // indirect
|
|
github.com/quic-go/webtransport-go v0.5.3 // indirect
|
|
github.com/raulk/go-watchdog v1.3.0 // indirect
|
|
github.com/songgao/packets v0.0.0-20160404182456-549a10cd4091 // indirect
|
|
github.com/spaolacci/murmur3 v1.1.0 // indirect
|
|
github.com/vishvananda/netlink v1.1.0 // indirect
|
|
github.com/vishvananda/netns v0.0.0-20211101163701-50045581ed74 // indirect
|
|
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect
|
|
go.opencensus.io v0.24.0 // indirect
|
|
go.uber.org/dig v1.17.0 // indirect
|
|
go.uber.org/fx v1.20.0 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
go.uber.org/zap v1.27.0 // indirect
|
|
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
|
|
golang.org/x/oauth2 v0.11.0 // indirect
|
|
golang.org/x/sync v0.6.0 // indirect
|
|
golang.org/x/sys v0.19.0 // indirect
|
|
golang.zx2c4.com/wintun v0.0.0-20211104114900-415007cec224 // indirect
|
|
golang.zx2c4.com/wireguard v0.0.0-20220703234212-c31a7b1ab478 // indirect
|
|
golang.zx2c4.com/wireguard/windows v0.5.3 // indirect
|
|
gonum.org/v1/gonum v0.13.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
|
|
lukechampine.com/blake3 v1.2.1 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
|
|
github.com/KyleBanks/depth v1.2.1 // indirect
|
|
github.com/Masterminds/goutils v1.1.1 // indirect
|
|
github.com/Masterminds/semver/v3 v3.2.0 // indirect
|
|
github.com/Microsoft/go-winio v0.6.0 // indirect
|
|
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
|
|
github.com/StackExchange/wmi v1.2.1 // indirect
|
|
github.com/alecthomas/chroma/v2 v2.8.0 // indirect
|
|
github.com/andybalholm/brotli v1.0.5 // indirect
|
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
|
github.com/aymerick/douceur v0.2.0 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/containerd/continuity v0.3.0 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/dlclark/regexp2 v1.8.1 // indirect
|
|
github.com/docker/cli v20.10.17+incompatible // indirect
|
|
github.com/docker/docker v24.0.9+incompatible // indirect
|
|
github.com/docker/go-connections v0.4.0 // indirect
|
|
github.com/docker/go-units v0.5.0 // indirect
|
|
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
|
|
github.com/ghodss/yaml v1.0.0 // indirect
|
|
github.com/go-audio/audio v1.0.0 // indirect
|
|
github.com/go-audio/riff v1.0.0 // indirect
|
|
github.com/go-logr/logr v1.4.1 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
github.com/go-openapi/jsonpointer v0.21.0 // indirect
|
|
github.com/go-openapi/jsonreference v0.21.0 // indirect
|
|
github.com/go-openapi/spec v0.21.0 // indirect
|
|
github.com/go-openapi/swag v0.23.0 // indirect
|
|
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
|
github.com/gofiber/contrib/fiberzerolog v1.0.0
|
|
github.com/gofiber/template v1.8.3 // indirect
|
|
github.com/gofiber/utils v1.1.0 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/protobuf v1.5.3
|
|
github.com/golang/snappy v0.0.2 // indirect
|
|
github.com/google/go-cmp v0.6.0 // indirect
|
|
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f // indirect
|
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
|
|
github.com/gorilla/css v1.0.1 // indirect
|
|
github.com/huandu/xstrings v1.3.3 // indirect
|
|
github.com/jaypipes/pcidb v1.0.0 // indirect
|
|
github.com/josharian/intern v1.0.0 // indirect
|
|
github.com/klauspost/compress v1.17.0 // indirect
|
|
github.com/klauspost/pgzip v1.2.5 // indirect
|
|
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
github.com/mailru/easyjson v0.7.7 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
|
github.com/mitchellh/copystructure v1.2.0 // indirect
|
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
|
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect
|
|
github.com/mudler/go-piper v0.0.0-20230621222733-56b8a81b4760
|
|
github.com/muesli/reflow v0.3.0 // indirect
|
|
github.com/muesli/termenv v0.15.2 // indirect
|
|
github.com/nwaples/rardecode v1.1.0 // indirect
|
|
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.0.2 // indirect
|
|
github.com/opencontainers/runc v1.1.12 // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.2 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/pkoukk/tiktoken-go v0.1.2 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
|
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
|
|
github.com/prometheus/common v0.44.0 // indirect
|
|
github.com/prometheus/procfs v0.11.1 // indirect
|
|
github.com/rivo/uniseg v0.2.0 // indirect
|
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
|
github.com/shopspring/decimal v1.3.1 // indirect
|
|
github.com/sirupsen/logrus v1.8.1 // indirect
|
|
github.com/spf13/cast v1.5.0 // indirect
|
|
github.com/swaggo/files/v2 v2.0.0 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
|
github.com/tklauser/numcpus v0.6.1 // indirect
|
|
github.com/ulikunitz/xz v0.5.9 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/tcplisten v1.0.0 // indirect
|
|
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
|
|
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
|
|
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
|
|
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
|
|
github.com/yuin/goldmark v1.5.4 // indirect
|
|
github.com/yuin/goldmark-emoji v1.0.2 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.3 // indirect
|
|
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.19.0 // indirect
|
|
golang.org/x/crypto v0.22.0 // indirect
|
|
golang.org/x/mod v0.16.0 // indirect
|
|
golang.org/x/net v0.24.0 // indirect
|
|
golang.org/x/term v0.19.0 // indirect
|
|
golang.org/x/text v0.14.0 // indirect
|
|
golang.org/x/tools v0.19.0 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
|
|
gopkg.in/fsnotify.v1 v1.4.7 // indirect
|
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
|
howett.net/plist v1.0.0 // indirect
|
|
)
|