Skip to main content
Fine-tune nori-1-5 as a Kubernetes Job and serve it as a Deployment, with your tables in an S3-compatible object store.

Before you start

1

Get access

Email support@synthefy.com for the training and serving images, the synthefy-kubernetes wheel, the nori-kubernetes Helm chart and the released nori-1-5 archive.
2

Check the cluster

Kubernetes 1.29 or later, with GPU nodes running the NVIDIA device plugin. One 24 GB GPU, such as an A10G or an L4, is enough.
3

Push the images

Push both images to a registry your cluster pulls from, and note their digests.
4

Create a bucket

Your pods and the machine running your code must both reach it. Your code finds the store’s keys the way boto3 does, for example in AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
5

Install the client

Set up a namespace

The chart creates a service account and a Role for the group you name. It creates nothing outside the namespace.

Fine-tune

Upload your table to the bucket as Parquet, with the target as a column. The table rules match SageMaker’s.
If your pods reach the store at another address than your code does, as with a store inside the cluster, pass the pods’ address as cluster_endpoint_url. get_status, get_logs, get_training_report, stop and resume work as on SageMaker.

Deploy and predict

From outside the cluster, forward a port to the endpoint:
Inside the cluster, leave base_url out. tuner.scale_endpoint(endpoint, 0) frees the endpoint’s GPUs, and tuner.undeploy(endpoint) removes it.

Serve nori-1-5 without fine-tuning

Copy the released archive to your bucket and deploy it. Its Service is named nori; forward a port to it as above.

Isolate jobs and endpoints

Give the store’s address as network_peers, and every job and endpoint gets a NetworkPolicy that allows only the store and DNS. Your network plugin must enforce NetworkPolicy.
Pass it to the tuner as object_store.
  • Store inside the cluster. A policy matches pods, not a Service’s address. Name the store’s pods with a podSelector and, outside the namespace, a namespaceSelector. If they listen on another port than their Service, give it as network_ports.
  • Node-local DNS cache. Pass its address as dns_peers, for example [{"ipBlock": {"cidr": "169.254.20.10/32"}}]. Otherwise names do not resolve inside the policy.

Run without internet

Ask support for the offline bundle: the images, the wheels and the released archive in one folder.

Next steps

Python Client

The options predict takes, and what it returns.

Fine-Tuning on Amazon SageMaker

Table rules, hyperparameters and the training report.