Skip to main content

OpenSSM - 'Small Specialist Models' for Industrial AI

Project description

OpenSSM – “Small Specialist Models” for Industrial AI

  See full documentation at aitomatic.github.io/openssm/.  

OpenSSM (pronounced open-ess-ess-em) is an open-source framework for Small Specialist Models (SSMs), which are key to enhancing trust, reliability, and safety in Industrial-AI applications. Harnessing the power of domain expertise, SSMs operate either alone or in "teams". They collaborate with other SSMs, planners, and sensors/actuators to deliver real-world problem-solving capabilities.

Unlike Large Language Models (LLMs), which are computationally intensive and generalized, SSMs are lean, efficient, and designed specifically for individual domains. This focus makes them an optimal choice for businesses, SMEs, researchers, and developers seeking specialized and robust AI solutions for industrial applications.

SSM in Industrial AI

A prime deployment scenario for SSMs is within the aiCALM (Collaborative Augmented Large Models) architecture. aiCALM represents a cohesive assembly of AI components tailored for sophisticated problem-solving capabilities. Within this framework, SSMs work with General Management Models (GMMs) and other components to solve complex, domain-specific, and industrial problems.

Why SSM?

The trend towards specialization in AI models is a clear trajectory seen by many in the field.

  Specialization is crucial for quality .. not general purpose Al models – Eric Schmidt, Schmidt Foundation  

  .. small models .. for a specific task that are good – Matei Zaharia, Databricks  

  .. small agents working together .. specific and best in their tasks – Harrison Chase, Langchain  

  .. small but highly capable expert models – Andrej Karpathy, OpenAI  

  .. small models are .. a massive paradigm shift .. about deploying AI models at scale – Rob Toews, Radical Ventures  

As predicted by Eric Schmidt and others, we will see “a rich ecosystem to emerge [of] high-value, specialized AI systems.” SSMs are the central part in the architecture of these systems.

What OpenSSM Offers

OpenSSM fills this gap directly, with the following benefits to the community, developers, and businesses:

  • Industrial Focus: SSMs are developed with a specific emphasis on industrial applications, addressing the unique requirements of trustworthiness, safety, reliability, and scalability inherent to this sector.

  • Fast, Cost-Effective & Easy to Use: SSMs are 100-1000x faster and more efficient than LLMs, making them accessible and cost-effective particularly for industrial usage where time and resources are critical factors.

  • Easy Knowledge Capture: OpenSSM has easy-to-use tools for capturing domain knowledge in diverse forms: books, operaring manuals, databases, knowledge graphs, text files, and code.

  • Powerful Operations on Captured Knowledge: OpenSSM enables both knowledge query and inferencing/predictive capabilities based on the domain-specific knowledge.

  • Collaborative Problem-Solving: SSMs are designed to work in problem-solving "teams". Multi-SSM collaboration is a first-class design feature, not an afterthought.

  • Reliable Domain Expertise: Each SSM has expertise in a particular field or equipment, offering precise and specialized knowledge, thereby enhancing trustworthiness, reliability, and safety for Industrial-AI applications. With self-reasoning, causal reasoning, and retrieval-based knowledge, SSMs provide a trustable source of domain expertise.

  • Vendor Independence: OpenSSM allows everyone to build, train, and deploy their own domain-expert AI models, offering freedom from vendor lock-in and security concerns.

  • Composable Expertise: SSMs are fully composable, making it easy to combine domain expertise.

Target Audience

Our primary audience includes:

  • Businesses and SMEs wishing to leverage AI in their specific industrial context without relying on extensive computational resources or large vendor solutions.

  • AI researchers and developers keen on creating more efficient, robust, and domain-specific AI models for industrial applications.

  • Open-source contributors believing in democratizing industrial AI and eager to contribute to a community-driven project focused on building and sharing specialized AI models.

  • Industries with specific domain problems that can be tackled more effectively by a specialist AI model, enhancing the reliability and trustworthiness of AI solutions in an industrial setting.

SSM Architecture

At a high level, SSMs comprise a front-end Small Language Model (SLM), an adapter layer in the middle, and a wide range of back-end domain-knowledge sources. The SLM itself is a small, efficient, language model, which may be domain-specific or not, and may have been distilled from a larger model. Thus, domain knowledge may come from either, or both, the SLM and the backends.

High-Level SSM Architecture

The above diagram illustrates the high-level architecture of an SSM, which comprises three main components:

  1. Small Language Model (SLM): This forms the communication frontend of an SSM.

  2. Adapters (e.g., LlamaIndex): These provide the interface between the SLM and the domain-knowledge backends.

  3. Domain-Knowledge Backends: These include text files, documents, PDFs, databases, code, knowledge graphs, models, other SSMs, etc.

SSMs communicate in both unstructured (natural language) and structured APIs, catering to a variety of real-world industrial systems.

SSM Composability

The composable nature of SSMs allows for easy combination of domain-knowledge sources from multiple models.

Getting Started

See our Getting Started Guide for more information.

Roadmap

  • Play with SSMs in a hosted SSM sandbox, uploading your own domain knowledge

  • Create SSMs in your own development environment, and integrate SSMs into your own AI apps

  • Capture domain knowledge in various forms into your SSMs

  • Train SLMs via distillation of LLMs, teacher/student approaches, etc.

  • Apply SSMs in collaborative problem-solving AI systems

Community

Join our vibrant community of AI enthusiasts, researchers, developers, and businesses who are democratizing industrial AI through SSMs. Participate in the discussions, share your ideas, or ask for help on our Community Discussions.

Contribute

OpenSSM is a community-driven initiative, and we warmly welcome contributions. Whether it's enhancing existing models, creating new SSMs for different industrial domains, or improving our documentation, every contribution counts. See our Contribution Guide for more details.

License

OpenSSM is released under the Apache 2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openssm_dev-0.1.6.1.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

openssm_dev-0.1.6.1-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file openssm_dev-0.1.6.1.tar.gz.

File metadata

  • Download URL: openssm_dev-0.1.6.1.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for openssm_dev-0.1.6.1.tar.gz
Algorithm Hash digest
SHA256 94e91b842359506b53b815395599804895f49c4acf2d24c161a7e84d73114b9a
MD5 45ab6e79819c7905823fffd3a120f336
BLAKE2b-256 18bc80db20eb30628a51716346ee7aa82c27f241a595ba5c7cf6c7bd7c7cc7ca

See more details on using hashes here.

File details

Details for the file openssm_dev-0.1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openssm_dev-0.1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5ce6ae3b6744c1fc6e9aac41e9c86d22f56214c6cb3c1f59c4d45defbcc42b
MD5 f886c8f9c75c226c32f84b184a31b725
BLAKE2b-256 73a9e92831ca5c4bfa879e3012b2c36eed24a6c1e595fcc93f9a56a3eda1f473

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page