(tutorials-all)=
# Tutorials and Examples

The following tutorials provide a hands-on introduction to using MLRun to implement a data science workflow and automate machine-learning operations (MLOps).

- [**Quick-start Tutorial**](./01-mlrun-basics.html) 
- [Gen AI tutorials](#gen--ai-tutorials)
- [**Machine learning tutorials**](#other-tutorial)
- [**End to End Demos**](#e2e-demos)

<iframe width="560" height="315" src="https://www.youtube.com/embed/xI8KVGLlj7Q" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe><br><br>

(quick-start-tutorial)=

````{card} Make sure you start with the Quick start tutorial to understand the basics
```{button-link} ./01-mlrun-basics.html
:color: primary
:shadow:
:expand:
:click-parent:
Introduction to MLRun - Use serverless functions to train and deploy models
```
````

```{toctree}
:maxdepth: 1
:hidden:
01-mlrun-basics
genai_01_basic_tutorial
ml-index
demos
/cheat-sheet
```

## Gen AI tutorials


`````{div}

````{grid} 3
:gutter: 2

```{grid-item-card} Deploy LLM using MLRun
:link: ./g01-llm.html
How to copy a dataset into your cluster, deploy an LLM in the cluster, and run your function.
```

````
`````

(other-tutorial)=
## Machine learning tutorials

Each of the following tutorials is a dedicated Jupyter notebook. You can download them by clicking the download icon <img src="../_static/images/icon-download.png">at the top of each page.


`````{div}

````{grid} 3
:gutter: 2

```{grid-item-card} Train, compare, and register Models
:link: ./02-model-training.html
Demo of training ML models, hyper-parameters, track and compare experiments, register and use the models.
```

```{grid-item-card} Serving pre-trained ML/DL models
:link: ./03-model-serving.html
How to deploy real-time serving pipelines with MLRun Serving and different types of pre-trained ML/DL models.
```

```{grid-item-card} Projects & automated ML pipeline
:link: ./04-pipeline.html
How to work with projects, source control (git), CI/CD, to easily build and deploy multi-stage ML pipelines.
```

```{grid-item-card} Real-time monitoring & drift detection
:link: ./05-model-monitoring.html
Demonstrate MLRun Serving pipelines, MLRun model monitoring, and automated drift detection.
```

```{grid-item-card} Add MLOps to existing code
:link: ./06-add-mlops-to-code.html
Turn a Kaggle research notebook to a production ML micro-service with minimal code changes using MLRun.
```

```{grid-item-card} Basic feature store example (stocks)
:link: ../feature-store/basic-demo.html
Understand MLRun feature store with a simple example: build, transform, and serve features in batch and in real-time.
```

```{grid-item-card} Batch inference and drift detection
:link: ./07-batch-infer.html
Use MLRun batch inference function (from MLRun Function Hub), run it as a batch job, and generate drift reports.
```

```{grid-item-card} Advanced real-time pipeline
:link: ../serving/graph-example.html
Demonstrates a multi-step online pipeline with data prep, ensemble, model serving, and post processing. 
```

```{grid-item-card} Feature store end-to-end demo
:link: ../feature-store/end-to-end-demo/index.html
Use the feature store with data ingestion, model training, model serving, and automated pipeline.
```

````
`````

(e2e-demos)=
## End to end demos

See more examples in the end-to-end demos:
- [How-To: Converting Existing ML Code to an MLRun Project](https://github.com/mlrun/demos/tree/master/howto) 
- [Mask Detection Demo](https://github.com/mlrun/demos/tree/master/mask-detection)
- [News Article Summarization and Keyword Extraction via NLP](https://github.com/mlrun/demos/tree/master/news-article-nlp)
- [Fraud Prevention - Iguazio Feature Store](https://github.com/mlrun/demos/tree/master/fraud-prevention-feature-store)
- [Stocks Prices Prediction Demo](https://github.com/mlrun/demos/tree/master/stocks-prediction)
- [Sagemaker demo](https://github.com/mlrun/demo-sagemaker)
- [Call center demo](https://github.com/mlrun/demo-call-center)

## Cheat sheet

If you already know the basics, use the [cheat sheet](../cheat-sheet.html) as a guide to typical use cases and their flows/SDK.

## Running the demos in Open Source MLRun

By default, these demos work with the online feature store, which is currently not part of the Open Source MLRun default deployment:
- fraud-prevention-feature-store 
- network-operations
- azureml_demo