Skip to content
Waves of fine lines in blue and cyan light, rising inside a ring.

Model development

Model development: build and serve models on the same cluster as your data.

Jupyter, Spark, MLflow and GPU node pools on the Kubernetes you already run. Train on the tables you already govern, keep every experiment, and serve a model as a warm Spark session over REST.

2.9 s.
Not 38.3 s.

The same Spark calculation, five runs each on a two-node cluster with 8 vCPU.

A new Spark jobpods start for every request

POST /api/v1/job/submit

38.3 s

A call to a warm sessionthe driver is already running

POST /api/v1/group/{groupId}/job/execute

2.9 s

five runs, the median marked.2.9 s for a warm Spark session to answer a request over REST, the way a served model is called

What does model development on a lakehouse mean?

It means building, training and serving models on the same platform that holds the data. Notebooks, Spark jobs and the model registry read the same Iceberg, Delta or Hudi tables, so features come from governed data and results stay traceable.

Show
  1. Data scientists copy samples to a laptop because the training environment cannot read the lakehouse tables directly.

    Jupyter runs inside the cluster with Spark kernels and Sparkmagic, and reads lakehouse tables directly.

  2. Training needs more memory or a GPU than one notebook server has.

    Training runs on Spark executors, with GPU node pools where they help. Executors scale with the cluster.

  3. Experiments live in personal folders, and nobody can say which parameters produced the model in production.

    Every run is in MLflow: parameters, metrics, artifacts and the model version that went live.

  4. Models are handed to another team to be rewritten for serving.

    A registered model answers over REST from a warm Spark session, with logs, metrics and lineage next to the rest of the platform.

  5. Work with large language models has to run on your own infrastructure, next to the documents it reads.

    Fine-tuning, retrieval-augmented generation and batch inference run as jobs and sessions on the same cluster.

From a table to a prediction.

The road a model takes on Ilum, from a table of the catalog to a call that answers. Drag the marker along it or press a station. Each station shows the part of Ilum that does the work, the line of code that sends the work on, and where things are kept.

Table

The data starts as a table of the catalog. This one has a row for every customer of a bank who paid by card: 691 thousand rows in 10 columns, written by a Spark job.

customer_id customer_state segment payments_90d spend_90d_usd avg_ticket_usd international_share_pct last_payment_at high_risk_payments top_category

Does the work

  • ilum-hive-metastoreup after a plain install

    The catalog. It knows the table's name, its fields and where its files are. Thrift on port 9083.

  • ilum-minioup after a plain install

    Object storage with an S3 API. It holds the files of the table.

  • ilum-coreup after a plain install

    Gives every job and session on a cluster the settings of the metastore that cluster names.

Sends it on

spark.table("bank_gold.customer_360")

in a %%spark cell of a notebook

over thrift://ilum-hive-metastore:9083

The session asks the catalog where the table is and reads its files itself, so the name alone is enough.

Kept

Rows
Parquet files under s3a://ilum-data/bank_gold.db/customer_360
Name, fields, location
in the Hive Metastore, whose database is metastore on ilum-postgresql

Notebook

Jupyter sends every %%spark cell to a Spark session. The code of a cell runs in the session's driver, and the work Spark spreads runs on its executors.

Does the work

  • ilum-jupyterup after a plain install

    Jupyter with Sparkmagic. It sends the cells to http://ilum-core:9888.

  • ilum-coreup after a plain install

    Starts the session through its Livy API and hands it each cell.

  • a Spark sessionpods while it works

    A driver and its executors, for as long as the session lives. The MLflow notebook runs it on the image ilum/spark:3.5.3-mlflow, which has the MLflow client.

Sends it on

mlflow.set_tracking_uri("http://ilum-mlflow-tracking:5000/")

in a %%spark cell of mlflow/1_MLflow_intro.ipynb

over http://ilum-mlflow-tracking:5000

The Service of the MLflow server in the namespace. The console opens MLflow through the same address.

Kept

The notebook
in /home/jovyan/work, a 4 Gi volume of ilum-jupyter that is a Git repository with its remote in Gitea
The session
nothing. Its pods go when it ends, so what should stay is written to a table or logged

Tracking

MLflow keeps the runs a notebook logs: their parameters, their metrics and the model files. It is a module of the chart, off until you switch it on.

Does the work

  • ilum-mlflow-trackinga module, off by default

    The MLflow tracking server and model registry, port 5000, opened from the console under Modules.

    --set mlflow.enabled=true or Install on the Modules page

  • Langfusea module, off by default

    For a language model: traces of prompts, completions and agent steps.

    --set langfuse.enabled=true --set clickhouse.enabled=true or Install on the Modules page, which adds ClickHouse

Sends it on

mlflow.sklearn.log_model(
    sk_model=randomized_search_cv.best_estimator_,
    artifact_path="best_estimator",
    signature=signature
)

in the run of mlflow/1_MLflow_intro.ipynb, after the metrics and parameters

over s3://ilum-mlflow

The server stores the files it is sent in this bucket and serves them back to whatever loads the model.

Kept

Runs, parameters, metrics
in the database mlflow on ilum-postgresql, the PostgreSQL of the release
Model files
in the bucket ilum-mlflow, written by the server
Traces of a language model
in Langfuse: the database langfuse, ClickHouse and the bucket ilum-langfuse

Model

The trained model is a folder of files in the bucket ilum-mlflow and a name in the registry. Every registration is a new version, and an alias says which version to use.

Does the work

  • MLflow registrya module, off by default

    Names, versions and aliases of models, in the same ilum-mlflow-tracking.

    --set mlflow.enabled=true or Install on the Modules page

  • ilum-minioup after a plain install

    Holds the bucket ilum-mlflow. The chart creates it on install, next to ilum-files, ilum-data and ilum-tables.

Sends it on

client.set_registered_model_alias(model_name, "champion", "1")

in mlflow/1_MLflow_intro.ipynb, once the version exists

over models:/{model_name}@champion

Whatever loads the model asks for it by name and alias. Point the alias at a new version and the next load gets it, with no change to the caller.

Kept

Model files
in s3://ilum-mlflow, under the run that logged them
Name, versions, alias
in the database mlflow

Service

An Ilum service is a Spark application that stays up. Each call hands your class the running SparkSession and the call's parameters. The class of the example loads the model by its alias and returns the prediction.

Does the work

  • ilum-coreup after a plain install

    REST API on port 9888. It passes each call to the driver of the service, which is already running, and keeps it as a request with its result under Workloads.

  • service-<groupId>-<hash>-driverpods while it works

    The driver and its executors, started once with the script mlflow_interactive.py. Its class loads the model with mlflow.sklearn.load_model(model_uri).

Sends it on

return f"Predicted wine quality: {predictions[0]}"

at the end of run() in mlflow_interactive.py

over POST http://ilum-core:9888/api/v1/group/{groupId}/job/execute

The caller posts the class, mlflow_interactive.PredictWineQualityJob, with the model_uri and the features. The string comes back as result in the HTTP response.

A call takes

2.9 smedian of a call to a service that is running

51.0 sthe first call, which starts the service

On a two-node cluster with 8 vCPU, for a call that runs a Spark aggregation. Loading a model adds its own time.

App

If you want one, a small web app puts the answer in front of people who do not call APIs. Streamlit is a module that runs one Python app as a pod of the namespace.

Does the work

  • streamlita module, off by default

    Port 8501, opened from the console under Modules. It runs the image ilum/streamlit-example unless you set your own. That app is a chat assistant that runs SQL through ilum-core.

    --set streamlit.enabled=true or Install on the Modules page

Sends it on

ILUM_BASE_PATH = "http://ilum-core:9888/api/v1"

in ilum.py of the app the module runs

Kept

Its own data
none. The app asks ilum-core and shows what comes back

Ilum's Jupyter comes with this code, in the two MLflow notebooks of work/mlflow: the first trains and registers a wine-quality model, the second serves it. More on how a notebook gets its Spark session and on why a running service answers fast.

What it is made of

Every piece is a module of the same Helm chart and shows up in the same UI. Nothing is a separate product.

Piece

Your Kubernetes cluster

The namespace of the release

  • ilum-jupyter
  • ilum-core
  • ilum-mlflow-trackingmodule
  • Airflowmodule
  • ilum-history-server
  • ilum-marquez
  • ilum-minio
  • a notebook’s session
  • a Spark job
  • a model’s service

CPU node pool

executors

GPU node pool, if you add one

executors
Your Kubernetes cluster: ilum-jupyter, ilum-core, ilum-mlflow-tracking, Airflow, ilum-history-server, ilum-marquez, ilum-minio, a notebook’s session, a Spark job, a model’s service, executors, executors.

How it works

From a question in a notebook to a model behind an endpoint, on one cluster, and back again.

Step

01Explore in a notebook

Open Jupyter, read the Silver or Gold tables with Spark SQL, sample and profile them. The notebook already runs with the cluster's credentials and catalog.

02Build features as a Spark job

Turn the notebook cells into a job that writes a feature table in Iceberg or Delta. Schedule it with Airflow so the features are as fresh as the source data.

03Train and log the run

Train with Spark MLlib or the Python framework you already use, on CPU executors or a GPU node pool. Log parameters, metrics and artifacts to MLflow and register the model.

04Serve from a warm session

Load the registered version into an interactive Spark session and call it over REST. Add executors as traffic grows. The endpoint stays the same.

05Monitor and retrain

Log predictions, compare them with outcomes, and schedule retraining. Register the challenger as a new version and switch the session to it when it wins.

Large language models on your own infrastructure

The same cluster carries generative work, next to the documents it reads.

How a session stays warm

Your cluster

Work
  1. Your data
  2. An open model
  3. LoRA or QLoRA on GPUs
  4. A version in MLflow

Fine-tune an open model with parameter-efficient methods such as LoRA or QLoRA on a GPU node pool. The training data never leaves your storage.

  1. Your documents
  2. Chunked and embedded by Spark jobs
  3. A vector database or a lakehouse table
  4. Retrieval in a session over REST

A pipeline like any other. With an embedding model you run yourself, the source documents never leave the lakehouse, which is the first requirement under GDPR or HIPAA.

  1. A prompt change
  2. The evaluation set
  3. Scores logged to MLflow
  4. An agent as a session

Prompt changes are experiments, so a better prompt is adopted for the same reason a better model is. Agents that call tools and plan steps are served the same way, as sessions with an endpoint. Langfuse, a module of the chart, keeps the traces of prompts, completions and agent steps.

Governance without a second platform

A model goes to production the way a table does: a named version, an alias the serving code loads, and the run behind it.

  • A named version

    An alias such as champion is what the serving code loads, and the job history is the audit trail.

  • Models run where the data is allowed to be

    On-premises, in a cloud, or both under one control plane. Nothing is sent to a vendor to be scored.

Registered model

dev.example.wine-quality-model

The alias champion points at

The serving code loads

models:/dev.example.wine-quality-model@champion

version 1version 2the same address, whichever version

Metrics
rmsemaer2
Parameters
alphal1_ratiorandom_stateElasticNet
Files
best_estimators3://ilum-mlflow

Checks you add, as jobs

  • fairness metrics across the protected attributes you define
  • feature importance with every version
  • outputs kept as tables that auditors can query

What you need to start

  1. 01

    A Kubernetes cluster

    Any conformant distribution, on-premises or in a cloud. Add a GPU node pool if you fine-tune or train deep models.

  2. 02

    Object storage and a catalog

    S3, MinIO, HDFS, Azure Blob or GCS for tables and artifacts. Hive Metastore, Nessie or Unity Catalog for the catalog.

  3. 03

    Your code

    PySpark, Spark MLlib or the Python framework you already use. Jupyter, MLflow and Airflow install as modules of the same Helm chart.

Jupyter is up after a plain install. MLflow and Airflow are modules you switch on.
helm repo add ilum https://charts.ilum.cloud
helm repo update
helm install ilum ilum/ilum \
	--set airflow.enabled=true \
	--set mlflow.enabled=true

Questions and answers

What is an enterprise AI platform?

An enterprise AI platform is the infrastructure and tooling for developing, deploying and managing models at scale: notebooks, training compute, experiment tracking, a model registry, serving, monitoring and governance in one place.

How does Ilum support generative AI deployment?

Ilum runs the infrastructure for it. Spark and Python workloads on Kubernetes, GPU node pools where fine-tuning needs them, Jupyter for development, MLflow for tracking and REST endpoints for serving. RAG pipelines, fine-tuning and prompt evaluation run as jobs and sessions like any other workload, with the same logs and monitoring.

What are AI agents and agentic systems?

AI agents are programs that plan, call tools and adapt to finish a task with little supervision. Agentic systems combine several specialized agents that work together to support a human workflow. On Ilum they are served like any other model: as a session with a REST endpoint, with its runs logged.

Model development

Start with a notebook on your cluster.

Install the Community edition, which starts Jupyter, add the MLflow module, and train on the tables you already have. When you want help with GPUs or serving, talk to an engineer.

Contact

Tell us about your cluster.

Name one workload you want to move.

Tell us where it runs today.

We answer with a plan, not a deck.

[email protected]

We reply within two working days.