INNER CODE UNIT · Python

mixer

allenai/dolma · python/dolma/__init__.py:43

def mixer(config: dict):
    """
    Run the mixer with the given configuration.

    Args:
        config (dict): A dictionary containing the configuration parameters for the mixer.

    Raises:
        DolmaRustPipelineError: If an error occurs while running the mixer.
    """
    try:
        _dolma.mixer_entrypoint(json.dumps(config))
    except RuntimeError as e:
        raise DolmaRustPipelineError(f"Error running mixer: {e}") from e

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…