Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mlrun

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mlrun

Tracking and config of machine learning runs

  • 1.7.1
  • PyPI
  • Socket score

Maintainers
2

Build Status License PyPI version fury.io Documentation Ruff GitHub commit activity GitHub release (latest SemVer) Join MLOps Live

MLRun logo

Using MLRun

MLRun is an open source AI orchestration platform for quickly building and managing continuous (gen) AI applications across their lifecycle. MLRun integrates into your development and CI/CD environment and automates the delivery of production data, ML pipelines, and online applications. MLRun significantly reduces engineering efforts, time to production, and computation resources. With MLRun, you can choose any IDE on your local machine or on the cloud. MLRun breaks the silos between data, ML, software, and DevOps/MLOps teams, enabling collaboration and fast continuous improvements.

Get started with the MLRun Tutorials and Examples and the Installation and setup guide, or read about the MLRun Architecture.

This page explains how MLRun addresses the gen AI tasks, MLOps tasks, and presents the MLRun core components.

See the supported data stores, development tools, services, platforms, etc., supported by MLRun's open architecture in https://docs.mlrun.org/en/stable/ecosystem.html.

Gen AI tasks

ai-tasks


Use MLRun to develop, scale, deploy, and monitor your AI model across your enterprise. The gen AI development workflow section describes the different tasks and stages in detail.

Data management

MLRun supports batch or realtime data processing at scale, data lineage and versioning, structured and unstructured data, and more. Removing inappropriate data at an early stage saves resources that would otherwise be required later on.

Docs: Using LLMs to process unstructured data Vector databases Guardrails for data management Demo: [Call center demo](https://github.com/mlrun/demo-call-center>` Video: [Call center](https://youtu.be/YycMbxRgLBA>`

Development

Use MLRun to build an automated ML pipeline to: collect data, preprocess (prepare) the data, run the training pipeline, and evaluate the model.

Docs: Working with RAG, Evalating LLMs, Fine tuning LLMS Demos: Call center demo, Build & deploy custom (fine-tuned) LLM models and applications, Interactive bot demo using LLMs Video: Call center

Deployment

MLRun serving can productize the newly trained LLM as a serverless function using real-time auto-scaling Nuclio serverless functions. The application pipeline includes all the steps from accepting events or data, contextualizing it with a state preparing the required model features, inferring results using one or more models, and driving actions.

Docs: Serving gen AI models, GPU utilization](https://docs.mlrun.org/en/stable/genai/deployment/gpu_utilization.html), Gen AI realtime serving graph Tutorial: Deploy LLM using MLRun Demos: Call center demo, [Build & deploy custom(fine-tuned)]LLM models and applications <https://github.com/mlrun/demo-llm-tuning/blob/main), [Interactive bot demo using LLMs]<https://github.com/mlrun/demo-llm-bot/blob/main) Video: [Call center]<https://youtu.be/YycMbxRgLBA)

Live Ops

Monitor all resources, data, model and application metrics to ensure performance. Then identify risks, control costs, and measure business KPIs. Collect production data, metadata, and metrics to tune the model and application further, and to enable governance and explainability.

Docs: Model monitoring <monitoring, Alerts and notifications Tutorials: Deploy LLM using MLRun, Model monitoring using LLM Demo: Build & deploy custom (fine-tuned) LLM models and applications

MLOps tasks

mlrun-tasks


The MLOps development workflow section describes the different tasks and stages in detail. MLRun can be used to automate and orchestrate all the different tasks or just specific tasks (and integrate them with what you have already deployed).

Project management and CI/CD automation

In MLRun the assets, metadata, and services (data, functions, jobs, artifacts, models, secrets, etc.) are organized into projects. Projects can be imported/exported as a whole, mapped to git repositories or IDE projects (in PyCharm, VSCode, etc.), which enables versioning, collaboration, and CI/CD. Project access can be restricted to a set of users and roles.

Docs: Projects and Automation, CI/CD Integration Tutorials: Quick start, Automated ML Pipeline Video: Quick start.

Ingest and process data

MLRun provides abstract interfaces to various offline and online data sources, supports batch or realtime data processing at scale, data lineage and versioning, structured and unstructured data, and more. In addition, the MLRun Feature Store automates the collection, transformation, storage, catalog, serving, and monitoring of data features across the ML lifecycle and enables feature reuse and sharing.

See: Docs: Ingest and process data, Feature Store, Data & Artifacts Tutorials: Quick start, Feature Store.

Develop and train models

MLRun allows you to easily build ML pipelines that take data from various sources or the Feature Store and process it, train models at scale with multiple parameters, test models, tracks each experiments, register, version and deploy models, etc. MLRun provides scalable built-in or custom model training services, integrate with any framework and can work with 3rd party training/auto-ML services. You can also bring your own pre-trained model and use it in the pipeline.

Docs: Develop and train models, Model Training and Tracking, Batch Runs and Workflows Tutorials: Train, compare, and register models, Automated ML Pipeline Video: Train and compare models.

Deploy models and applications

MLRun rapidly deploys and manages production-grade real-time or batch application pipelines using elastic and resilient serverless functions. MLRun addresses the entire ML application: intercepting application/user requests, running data processing tasks, inferencing using one or more models, driving actions, and integrating with the application logic.

Docs: Deploy models and applications, Realtime Pipelines, Batch Inference Tutorials: Realtime Serving, Batch Inference, Advanced Pipeline Video: Serving pre-trained models.

Model Monitoring

Observability is built into the different MLRun objects (data, functions, jobs, models, pipelines, etc.), eliminating the need for complex integrations and code instrumentation. With MLRun, you can observe the application/model resource usage and model behavior (drift, performance, etc.), define custom app metrics, and trigger alerts or retraining jobs.

Docs: Model monitoring, Model Monitoring Overview Tutorials: Model Monitoring & Drift Detection.

MLRun core components

mlrun-core


MLRun includes the following major components:

Project Management: A service (API, SDK, DB, UI) that manages the different project assets (data, functions, jobs, workflows, secrets, etc.) and provides central control and metadata layer.

Functions: automatically deployed software package with one or more methods and runtime-specific attributes (such as image, libraries, command, arguments, resources, etc.).

Data & Artifacts: Glueless connectivity to various data sources, metadata management, catalog, and versioning for structures/unstructured artifacts.

Batch Runs & Workflows: Execute one or more functions with specific parameters and collect, track, and compare all their results and artifacts.

Real-Time Serving Pipeline: Rapid deployment of scalable data and ML pipelines using real-time serverless technology, including API handling, data preparation/enrichment, model serving, ensembles, driving and measuring actions, etc.

Model monitoring: monitors data, models, resources, and production components and provides a feedback loop for exploring production data, identifying drift, alerting on anomalies or data quality issues, triggering retraining jobs, measuring business impact, etc.

Alerts and notifications: Use alerts to identify and inform you of possible problem situations. Use notifications to report status on runs and pipelines.

Feature Store: automatically collects, prepares, catalogs, and serves production data features for development (offline) and real-time (online) deployment using minimal engineering effort.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc