or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/yacs@0.1.x
tile.json

tessl/pypi-yacs

tessl install tessl/pypi-yacs@0.1.0

A lightweight library for defining and managing system configurations for scientific experimentation.

Agent Success

Agent success rate when using this tile

97%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.05x

Baseline

Agent success rate without this tile

92%

task.mdevals/scenario-7/

Configuration Profile Merger

A utility for merging multiple configuration profiles in experimental workflows, where different experiments share common base settings but have specific overrides.

Context

In research and experimentation settings, teams often maintain multiple configuration profiles (e.g., development, testing, production, or experiment-specific profiles) that need to be combined at runtime. This utility helps combine base configurations with experiment-specific overrides.

Capabilities

Creates base configuration

  • Creates a configuration with default SYSTEM, TRAIN, and MODEL settings @test

Merges configuration profiles

  • Given a base configuration with NUM_GPUS=8 and a profile with NUM_GPUS=4, merging results in NUM_GPUS=4 @test
  • Nested configuration sections are properly merged, e.g., profile overriding TRAIN.LEARNING_RATE preserves other TRAIN settings @test

Handles multiple profile merging

  • Multiple profiles can be merged sequentially into a base configuration @test

Implementation

@generates

API

def create_base_config():
    """
    Creates and returns a base configuration with default settings.

    Returns:
        Configuration object with base settings including:
        - SYSTEM settings (NUM_GPUS, NUM_WORKERS)
        - TRAIN settings (LEARNING_RATE, BATCH_SIZE)
        - MODEL settings (TYPE, LAYERS)
    """
    pass

def merge_profile(base_config, profile_config):
    """
    Merges a profile configuration into the base configuration.

    Args:
        base_config: Base configuration object
        profile_config: Profile configuration object to merge in

    Returns:
        The base configuration with profile settings merged in
    """
    pass

def merge_multiple_profiles(base_config, profile_configs):
    """
    Merges multiple profile configurations into the base configuration in order.

    Args:
        base_config: Base configuration object
        profile_configs: List of profile configuration objects to merge

    Returns:
        The base configuration with all profiles merged in sequence
    """
    pass

Dependencies { .dependencies }

yacs { .dependency }

Provides configuration management support.