liveBook · Manning

Framework

As explained in Machine Learning System Design

Software that provides reusable infrastructure for configuring and executing machine-learning model training.

A framework provides reusable infrastructure for configuring and executing machine-learning work. Training and inference often favor different priorities: research needs flexibility and simplicity, while production serving needs performance, stability, and long-term maintainability. section 15.3.1

Choose a framework strategy by weighing these practical options:

  • Use separate training and inference frameworks when research tools such as Pandas, scikit-learn, or Keras would constrain production serving. section 15.3.1
  • Decouple the two pipelines so a future training-framework change does not disrupt an inference system expected to operate for years. section 15.3.1
  • Use a unified approach when appropriate; Torch 2.0 compilation can produce an optimized inference pipeline from training and experiment code. section 15.3.1
  • Use ONNX as an interframework format when conversion, portability, runtime support, and optimization matter. section 15.3.1

A production-oriented split

A team can train with a flexible research framework, convert the model to ONNX, and serve it through ONNX Runtime with backend-specific optimizations. section 15.3.1

Figure 15.3 A wide spectrum of tools with their focus on either research or production serving goals
figure

Use the spectrum to compare tools by their emphasis on research flexibility or production serving. section 15.3.1

How Machine Learning System Design covers it

How deep it goes
Compares framework strategies, decoupling, compilation, conversion, runtime support, and optimization without detailing implementation procedures.
Examples
Uses Pandas, scikit-learn, Keras, Torch 2.0, ONNX, and ONNX Runtime as contrasting framework and ecosystem examples.
What you can do after
Evaluate framework architectures by balancing research convenience, inference performance, portability, and long-term operational independence.
How it connects
Links training frameworks with inference frameworks, model conversion, ONNX, ONNX Runtime, and production serving.

Also explained in

Compare how 5 books explain framework →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.