Skip to main content

An open-source NLP framework that offers high-level wrappers designed for effortless launch, enhanced reproducibility, superior control, and unmatched flexibility for your experiments.

Project description

UrarTU 🦁

Harness the power of UrarTU, a versatile ML framework meticulously designed to provide intuitive abstractions of familiar pipeline components. With a .yaml file-based configuration system, and the added convenience of seamless Slurm job submission on clusters, UrarTU takes the complexity out of machine learning, so you can focus on what truly matters! 🚀

urartu_schema drawio

Installation

Getting Started with UrarTU is a Breeze! 🌀 Simply follow these steps to set up the essential packages and create a local package named 'urartu':

  • Clone the repository: git clone git@github.com:tmynn/urartu.git
  • Navigate to the project directory: cd urartu
  • Execute the magic command: pip install .

Adding a Dash of Convenience! 🎉 Once you've executed the previous command, you'll not only have UrarTU ready to roll, but we've also sprinkled in a touch of magic for you ✨. An alias will be conjured, granting you easy access to UrarTU from any directory within your operating system:

urartu --help

Note for Usage on Slurm System For an enhanced experience with the Slurm job cancellation process, it is recommended to utilize a specific fork of the submitit package available at: https://github.com/tmynn/submitit. This fork includes the ResumableSlurmJob.on_job_fail callback, which allows the incorporation of additional functionality within this callback to ensure a graceful job termination.

Example Usage

Running an action with UrarTU is as easy as waving a wand. Just provide the name of the configuration file containing the action, followed by the action name itself. 🪄 For instance, let's say you want to ignite the example action – an action that's a bit shy on functionality for now.

Simply execute the following command in your terminal:

urartu action_config=example

Exploring the Experiments

Unveiling Insights with Ease! 🔍 UrarTU, pairs up with Aim, a remarkable open-source AI metadata tracker designed to be both intuitive and potent. To dive into the wealth of metrics that Aim effortlessly captures, simply follow these steps:

  • Navigate to the directory housing the .aim repository.
  • Execute the command that sparks the magic:
aim up

Behold as your experiments come to life with clarity and depth! Aim brings your data to the forefront, and with it, the power to make informed decisions and chart new territories in the realm of machine learning. 📈

Navigating the UrarTU Architecture

Within UrarTU lies a well-organized structure that simplifies your interaction with machine learning components.

Configs: Tailoring Your Setup

The default configs which shape the way of configs are defined under urartu/config directory:

  • urartu/config/main.yaml: This core configuration file sets the foundation for default settings, covering all available keys within the system.
  • urartu/config/action_config Directory: A designated space for specific action configurations.

Crafting Customizations

Tailoring configurations to your needs is a breeze with UrarTU. You have two flexible options:

  1. Custom Config Files: To simplify configuration adjustments, UrarTU provides a dedicated configs directory where you can store personalized configuration files. These files seamlessly integrate with Hydra's search path. The directory structure mirrors that of urartu/config. You can define project-specific configurations in specially named files. For instance, an example.yaml file within the configs directory can house all the configurations specific to your 'example' project, with customized settings.

    • Personalized User Configs: To further tailor configurations for individual users, create a directory named configs_{username} at the same level as the configs directory, where {username} represents your operating system username. The beauty of this approach is that there are no additional steps required. Your customizations will smoothly load and override the default configurations, ensuring a seamless and hassle-free experience. ✨

    The order of precedence for configuration overrides is as follows: urartu/config, configs, configs_{username}, giving priority to user-specific configurations.

  2. CLI Approach: For those who prefer a command-line interface (CLI) approach, UrarTU offers a convenient method. You can enhance your commands with specific key-value pairs directly in the CLI. For example, modifying your working directory path is as simple as:

    urartu action_config=example action_config.workdir=PATH_TO_WORKDIR
    

Choose the method that suits your workflow best and enjoy the flexibility UrarTU provides for crafting custom configurations.

Actions: Shaping Functionality

Central to UrarTU's architecture is the Action class. This foundational script governs all actions and their behavior. From loading CLI arguments to orchestrating the main function of a chosen action, the action_name parameter plays the pivotal role in this functionality.

Effortless Launch

With UrarTU, launching actions becomes a breeze, offering you two distinctive pathways. 🚀

  • Local Marvel: The first route lets you run jobs on your local machine – the very platform where the script takes flight.
  • Cluster Voyage: The second option invites you to embark on a journey to the slurm cluster. By setting the slurm.use_slurm configuration in config/main.yaml which takes boolean values, you can toggle between these options effortlessly.

Experience the freedom to choose your launch adventure, tailored to your needs and aspirations!

And just like that, you're all set to embark on your machine learning journey with UrarTU! 🌟 If you run into any hiccups along the way or have any suggestions, don't hesitate to open an issue for assistance.

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

urartu-2.0.12.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

urartu-2.0.12-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file urartu-2.0.12.tar.gz.

File metadata

  • Download URL: urartu-2.0.12.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for urartu-2.0.12.tar.gz
Algorithm Hash digest
SHA256 4a141039c4931767e53400b9aaf48e3952042745386ade552455f1e55e317236
MD5 53fdbfc5314ade52881fb31fb5bd49f9
BLAKE2b-256 6ce1fa25f7082c90d5b8f3b5735ba9bf566fb5b5ba7dea309aacd92df7a601b5

See more details on using hashes here.

File details

Details for the file urartu-2.0.12-py3-none-any.whl.

File metadata

  • Download URL: urartu-2.0.12-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for urartu-2.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f21bd05438805324e879a4c3ad9387dbb112721f72d7014bc888cee7c3f94355
MD5 6ed299d5d2abca726e034e19f6501e64
BLAKE2b-256 b9e2e3de6872511b971a00d4d8d0e7c350934dd66f331b580a08996879923f76

See more details on using hashes here.

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