Skip to main content

ML Inference 🥶

Project description

PyPI - Python Version Downloads GitHub

🧐 What is Nbox?

nbox provides first class support API for all NimbleBox.ai infrastructure (NBX-Build, Jobs, Deploy) and services (NBX-Workspaces) components. Write jobs using nbox.Operators

🤷Why NimbleBox

  • Write and execute code in Python
  • Document your code that supports mathematical equations
  • Create/Upload/Share notebooks
  • Import notebooks from your local machine
  • Import/Publish notebooks from/to GitHub
  • Import external datasets (e.g. from Kaggle)
  • Integrate PyTorch, TensorFlow, Keras, OpenCV
  • Share your projects
  • Collaborate with your team

🎚 Features

🏗️ Freedom To Build

Build Landing Page (2)

🦾 Automate with Ease

Jobs Landing Page

🚀 Intuitive Dashboard

Deploy Landing Page

🏁 Get Started

Install the package from pipy:

pip install nbox

For convinience you should add nbox to your path by setting up an alias. Throughout the rest of the documentation we will be using nbx as the CLI:

alias nbx="python3 -m nbox"

When loading nbox for the first time, it will prompt you the username and password and create a secrets file at ~/.nbx/secrets.json. This file then contains all the information that you don’t have to fetch manually again.

APIs

Our APIs are deep, user functions are kept to minimum and most relavant. This documentation contains the full spec of everything, but here’s all the APIs you need to know:

nbox
├── Model          # Framework agnostic Model
│   ├── __call__
│   ├── deploy
│   ├── train_on_instance (WIP)
│   └── train_on_jobs (WIP)
├── Operators      # How jobs are combinations of operators
│   ├── __call__
│   └── deploy
├── Jobs           # For controlling all your jobs
│   ├── logs       # stream logs right on your terminal
│   └── trigger    # manually trigger a job
└── Instance
   ├── __call__    # Run any command on the instance
   └── mv (WIP)    # Move files to and from NBX-Build

NBX-Jobs and NBX-Deploy

Create a simple folder:

nbx jobs new moonshot

Run any Batch Process

Add the following code to foobar.py:

from nbox import operator, Operator
from nbox.lib.shell import ShellCommand

# define your function and wrap it as an operator
@operator()
def foo(x: Dict):
  return "bar"

# or use OOPs like torch, etc.
class MyJob(Operator):
  def __init__(self):
    super().__init__()
    self.foo = foo
    self.shell = ShellCommand("echo 'hello {text}'")
  
  def forward(self):
    text = self.foo()
    self.shell(text = text)

How to get help?

Join our discord and someone from our community or engineering team will respond!

🔖Read our Blog.

🧩 License

The code in thist repo is licensed as Apache License 2.0. Please check for individual repositories for licenses.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nbox-0.10.6rc9.tar.gz (163.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nbox-0.10.6rc9-py3-none-any.whl (181.1 kB view details)

Uploaded Python 3

File details

Details for the file nbox-0.10.6rc9.tar.gz.

File metadata

  • Download URL: nbox-0.10.6rc9.tar.gz
  • Upload date:
  • Size: 163.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.1.0

File hashes

Hashes for nbox-0.10.6rc9.tar.gz
Algorithm Hash digest
SHA256 ad8bf2e1ade2803f5c99cc2dee8dc902576a4e23cdbce689a0f93f48b0970f1f
MD5 7dcc64b28cfc06c2420076fd3f65b505
BLAKE2b-256 81070287028eb1d2f3a3ce3e964d473996bef0876c71bbbbe5341202d8c55a90

See more details on using hashes here.

File details

Details for the file nbox-0.10.6rc9-py3-none-any.whl.

File metadata

  • Download URL: nbox-0.10.6rc9-py3-none-any.whl
  • Upload date:
  • Size: 181.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.1.0

File hashes

Hashes for nbox-0.10.6rc9-py3-none-any.whl
Algorithm Hash digest
SHA256 44e4ce0551c7e389183a8bb8bae9ebc55fa064221d3c93e05e38dd0f1e3ef070
MD5 6f7f5f5c98b80a4eb0e3da3311e84a6f
BLAKE2b-256 54aa82a6a1ee7a4388136b0513d9ce0f1a22d42db792a5251d61a23dd4e8a587

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page