Giter Club home page Giter Club logo

tfx-kubeflow-pipelines's Introduction

TFX Kubeflow pipelines

Kubeflow pipelines built on top of Tensorflow TFX library

General info

This repository contains machine learning pipelines based on Tensorflow TFX library. Every pipeline is designed to be published on a Kubernetes/Kubeflow cluster on premise.

Each folder contains needed code and data for the Kubeflow Pipeline, plus a README that includes:

  • pipeline general information
  • specific data handling about pipeline on premise
  • interactive notebooks instructions
  • build and launch procedure

Further pipelines are welcome via pull request.

Pipelines:

  • iris - Complete pipeline for a simple (Keras) model on IRIS dataset.
  • cifar-10 - Complete pipeline for a CNN model on CIFAR-10 dataset [NEEDS UPDATE].
  • inat-2019 - Complete pipeline for a MobilenetV2 model on iNaturalist 2019 dataset [NEEDS UPDATE].

TFX Custom image

Pipelines are actually using custom TFX images containing NVIDIA drivers for GPU usage from tfx-nvidia-gpu

Prerequisites

Here some prerequisites needed to deploy this repo.

Platform versions

  • Kubeflow version >=1.0
  • Tensorflow >=2.1.0
  • Tensorflow TFX ==0.21.1

Kubernetes cluster

A PersistentVolumeClaim called tfx-pvc is needed so the cluster should have one ready before dropping the pipelines.

Here an example of a 100Gb claim with a local-path storageClass onboard.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: tfx-pvc
  namespace: kubeflow
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: local-path
  resources:
    requests:
      storage: 100Gi

Utils files deployment

Cloning this repository into the root of the tfx PersistentVolume is needed before starting any pipeline.

Local development and building

Some python libraries are needed. Install them with:

pip install -r requirements.txt

requirements.txt file is on root of this repo.

Useful links

tfx-kubeflow-pipelines's People

Contributors

dependabot[bot] avatar valeriano-manassero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tfx-kubeflow-pipelines's Issues

Utils.py file..

Hey I would like to use your inat example. Is there any detailed documentation for the util.py file..

How to get the tfrecord document?

Hi, Sir. I am trying to run your pipeline cifar-10 interactive.ipynb. But using my tfrecord documents, the code can't work. I transform img into bytes form and label into int64 form. So I want to ask how to get the tfrecord document. Please help me. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.