Skip to main content

Fuego

Project description

fuego

A 🔥 tool for running code in the cloud

Note

This project is a WIP and just an idea right now. Under active development.

🤗 Suggestions/ideas/feedback from community are welcome! Please feel free to submit a new idea in the discussions tab.

The idea

A unified interface to view/manage runs, compute instances, data, etc. across your authenticated cloud providers.

Roadmap

Currently, this project only works for AzureML training runs. The idea is to support other cloud providers (AWS, GCP, etc.) and other run types (inference, data preparation, etc.) in the future.

  • Add AzureML Provider + ability to do basic training runs
  • Dataset upload
  • Ability to attach datasets to runs
  • Add Sagemaker Provider
  • Run from GitHub repos instead of local files?
  • Multi-GPU examples
  • Multi-Node examples

Installation

For now, you can install from source:

git clone https://github.com/huggingface/fuego.git
cd fuego
pip install -e ".[azureml]"

WIP API

The Python API and CLI should have very similar experiences so folks can use whichever they prefer.

Python

import fuego

fuego.run(
    # Fuego Run Args - these are the same across providers
    script='./examples/simple_example_with_requirements/run.py',
    provider='azureml',
    instance_type='cpu',
    instance_count=1,
    requirements_file='./examples/simple_example_with_requirements/requirements.txt',
    # Script kwargs - these are passed to the script as argparse args
    message='Howdy, world!',
)

CLI

fuego run \
    --provider azureml \
    --instance-type cpu \
    --instance-count 1 \
    --requirements-file ./examples/simple_example_with_requirements/requirements.txt \
    ./examples/simple_example_with_requirements/run.py \
    --message "'Howdy, world!'"

Project details


Download files

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

Source Distribution

fuego-0.0.6.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

fuego-0.0.6-py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 3

Supported by

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