Skip to content

jillnogold/tutorials

 
 

Repository files navigation

Welcome to the Iguazio AI Platform

An initial introduction to the Iguazio AI Platform and the platform tutorials

Platform Overview

The Iguazio AI Platform ("the platform") is a fully integrated and secure data science platform that powers operational and responsible (gen) AI pipelines. The platform incorporates the following components:

  • Data Management: Ensure data quality through data ingestion, transformation, cleansing, versioning, tagging, labeling, indexing and more.
  • Development and CI/CD: Train and customize LLMs and AI models with high-quality model fine-tuning, RAG, RAFT & more. Validate and deploy with CI/CD for AI/ML.
  • Deployment/Inference: Bring business value to live applications through a real-time application pipeline that handles requests, data, model and validations.
  • Monitoring & LiveOps: Continuously monitor AI applications to improve performance, address regulation needs, remove PII, mitigate bias and more.

Data science workflow

The platform components/capabilities used to implement the workflow are:

  • A data science workbench that includes integrated analytics engines, and Python packages. You can work with your favorite IDE (e.g. Pycharm, VScode, Jupyter, Colab, etc.). Read how to configure your client against the deployed MLRun server in Setting up your Environment.
  • The MLRun open-source orchestration framework for simplified management of your continuous ML and gen AI applications across their lifecycles
  • The Nuclio real-time serverless functions framework for model serving
  • Integration with third-party data sources such as Amazon S3, HDFS, SQL databases, and streaming or messaging protocols
  • Real-time dashboards based on Grafana


Self-service data science {{< product lc >}}

Data Science Workflow

The platform provides a complete data science workflow in a single ready-to-use platform that includes all the required building blocks for creating data science applications from research to production:

  • Collect, explore, and label data from various real-time or offline sources
  • Run gen AI and ML training and validation, at scale, over multiple CPUs and GPUs
  • Deploy models and applications into production with serverless functions
  • Log, monitor, and visualize all your data and services

The Tutorial Notebooks

The home directory of the platform's running-user directory (/User/<running user>) contains pre-deployed tutorial Jupyter notebooks with code samples and documentation to assist you in your development — including a demos directory with end-to-end use-case applications (see the next section).

Note:

  • To view and run the tutorials from the platform, use your IDE. See Setting up your Environment. (Alternatively, you can create a Jupyter Notebook service).
  • The welcome.ipynb notebook and main README.md file provide the same introduction in different formats.

Getting-Started Tutorial

Start out by running the getting-started tutorial to familiarize yourself with the platform and experience firsthand some of its main capabilities.

View tutorial

End-to-End Use-Case Application and How-To Demos

Iguazio provides full end-to-end use-case application and how-to demos that demonstrate how to use the platform, its MLRun service, and related tools to address data science requirements for different industries and implementations. These demos are available in the MLRun demos repository. Use the provided update-demos.sh script to get updated demos from this repository. By default, the script retrieves the files from the latest release that matches the version of the installed mlrun package (see Installing and Updating the MLRun Python Package). The files are copied to the /v3io/users/<username>/demos directory, where <username> is the name of the running user ($V3IO_USERNAME) unless you set the -u|--user flag to another username.

Note: Before running the script, close any open files in the demos directory.

# Get additional demos
!/User/update-demos.sh

For full usage instructions, run the script with the -h or --help flag:

!/User/update-demos.sh --help

End-to-End Use-Case Application Demos

Demo Description

View on GitHub
This demo showcases how to use LLMs to turn audio files, from call center conversations between customers and agents, into valuable data — all in a single workflow orchestrated by MLRun. MLRun automates the entire workflow, auto-scales resources as needed, and automatically logs and parses values between the different workflow steps.
Mask detection
Open locally

View on GitHub
This demo contains 3 notebooks where we: 1. Train and evaluate a model for detecting if a person is wearing a mask in an image by using Tensorflow.Keras or PyTorch.
2. Serve the model as a serverless function in a http endpoint.
3. Write an automatic pipeline where we download a dataset of images, train and evaluate the model, then optimize the model (using ONNX) and serve it.
Fraud Prevention - Iguazio Feature Store
Open locally

View on GitHub
Demonstrates the feature store usage for fraud prevention: Data ingestion & preparation; Model training & testing; Model serving; Building An Automated ML Pipeline.
News Article Summarization and Keyword Extraction via NLP
Open locally

View on GitHub
This demo creates an NLP pipeline that summarizes and extract keywords from a news article URL. We will be using state-of-the-art transformer models. such as BERT. to perform these NLP tasks. Additionally, we will use MLRun's real-time inference graphs to create the pipeline. This allows for easy containerization and deployment of the pipeline on top of a production-ready Kubernetes cluster.
NetOps Demo: Predictive Network Operations/Telemetry
Open locally

View on GitHub
This demo demonstrates how to build an automated machine-learning (ML) pipeline for predicting network outages based on network-device telemetry, also known as Network Operations (NetOps). The demo implements feature engineering, model training, testing, inference, and model monitoring (with concept-drift detection). The demo uses a offline/real-time metrics simulator to generate semi-random network telemetry data that is used across the pipeline.
Stocks Prediction
Open locally

View on GitHub
This demo illustrates using Iguazio's latest technologies and methods for model serving, the platform feature store, and the MLRun frameworks (sub-modules for the most commonly used machine and deep learning frameworks, providing features such as automatic logging, model management, and distributed training). The demo predicts stock prices, and it creates a Grafana dashbord for model analysis.

How-To Demos

Demo Description
How-To: Converting existing ML code to an MLRun project
Open locally

View on GitHub
Demonstrates how to convert existing ML code to an MLRun project. The demo implements an MLRun project for taxi ride-fare prediction based on a Kaggle notebook with an ML Python script that uses data from the New York City Taxi Fare Prediction competition.
How-To: Running a Spark job for reading a CSV file
Open locally

View on GitHub
Demonstrates how to run a Spark job that reads a CSV file and logs the data set to an MLRun database.
How-To: Running a Spark job for analyzing data
Open locally

View on GitHub
Demonstrates how to create and run a Spark job that generates a profile report from an Apache Spark DataFrame based on pandas profiling.
How-To: Running a Spark Job with Spark Operator
Open locally

View on GitHub
Demonstrates how to use Spark Operator to run a Spark job over Kubernetes with MLRun.

Installing and Updating the MLRun Python Package

The demo applications and many of the platform tutorials use MLRun — Iguazio's end-to-end open-source MLOps solution for managing and automating your entire analytics and machine-learning life cycle, from data ingestion through model development to full pipeline deployment in production. MLRun is available in the platform via a default (pre-deployed) shared platform service (mlrun). However, to use MLRun from Python code (such as in the demo and tutorial notebooks), you also need to install the MLRun Python package (mlrun). The version of the installed package must match the version of the platform's MLRun service and must be updated whenever the service's version is updated.

The platform provides an align_mlrun.sh script for simplifying the MLRun package installation and version synchronization with the MLRun service. The script is available in the running-user directory (your Jupyter home directory), which is accessible via the /User data mount. Use the following command to run this script for the initial package installation (after creating a new Jupyter Notebook service) and whenever the MLRun service is updated; (the command should be run for each Jupyter Notebook service):

!/User/align_mlrun.sh

Additional Platform Resources

You can find more information and resources in the MLRun documentation:
View the MLRun documentation

You might also find the following resources useful:

Miscellaneous

Creating Virtual Environments in Jupyter Notebook

A virtual environment is a named, isolated, working copy of Python that maintains its own files, directories, and paths so that you can work with specific versions of libraries or Python itself without affecting other Python projects. Virtual environments make it easy to cleanly separate projects and avoid problems with different dependencies and version requirements across components. See the virtual-env tutorial notebook for step-by-step instructions for using conda to create your own Python virtual environments, which will appear as custom kernels in Jupyter Notebook.

Updating the Tutorial Notebooks

You can use the provided igz-tutorials-get.sh script to get updated platform tutorials from the tutorials GitHub repository. By default, the script retrieves the files from the latest release that matches the current platform version. For details, see the update-tutorials.ipynb notebook.

The v3io Directory

The v3io directory that you see in the file browser of the Jupyter UI displays the contents of the v3io data mount for browsing the platform data containers. For information about the platform's data containers and how to reference data in these containers, see Data Containers.

Support

The Iguazio support team will be happy to assist with any questions.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 84.9%
  • Shell 15.1%