Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

OLX Tech 7 min read How-to mediumAdept

Unlocking Flexibility in Configuration: The Power of Hydra

OLX centralized its Learning to Rank projects, which rank ads for search relevance across several business units, into a single repository and adopted Facebook's Hydra to manage the resulting configuration sprawl. Configs are organized into hierarchical groups (environment, model, target, input data) composed through defaults lists, so a model's parameters can be partly overridden without duplicating files. Command-line overrides use the +, ~ and ++ operators, and the Optuna sweeper with --multirun handles hyperparameter search, for example tuning CatBoost's learning_rate and n_estimators against NDCG.

Assumes: Python basicsYAML configurationHyperparameter tuning concepts

Related posts

  • Efficient Optimization With Ax, an Open Platform for Adaptive Experimentation

    Meta Engineering easyNovice

    Ax 1.0 is an open-source (MIT) adaptive experimentation platform that uses Bayesian optimization to tune expensive-to-evaluate systems with many interacting parameters. By default it fits a Gaussian process surrogate via BoTorch and picks the next configuration with an expected-improvement acquisition function, supporting multi-objective and constrained optimization over potentially hundreds of parameters. It also offers analyses such as Pareto frontiers and sensitivity analysis. At Meta, thousands of developers use it for hyperparameter and architecture search, recommender tuning, compiler and infrastructure flags, AR/VR hardware design, and even low-carbon concrete mixes.

  • Recommend API

    Slack Engineering mediumAdept

    Slack built a unified Recommend API so product teams can bootstrap new ML recommenders from reusable components (fetchers, filters, feature augmentation via a Feature Store, model scoring and rerankers) instead of building bespoke systems. Server-side feature logs and client-side interaction logs are joined in Airflow to produce training data, and models such as logistic regression and XGBoost are trained as Kubernetes Jobs and monitored with Prometheus, online CTR/DCG and feature-drift metrics. Hand-tuned heuristic models solve cold start until enough data exists, and privacy is preserved by using de-identified usage metadata and only cosine similarity from an external embedding model. A/B tests showed CTR gains such as +38.86% for Composer DMs and +123.57% for Slackbot leave suggestions after moving from hand-tuned to learned models.

  • Training Orchestrator: Unifying Model Training at Yelp

    Yelp Engineering mediumAdept

    Yelp's Training Orchestrator replaces per-team monolithic Spark training scripts with a declarative, configuration-driven framework. Pipelines are composed of typed steps whose dependencies form a DAG executed in topological order. Pydantic configs validate parameters and step input/output schemas up front, and injected Spark/MLflow context lets the same pipeline run locally, in Jupyter or in production. The payoff is local runs and unit-testable steps, config errors caught in seconds instead of hours into training, automatic MLflow logging of full configs for reproducibility, and swappable settings-plus-function pairs for reuse across batches.

  • Design Once, Deploy at Scale: Building a Template-Driven ML Ecosystem

    Meta Engineering easyNovice

    Meta standardized its fragmented ads ranking model fleet into a small set of Standard Model Templates (SMT). These are opinionated, composable bundles of architecture, feature logic, training settings and hardware-aware serving configs, so that new techniques are tuned once on representative models and propagated to every model on a template. Multi-model optimization weighs aggregate gain against regression rate, then validates on held-out models before a technique enters the next template version. Over two years this cut per-model engineering time by 92%, shipped 80 techniques across 5000+ technique-model combinations, and delivered 0.63% average offline quality gain at neutral serving capacity plus 0.86% cumulative online lift. The templates also give AI agents a bounded search space for automated model improvement.

  • Ranking Engineer Agent (REA): The Autonomous AI Agent Accelerating Meta’s Ads Ranking Innovation

    Meta Engineering easyNovice

    Meta's Ranking Engineer Agent (REA) runs ads ranking ML experiments end to end with little human involvement. It generates hypotheses, launches training jobs, debugs failures and iterates. A hibernate-and-wake mechanism lets it persist across multi-week training runs, and it draws hypotheses from a historical experiment insights database and a deep ML research agent. Engineers approve a GPU budget up front for a three-phase plan (validation, combination, exploitation), and a runbook of common failure patterns lets REA handle out-of-memory errors, loss explosions and infrastructure errors without escalating them. In its first rollout REA doubled average model accuracy over baseline across six models, and three engineers delivered launch proposals for eight models, work that previously took two engineers per model.

The quest for software engineering knowledge.

Look:
Layout: