Coder Social home page Coder Social logo

labfunctions / labfunctions Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 1.31 MB

LabFunctions is a library and a service that allows you to run parametrized notebooks on demand

License: Mozilla Public License 2.0

Makefile 1.30% Python 95.48% Jinja 1.33% Mako 0.08% Shell 0.76% Jupyter Notebook 0.31% HCL 0.73%
docker jupyter python

labfunctions's Introduction

LabFunctions

labfunctions readthedocs PyPI - Version PyPI - Format PyPI - Status Docker last codecov

“I’m a scientist; because I invent, transform, create, and destroy for a living, and when I don’t like something about the world, I change it.” — Pickle Rick

Description

LabFunctions is a set of tools (libraries and services) that allows you to work locally exploring data, building machine learning models and then executing them in production without changing any code. From EDA to Prod in one push of code.

It was thought to empower different data roles to put notebooks into production whatever they do, this notebooks could be models, ETL process, crawlers, etc. This way of working should allow going backward and foreward in the process of building data products.

Although this tool allow different workflows in a data project, we propose this one as an example: Workflow

+ Info

Status

⚠️ Although the project is considered stable please keep in mind that LabFunctions is still under active development and therefore full backward compatibility is not guaranteed before reaching v1.0.0., APIS could change.

Roadmap

Next generation 0.10

Working on the next generation of LabFunctions. It will allow other kinds of semantics like for instance attaching volumes to Jobs, or scheduling pods in a K8S platform.

State tunned: NextGen

The development of new features and refactoring will happen in a new long-lived branch called nextgen-010, keeping the main branch only for patches to the version 0.9

Features

Some features can be used standalone, and others depend on each other.

Feature Status Note
Notebook execution Stable -
Workflow scheduling Beta This allow to schedule: every hour, every day, etc
Build Runtimes Beta Build OCI compliance continers (Docker) and store it.
Runtimes templates Stable Genereate Dockerfile based on templates
Create and destroy servers Alpha Create and delete Machines in different cloud providers
GPU Support Stable Allows to run workloads that requires GPU
Execution History Alpha Track notebooks & workflows executions
Google Cloud support Beta Support google store and google cloud as provider
Secrets managment Alpha Encrypt and manager private data in a project
Project Managment Alpha Match each git repostiroy to a project

Cluster options

It is possible to run different cluster configurations with custom auto scalling policies

GPU CLUSTER DEMO

Instances inside a cluster could be created manually or automatically

See a simple demo of a gpu cluster creation

https://www.youtube.com/watch?v=-R7lJ4dGI9s

🏣 Architecture

labfunctions architecture

📑 References & inspirations

Contributing

Bug reports and pull requests are welcome on GitHub at the issues page. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Please refer to this document for more details about our current governance model and formal committers group.

History

Labfunctions was initially developed by Xavier Petit in the context of the needs of algorinfo.com and inspired by the following posts: Netflix and Maintainable and collaborative pipelines, during the second half of 2021.

The common cycle of work before the idea of labfunctions was to start exploring and prototyping models and processes in Jupyter Notebooks and then migrate those notebooks to packages and modules in python, finally the code was deployed as containers into production.

At that time the problem to solve was to reduce the step required from notebooks to production, then labfunctions emerge first as a module in the context of dataproc using Sanic, RQ and Papermill as main libraries to orchestrate and execute notebooks as workflows.

In 2022 Xavier Petit started working as a freelancer in DymaxionLabs. They have a similar problem to be solved, but with two extra requirements: notebooks should be reproducible, and workloads usually require GPU hardware that should be provisioned on demand. With those two needs in mind, labfunctions was born adding: the idea of a “project” which match to a Git Repository, the builds of docker containers (called runtimes in labfunctions) and the option to create servers on demand, each step with GPU support.

License

This project is licensed under MPL 2.0 see: LICENSE.txt.

labfunctions's People

Contributors

lucasmiguelmac avatar munshkr avatar nuxion avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

dymaxionlabs

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.