Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Aug 19, 2025

Description

This PR adds support to automatically synchronize the state between nodes of the same federation. By that, we basically share in the ledger the models that are installed in the instances, and the instances will automatically install via gallery the missing models.

Notes for Reviewers

There are limitations:

  • syncing of models is only available for models installed via the gallery, however, users can build their own galleries.
  • If one instance modifies a model YAML configuration file, the changes are NOT synchronized within the federation.

Signed commits

  • Yes, I signed my commits.

@netlify
Copy link

netlify bot commented Aug 19, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 6e0bf9b
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/68a4b07e1b60f800088ad6b4
😎 Deploy Preview https://deploy-preview-6108--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler added the enhancement New feature or request label Aug 19, 2025
mudler added 4 commits August 19, 2025 19:10
This change makes sure that between federated nodes all the models are
synced with each other.

Note: this works exclusively with models belonging to a gallery. It does
not sync files between the nodes, but rather it synces the node setup.
E.g. All the nodes needs to have configured the same galleries and
install models without any local editing.

Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
@mudler mudler merged commit 9c7f92c into master Aug 19, 2025
27 checks passed
@mudler mudler deleted the feat/p2p_sync branch August 19, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants