MARK LIU

Dr. Mark Liu is a tenured finance professor and the (founding) director of the Master of Science in Finance program at the University of Kentucky. He is the author of two books: Make Python Talk (No Starch Press, 2021) and Machine Learning, Animated (CRC Press, 2023). Mark has more than 20 years of coding experience. He obtained his PhD in finance from Boston College. Mark has published his research in top finance journals such as the Journal of Financial Economics, the Journal of Financial and Quantitative Analysis, and the Journal of Corporate Finance.

books & videos by MARK LIU

Learn Generative AI with PyTorch Video Edition

Learn Generative AI with PyTorch introduces the underlying mechanics of generative AI by helping you build your own working AI models. You’ll begin by creating simple images using a GAN, and then progress to writing a language translation transformer line-by-line. As you work through the fun and fascinating projects, you’ll train models to create anime images, write like Hemingway, make music like Mozart, and more. You just need Python and a few machine learning basics to get started. You’ll learn the rest as you go!

Build a Text-to-Image Generator (from Scratch)

  • December 2025
  • ISBN 9781633435421
  • 360 pages
  • printed in black & white
print book available Dec 17, 2025
ePub + liveBook available Dec 17, 2025

Build a Text-to-Image Generator (from Scratch) explores both transformer-based image generation and diffusion models. You’ll work hands-on to build a pair of simple generation models that can classify images, automatically add captions, reconstruct images, and enhance existing graphics. Author Mark Liu guides you every step of the way with clear explanations, informative diagrams, and eye-opening examples you can build on your own laptop.

Learn Generative AI with PyTorch

  • October 2024
  • ISBN 9781633436466
  • 432 pages
  • printed in black & white

Learn Generative AI with PyTorch introduces the underlying mechanics of generative AI by helping you build your own working AI models. You’ll begin by creating simple images using a GAN, and then progress to writing a language translation transformer line-by-line. As you work through the fun and fascinating projects, you’ll train models to create anime images, write like Hemingway, make music like Mozart, and more. You just need Python and a few machine learning basics to get started. You’ll learn the rest as you go!