When an AI Agent Runs the Model Factory: A Deep Dive into an Automated Machine Learning Pipeline

    This article looks at an experiment in which an AI agent named Horizon ran autonomously for seven weeks inside a coding agent environment, using a model hosting account and a weekly GPU quota. It covers how the agent chose small models, how it used download data to set priorities, where humans stepped in, and what engineering lessons the experiment suggests for building automated agent systems.

    1. From Using AI to AI Doing the Work: The Core Question

    Over the past few years, most developers have used large language models at the interaction level: writing code, editing documents, and looking up information. A more useful question is this: if you treat a model agent as a company employee, give it an account and a compute budget, and let it decide what to do, can it produce valuable work?

    A study conducted by research teams from several universities offers a useful answer. The teams built an agent called Horizon on a frontier reasoning model and ran it in a coding agent environment around the clock. It started with only an empty model hosting account and a compute quota of about 500 GPU hours per week. After seven weeks, the agent had produced 38 models, which together were downloaded about 55,000 times and integrated into more than 100 open-source projects.

    2. Why Small Models: Choosing the Right Product Position

    Looking closely at the 38 models, one pattern stands out: all of them have between 141 million and 568 million parameters. In an era when models with hundreds of billions of parameters are common, this group is very small.

    This was a deliberate choice, not a sign of limited capability. The agent’s project selection logic was practical. It repeatedly asked: Is there demand for this type of model in the community? Could it cover more languages or lower deployment costs? Can the available data and base models be reused? Can developers switch to it without changing their existing code?

    One representative output shows how this worked. It is a text punctuation model that supports 88 languages. Given a long meeting transcript with no punctuation, it splits the text into sentences and adds the missing punctuation. This need is real. Raw output from speech-to-text tools is often an unstructured block of text, and deploying a model in the hundred-megabyte range for post-processing adds almost no inference cost.

    This case shows the key product logic of the automated agent. Instead of building everything from scratch, the agent focused on a proven base model and repeatedly fine-tuned it for a specific task. This allowed it to produce specialized models for vertical use cases quickly.

    3. Workflow Breakdown: The Rhythm of a Careful Contractor

    The agent’s activity logs show that it behaved less like a researcher doing lab work and more like a careful contractor managing costs. Its workflow can be broken into four stages:

    1. Market sensing: The agent came online only at set times each day, averaging about 16 minutes of actual activity per day. Its main task was checking download numbers for each model.
    2. Priority decisions: The agent only invested further in projects with high download numbers and real user feedback. Models without feedback were shelved, and the agent did not spend extra time on them.
    3. Production: After selecting a topic, the agent started the training pipeline, covering data preparation, base model selection, fine-tuning, and evaluation. All of these steps were automated.
    4. Exception reporting: When the agent ran into tasks it could not handle, it created a ticket for a human to resolve.

    The fourth point deserves attention. Human involvement was concentrated in the first three days, when the team set up the infrastructure and calibrated the process. After that, the team stepped back completely and let the AI run the process alone. From an engineering standpoint, this leads to an important conclusion: the reliability of an agent system depends more on the quality of the initial scaffolding than on continuous human supervision.

    4. Reversed Roles: From Executors to Approvers

    The most interesting part of this experiment is the reversal of the organizational structure. The AI acted as the “boss,” while researchers at top universities took on tasks like a delivery crew.

    From a management perspective, this is a standard decision-execution layered architecture. The agent handled strategy, such as which models to build and how to allocate resources. Humans handled tasks in the physical world that the agent could not perform, such as approving accounts, investigating anomalies, and coordinating resources. This architecture offers three lessons for agent engineering:

    • Ticket-based escalation acts as a safety valve. Having the agent report issues beyond its capabilities is more controllable than giving it unrestricted authority.
    • Feedback signals set the direction. The agent used real download counts as its main KPI, which aligned its work with the goal that developers actually want to use the models. This helped avoid output that looked impressive but had no real use.
    • Dividing work into low-frequency decisions and high-frequency execution keeps the cost of human involvement very low.

    5. Reusable Engineering Methodology

    Beyond this specific case, the experiment produced a methodology that is useful for any team building automated agent systems:

    1. Hard resource constraints push toward rational decisions. The cap of 500 GPU hours per week led the agent to favor small models and reuse existing base models instead of wasting compute. This suggests that setting budget limits for an autonomous agent produces better results than giving it unlimited freedom.
    2. Evaluate with external metrics. Download counts are a reliable, objective measure. A model that nobody downloads is just inventory, no matter how well it was built. Agent evaluation systems should connect to real usage data instead of relying on self-reporting.
    3. Build pipelines instead of one-off deliverables. The 38 models were not 38 separate projects. They were 38 uses of the same fine-tuning pipeline. The real benefit of automation comes from reusable production assets.

    For developers who want to build a similar automated pipeline in the cloud, the core components typically include:

    • A task scheduling and state management service
    • Containerized orchestration for training compute
    • An automated release process for the model artifact repository
    • A monitoring and alerting system that continuously collects usage feedback

    Mainstream cloud platforms offer services in these categories, including container platforms, logging services, monitoring and alerting, and object storage. For specific products and configuration details, refer to the relevant official documentation.

    6. Conclusion: The AI Factory Is Just the Beginning

    Seven weeks, 38 models, and about 55,000 downloads. These numbers are not dramatic on their own. The more important point is the pattern. One agent, with very little human intervention, completed a full loop from topic selection to release, and its output passed a real market test.

    This experiment points to a clear direction. The value of an agent system lies not in how smart a single conversation is, but in whether it can keep making rational decisions under resource constraints, reuse production assets, and adjust its direction based on external feedback. As each stage of this kind of automated pipeline matures, “AI developing AI” may become the new normal in model engineering. For teams building agent applications, now is a good time to design decision logic, resource limits, and feedback loops into the system architecture.