Home

Awesome

Symmetry Core

Use this repository to become an inference provider on the Symmetry network programmatically.

Symmetry is a decentralized peer-to-peer network tool that allows users to share computational resources for AI inference. It enables users to connect directly and securely with each other, offering or seeking computational power for various AI tasks.

Installation

npm install symmetry-core

Usage

To create a new Symmetry provider:

import { SymmetryProvider } from 'symmetry-core';

const config = {
  // ... your configuration object
};

const provider = new SymmetryProvider(config);
provider.init();

Configuration

Here's an example configuration object for creating a SymmetryProvider:

const config = {
  apiHostname: "localhost",
  apiKey: "",
  apiPath: "/v1/chat/completions",
  apiPort: 11434,
  apiProtocol: "http",
  apiProvider: "ollama",
  dataCollectionEnabled: false,
  maxConnections: 10,
  modelName: "llama3.1:latest",
  name: "twinnydotdev",
  path: "/home/twinnydotdev/.config/symmetry/data",
  public: true,
  serverKey: "4b4a9cc325d134dee6679e9407420023531fd7e96c563f6c5d00fd5549b77435",
  systemMessage: "I'm a system message",
  userSecret: "mystrongpassword"
};

const provider = new SymmetryProvider(config);

Configuration Fields

Adjust these settings according to your preferences and setup.

Contributing

Contributions are welcome! Please submit your pull requests to the GitHub repository.

License

This project is licensed under the MIT License.

Support

If you encounter any issues or have questions, please open an issue on GitHub.

Acknowledgments

We thank Hyperswarm for providing the underlying peer-to-peer networking capabilities.