pdfcoffee
Chapter 12TFX uses the open source Apache Beam to implement data-parallel pipelines.Optionally TFX allows Apache Airflow and Kubeflow for easy configuration,operation, monitoring, and maintenance of the ML pipeline. Once the model isdeveloped and trained, using TFX you can deploy it to one or more deploymenttarget(s) where it will receive inference requests. TFX supports deployment tothree classes of deployment targets: TensorFlow Serving (works with REST orgRPC interface), TensorFlow.js (for browser applications), and TensorFlow Lite(for native mobile and IoT applications). Trained models that have been exported asSavedModels can be deployed to any or all of these deployment targets.TensorFlow EnterpriseTensorFlow Enterprise is the latest offering from Google that provides enterprisegradesupport, cloud-scale performance, and managed services. TensorFlowEnterprise has been launched as a beta version. Its aim is to accelerate softwaredevelopment and ensure the reliability of launched AI applications. It is fullyintegrated with Google Cloud and its services, and introduces some improvementsin the way TensorFlow Datasets reads data from Cloud Storage. TensorFlowEnterprise also introduces the BigQuery reader, which, as the name implies, allowsthe user to read data directly from BigQuery.In ML tasks, speed is critical, and one of the major bottlenecks is the speed at whichdata is accessed for the training process. TensorFlow Enterprise provides optimizedperformance and easy access to data sources, making it extremely efficient on GCP.SummaryIn this chapter we explored different cloud service providers who could providethe computing power necessary to train, evaluate, and deploy your deep learningmodels. We started by first understanding the types of cloud computing servicesavailable today. The chapter explored the Amazon, Google, and Microsoft IaaSservices for creating a virtual machine. The different infrastructure optionsavailable in each were discussed. Next, we moved to SaaS services, specificallyJupyter Notebook on cloud. The chapter covered the Amazon SageMaker, GoogleColaboratory, and Azure Notebooks. Just training a model is not sufficient;eventually we want to deploy it in a scalable manner. Thus, we delved intoTensorFlow Extended, which allows users to develop and deploy ML models ina scalable, safe, and secure manner. Lastly, we introduced TensorFlow Enterprise,the latest offering in the TensorFlow ecosystem, and briefly discussed its features.[ 459 ]
TensorFlow and CloudReferences1. To get a complete list of virtual machine types offered by Microsoft Azure:https://azure.microsoft.com/en-in/pricing/details/virtualmachines/series/2. A good tutorial on Amazon SageMaker: https://www.bmc.com/blogs/amazon-sagemaker/3. https://colab.research.google.com/notebooks/intro.ipynb#recent=true4. A collection of interesting Azure Notebooks: https://github.com/ipython/ipython/wiki/A-gallery-of-interesting-IPython-Notebooks5. Sculley, David, Gary Holt, Daniel Golovin, Eugene Davydov, Todd Phillips,Dietmar Ebner, Vinay Chaudhary, Michael Young, Jean-Francois Crespo, andDan Dennison. Hidden Technical Debt in Machine Learning Systems. In Advancesin neural information processing systems, pp. 2503-2511. 20156. TensorFlow Extended tutorials: https://www.tensorflow.org/tfx/tutorials7. Baylor, Denis, Eric Breck, Heng-Tze Cheng, Noah Fiedel, Chuan Yu Foo,Zakaria Haque, Salem Haykal et al. Tfx: A TensorFlow-Based Production-Scale Machine Learning Platform. In Proceedings of the 23rd ACM SIGKDDInternational Conference on Knowledge Discovery and Data Mining, pp. 1387-1395. ACM, 2017.8. A nice comparison between Google Colab and Azure Notebooks: https://dev.to/arpitgogia/azure-notebooks-vs-google-colab-from-anovices-perspective-3ijo9. TensorFlow Enterprise: https://cloud.google.com/blog/products/aimachine-learning/introducing-tensorflow-enterprise-supportedscalable-and-seamless-tensorflow-in-the-cloud[ 460 ]
- Page 444 and 445: Chapter 11And unlike unsupervised l
- Page 446 and 447: Chapter 11Normally, the value is de
- Page 448 and 449: Chapter 11• The next question tha
- Page 450 and 451: Chapter 11This neural network takes
- Page 452 and 453: Chapter 11The MuJoCo environment re
- Page 454 and 455: Chapter 11We will first import the
- Page 456 and 457: Chapter 11The αα is the learning
- Page 458 and 459: Chapter 11We set up the global valu
- Page 460 and 461: Chapter 11else:return np.argmax(sel
- Page 462 and 463: Chapter 11DQN to play a game of Ata
- Page 464 and 465: Chapter 11self.model.add( Conv2D(64
- Page 466 and 467: Chapter 11Here the action A was sel
- Page 468 and 469: Chapter 11Image source: https://arx
- Page 470 and 471: Chapter 11A neural network is used
- Page 472: Chapter 1111. Details regarding ins
- Page 475 and 476: TensorFlow and Cloud• Scalability
- Page 477 and 478: TensorFlow and Cloud• Azure DevOp
- Page 479 and 480: TensorFlow and Cloud• Lambda: The
- Page 481 and 482: TensorFlow and Cloud• Deep Learni
- Page 483 and 484: TensorFlow and CloudEC2 on AmazonTo
- Page 485 and 486: TensorFlow and CloudCompute Instanc
- Page 487 and 488: TensorFlow and CloudYou just share
- Page 489 and 490: TensorFlow and CloudIn case you req
- Page 491 and 492: TensorFlow and CloudIt starts with
- Page 493: TensorFlow and CloudTFX librariesTF
- Page 497 and 498: TensorFlow for Mobile and IoT and T
- Page 499 and 500: TensorFlow for Mobile and IoT and T
- Page 501 and 502: TensorFlow for Mobile and IoT and T
- Page 503 and 504: TensorFlow for Mobile and IoT and T
- Page 505 and 506: TensorFlow for Mobile and IoT and T
- Page 507 and 508: TensorFlow for Mobile and IoT and T
- Page 509 and 510: TensorFlow for Mobile and IoT and T
- Page 511 and 512: TensorFlow for Mobile and IoT and T
- Page 513 and 514: TensorFlow for Mobile and IoT and T
- Page 515 and 516: TensorFlow for Mobile and IoT and T
- Page 517 and 518: TensorFlow for Mobile and IoT and T
- Page 519 and 520: TensorFlow for Mobile and IoT and T
- Page 521 and 522: TensorFlow for Mobile and IoT and T
- Page 523 and 524: TensorFlow for Mobile and IoT and T
- Page 525 and 526: TensorFlow for Mobile and IoT and T
- Page 527 and 528: An introduction to AutoMLThat is pr
- Page 529 and 530: An introduction to AutoMLFeature co
- Page 531 and 532: An introduction to AutoMLThis Effic
- Page 533 and 534: An introduction to AutoMLGoogle Clo
- Page 535 and 536: An introduction to AutoMLThen, we c
- Page 537 and 538: An introduction to AutoMLOnce the d
- Page 539 and 540: An introduction to AutoMLIf your mo
- Page 541 and 542: An introduction to AutoMLClicking o
- Page 543 and 544: An introduction to AutoMLFigure 16:
Chapter 12
TFX uses the open source Apache Beam to implement data-parallel pipelines.
Optionally TFX allows Apache Airflow and Kubeflow for easy configuration,
operation, monitoring, and maintenance of the ML pipeline. Once the model is
developed and trained, using TFX you can deploy it to one or more deployment
target(s) where it will receive inference requests. TFX supports deployment to
three classes of deployment targets: TensorFlow Serving (works with REST or
gRPC interface), TensorFlow.js (for browser applications), and TensorFlow Lite
(for native mobile and IoT applications). Trained models that have been exported as
SavedModels can be deployed to any or all of these deployment targets.
TensorFlow Enterprise
TensorFlow Enterprise is the latest offering from Google that provides enterprisegrade
support, cloud-scale performance, and managed services. TensorFlow
Enterprise has been launched as a beta version. Its aim is to accelerate software
development and ensure the reliability of launched AI applications. It is fully
integrated with Google Cloud and its services, and introduces some improvements
in the way TensorFlow Datasets reads data from Cloud Storage. TensorFlow
Enterprise also introduces the BigQuery reader, which, as the name implies, allows
the user to read data directly from BigQuery.
In ML tasks, speed is critical, and one of the major bottlenecks is the speed at which
data is accessed for the training process. TensorFlow Enterprise provides optimized
performance and easy access to data sources, making it extremely efficient on GCP.
Summary
In this chapter we explored different cloud service providers who could provide
the computing power necessary to train, evaluate, and deploy your deep learning
models. We started by first understanding the types of cloud computing services
available today. The chapter explored the Amazon, Google, and Microsoft IaaS
services for creating a virtual machine. The different infrastructure options
available in each were discussed. Next, we moved to SaaS services, specifically
Jupyter Notebook on cloud. The chapter covered the Amazon SageMaker, Google
Colaboratory, and Azure Notebooks. Just training a model is not sufficient;
eventually we want to deploy it in a scalable manner. Thus, we delved into
TensorFlow Extended, which allows users to develop and deploy ML models in
a scalable, safe, and secure manner. Lastly, we introduced TensorFlow Enterprise,
the latest offering in the TensorFlow ecosystem, and briefly discussed its features.
[ 459 ]