Databricks Databricks ★ 61 5 min

How our AI Research team uses AI Runtime

EngineeringResearch

🔗 https://www.databricks.com/blog/how-our-ai-research-team-uses-ai-runtime

📌 Databricks 研究團隊怎麼靠自家 AI Runtime 撐住近兆參數訓練

TL;DR:Databricks AI 研究團隊用 AI Runtime 管理 GPU 健康、實驗追蹤與 agent 驅動研究,訓練任務量成長 8 倍。

當研究流程從「人類手動啟動每個實驗」變成「agent 自己決定下一步要跑什麼」,基礎設施要承受的就不再是人類的手速,而是機器一次喊出上百個任務的衝擊。Databricks 的 AI 研究團隊,正好把自家平臺當成應對這個轉變的工具。

🤔 從數十億到近一兆參數,研究規模早已超出手動管理的範圍

Databricks 的研究團隊負責開發支撐 Genie、Smart Routing、AI Functions(例如 ai_parse_document、ai_extract)背後的模型。要達到文章提到的「業界領先的文件解析品質」,團隊需要在不同架構、資料集、訓練技巧與超參數之間反覆試驗,橫跨數萬次訓練與評估執行;模型規模從數十億參數到接近一兆參數都有,訓練時依工作負載使用 NVIDIA H100 或 B300 GPU,其中最大型的訓練任務可能需要數百張 GPU 跑上好幾天到好幾週,並仰賴高頻寬網路維持訓練效率。

🧩 AI Runtime 扮演的角色:健康檢查、實驗追蹤與治理化資料存取

團隊從 AI Runtime(AIR)產品推出之初就是第一個使用者。AIR 會在訓練開始前對分配到的 GPU 節點做 preflight 健康檢查,訓練過程中持續監控 NCCL 通訊失敗、過熱或電力節流、GPU 驅動問題等狀況;一旦節點出狀況導致任務失敗,AIR 會偵測並把該節點隔離,避免後續任務再被排到同一臺故障機器上。文章提到,像 KARL 這類針對超過千億參數模型進行複雜 rollout 生成與後訓練的專案,可能需要動用數千個 GPU 小時,團隊因此不必反覆排查基礎設施故障,能把精力放回模型改進上。

透過 AIR CLI 與自訂 Docker 容器,團隊可以用程式化方式啟動工作負載、指定所需 GPU,並讓 AIR 處理排程與跨雲的高頻寬網路配置;本機開發用的容器映像檔可以直接拿來訓練,並透過 Databricks Artifact Registry 註冊、在不同實驗間共享,確保環境一致。實驗追蹤則交給 MLflow,AIR 會自動建立並管理對應的 MLflow 實驗,不需要額外設定,團隊可以直接監控任務狀態、串流並檢視訓練日誌、擷取指標,這些資訊同時也提供給 AI agent,讓它們判斷結果並決定下一步要嘗試什麼。所有研究資料存放在 Unity Catalog,透過 Unity Catalog FUSE mounting,團隊即使跨不同 Databricks workspace 工作,也能像存取本機檔案系統一樣使用這些資料,同時維持可追蹤、可共享與治理。

在 GPU 容量管理上,不同專案的資源需求差異很大,一個除錯實驗可能只需要幾張 GPU,一個大型訓練任務卻可能要佔用數百張 GPU 跑上好幾週;AIR 的工作負載優先權與 preemption 機制,讓團隊能依時效性分配資源,並在有閒置容量時(例如週末)用來支援額外的探索性實驗,而不影響優先度較高的工作。

📊 訓練任務量成長 8 倍

文章指出,在 AI Functions 相關的研究工作負載中,訓練任務的數量成長了 8 倍。這個成長被歸因於團隊逐漸把更多研究流程交給 agent 執行——讓 agent 提出改動、跑實驗、評估結果、決定下一步要嘗試什麼,形成一個持續循環。

💡 Autoresearch 把基礎設施的小毛病放大成瓶頸

文章提到,這種由 Andrej Karpathy 推廣開的「autoresearch」模式正在改變研究的進行方式。當一個人類研究者手動啟動少量實驗時,啟動速度慢一點、設定錯誤訊息不清楚,都還能忍受;但當 agent 一次launch 上百個實驗,同樣的問題會迅速變成瓶頸。因此 agent 驅動的研究,需要的是快速的任務啟動、程式化介面、清楚且可行動的錯誤訊息,以及穩定的執行與容易取得的訓練結果——這些原本服務人類研究員的基礎設施需求,在 agent 規模化之後被放大檢驗。

⚠️ 這是單一平臺供應商的自家案例分享

文章並未提供具體的成本、延遲改善數字,或是與其他訓練基礎設施方案的比較,內容也集中在 Databricks 自身平臺的使用經驗上,對其他組織或雲端環境的適用性沒有進一步討論。

🎯 實務啟示

如果團隊正在往 agent 驅動的研究流程邁進,這個案例提醒的重點是:基礎設施該優先投資的地方,往往不是模型本身,而是節點健康檢查自動化、GPU 資源的優先權與 preemption 機制、以及把實驗追蹤與資料治理整合進同一套工作流——因為一旦讓 agent 大量平行跑實驗,這些原本不起眼的基礎設施缺口,會是第一個被撞到的瓶頸。

🔗 來源

#Databricks #MLOps #AIInfrastructure #GPU #ReinforcementLearning #MLflow #AutoResearch #AgenticAI #ModelTraining #DataEngineering

原始資料 Databricks · 收集於 2026-10-16
來源原標題
How our AI Research team uses AI Runtime
機構
Databricks
原始標籤
Engineering · Research
原始連結
https://www.databricks.com/blog/how-our-ai-research-team-uses-ai-runtime

摘要原文

At Databricks, we continuously develop and evaluate new AI research techniques to make our products more intelligent, efficient, and useful for customers. Our research spans products like Genie, Smart Routing, and AI Functions. Recently, we've published how we made search 3x faster , developed new techniques for offline reinforcement learning , and pushed the frontier of complex document extraction . To build great AI models and manage hundreds of parallel research workstreams, we need infrastructure that can keep pace. That's why we use Databricks AI Runtime (AIR). In this post, we'll share how AIR helps us experiment quickly, scale to large training workloads, and adapt to agent-led training, along with what we've learned about managing GPU resources across research projects. Our research team develops models that power Databricks AI Functions , including ai_parse_document and ai_extract . For example, Databricks AI Functions deliver state-of-the-art document parsing quality , backed by models trained to understand enterprise documents. Achieving that quality requires extensive research across different architectures, datasets, training techniques, and hyperparameters, spanning tens of thousands of training and evaluation runs. We use supervised fine-tuning (SFT), offline reinforcement learning (RL), and online RL to train models ranging from a few billion parameters to nearly a trillion. Depending on the workload, we use NVIDIA H100 or B300 GPUs, both available through AIR. Our largest training runs can require hundreds of GPUs working together over days or weeks, with high-bandwidth networking to keep training efficient. Supporting these workloads creates three challenges: Our research team has been customer zero of AI Runtime since the product's inception last year. We use AIR to develop, train, and test models that power Databricks AI products, relying on its GPU infrastructure and integration with our existing tools. AIR performs preflight checks on assigned GPU nodes to ensure they're healthy and can communicate effectively before training starts. It also monitors node health during execution, detecting issues such as NCCL communication failures, thermal or power throttling, and GPU driver problems. If a node becomes unhealthy and causes a job to fail, AIR detects the issue and cordons off the affected node so subsequent jobs aren't scheduled on the same problematic infrastructure. This is especially important for projects like KARL, where complex rollout generation and post-training of models with more than 100 billion parameters can require thousands of GPU hours. Rather than repeatedly troubleshooting infrastructure failures, we can focus on improving our models. Fast iteration with the AIR CLI and custom containers Research requires us to change model configurations, training approaches, and code frequently. With the AIR CLI, we can launch workloads programmatically, specify the GPUs we need, and let AIR handle provisioning and scheduling, including high-bandwidth networking for distributed training across clouds. We also rely on custom Docker containers for local development. AIR lets us use those same images for training, ensuring compatibility without recreating our environments. We can upload our codebase, execute custom code in those containers, and use Databricks Artifact Registry to register and share images across experiments. AIR's investments in launch latency and container optimization help us start training jobs in seconds, shortening feedback loops as we test new ideas. MLflow and logging for experiment tracking We use MLflow to track our research experiments. AIR automatically creates and manages MLflow experiments for our training jobs, eliminating separate configuration. We can monitor job status, stream and inspect training logs, and retrieve metrics to understand how experiments are progressing. This also gives our AI agents access to the information they need to evaluate results and determine what to try next. Seamless, governed access to research data All of our research data is stored in Unity Catalog. Through Unity Catalog FUSE mounting, AIR lets us access that data as though it were part of a local filesystem, even when working across different Databricks workspaces. This keeps our data accessible, tracked, shareable, and governed without changing how our training code interacts with files. Combined with MLflow and our Docker-based environments, it gives us a consistent workflow from local development to distributed training. Managing GPU capacity across research projects Our workloads have very different resource needs. A debugging experiment may require only a few GPUs, while a large training run might need hundreds for days or weeks. Different projects also have competing timelines and priorities. AIR's workload prioritization and preemption capabilities help us allocate resources across projects, prioritize time-sensitive experiments, and use excess capacity when it's available. For example, spare capacity can support additional exploratory experiments over a weekend without disrupting higher-priority work. Our goal is to keep GPU resources available for the experiments that matter, without requiring researchers to manually coordinate infrastructure. Popularized by Andrej Karpathy, autoresearch is changing how we develop AI models. Instead of researchers manually launching and evaluating every experiment, we're increasingly using agents to propose changes, run experiments, evaluate results, and determine what to try next. This shift has dramatically increased our experimentation volume. Across our AI Functions research workloads, the number of training jobs has grown by 8x . As agents take on more of the research process, our infrastructure needs to keep up. A slow startup or confusing configuration error might be manageable when a researcher launches a handful of experiments. When agents launch hundreds, those same issues quickly become bottlenecks. Agent-driven research requires fast job launches, programmatic interfaces, clear and actionable errors, reliable execution, and accessible training results. Our autoresearch workflow follows a continuous cycle: AIR is particularly well suited to this workflow because agents can interact with it programmatically and benefit from its fast job launches, built-in reliability, and ability to scale. Through the Databricks CLI and databricks-air-skills , our agents can launch concurrent workloads, monitor job status, retrieve MLflow metrics, and iterate based on the results. This lets us run more experiments while our researchers focus on developing new ideas and improving model quality. As we move further toward agent-driven research, AIR gives us the infrastructure to support both larger models and a faster pace of experimentation. Our experience using AI Runtime has shown us how much reliable, flexible GPU infrastructure matters for research. From large-scale training and governed data access to agent-driven experimentation, AIR lets us spend less time managing infrastructure and more time developing better models. If you're training or fine-tuning your own models, check out the AI Runtime documentation to get started. AI Runtime has also powered our research across areas like faster search , reinforcement learning , and document understanding . Explore more of our work at Databricks AI Research , Subscribe to our blog and get the latest posts delivered to your inbox.

由 claude-code/sonnet 自動生成