diff --git a/core/http/elements/gallery.go b/core/http/elements/gallery.go index 028f9f3dab8b..3b3741d8f210 100644 --- a/core/http/elements/gallery.go +++ b/core/http/elements/gallery.go @@ -155,28 +155,24 @@ func P2PNodeBoxes(nodes []p2p.NodeData) string { nodesElements = append(nodesElements, elem.Div( attrs.Props{ - "class": "bg-gray-800 p-4 rounded-lg shadow-lg text-left", + "class": "bg-gray-700 p-6 rounded-lg shadow-lg text-left", }, - elem.Div( + elem.P( attrs.Props{ - "class": "flex items-center mb-2", + "class": "text-sm text-gray-400 mt-2 flex", }, elem.I( attrs.Props{ "class": "fas fa-desktop text-gray-400 mr-2", }, ), + elem.Text("Name: "), elem.Span( attrs.Props{ - "class": "text-gray-200 font-semibold", + "class": "text-gray-200 font-semibold ml-2 mr-1", }, elem.Text(n.ID), ), - ), - elem.P( - attrs.Props{ - "class": "text-sm text-gray-400 mt-2 flex items-center", - }, elem.Text("Status: "), elem.If( n.IsOnline(), diff --git a/core/http/views/p2p.html b/core/http/views/p2p.html index 90db2dbb1370..0396924ed908 100644 --- a/core/http/views/p2p.html +++ b/core/http/views/p2p.html @@ -7,8 +7,8 @@ {{template "views/partials/navbar" .}}
-
+

Distributed inference with P2P @@ -17,53 +17,20 @@

LocalAI uses P2P technologies to enable distribution of work between peers. It is possible to share an instance with Federation and/or split the weights of a model across peers (only available with llama.cpp models). You can now share computational resources between your devices or your friends!
- +
-

Start a new llama.cpp P2P worker

-

You can start llama.cpp workers to distribute weights between the workers and offload part of the computation. To start a new worker, you can use the CLI or Docker.

- - -
- - -
- - +
+
-
-

Workers (llama.cpp):

-
-
-
- -
+
-

Start a federated instance

-

You can start LocalAI in federated mode to share your instance, or start the federated server to balance requests between nodes of the federation.

+
    @@ -77,14 +44,18 @@

    +