Skip to main content

Utilities for 'Hands-On Generative AI with Transformers and Diffusion Models' (upcoming)

Project description

genaibook

This package contains some utilities to support O’Reilly book Hands-On Generative AI with Transformers and Diffusion Models (O’Reilly, amazon.com).

Setup

Code is an essential part of the book content, and we highly recommend to run the code examples while reading it. We also recommend to explore on your own by modifying the code snippets or creating your own!

This package will help you setup your environment and provides some basic utilities used throughout the book.

Hardware and Software Requirements

genaibook only requires Python 3.10 or better. Dealing with transformers and diffusion models is a compute-intensive task, so having access to a computer with a NVIDIA GPU will be needed. There are multiple online options that you can use such as Google Colaboratory and Kaggle Notebooks.

You can also run in a local environment if your computer has a NVIDIA GPU. Support for mps on Apple Silicon Macs is expected to work for the most part, but has not been tested in depth.

Local Environment

If you want to install in your computer, please install a Python 3.10 virtual environment using your preferred method. As an example, you can do it with conda like this:

conda create -n genaibook python=3.10
conda activate genaibook

Package Install

If you are using your own local environment, just run the following in a terminal window:

pip install genaibook

If you are using a notebook-based environment such as Google Colaboratory or Kaggle Notebooks, enter the following in the first cell of a new notebook:

!pip install genaibook

This will in turn install transformers, diffusers, PyTorch and other libraries used in the book.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genaibook-0.1.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

genaibook-0.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file genaibook-0.1.1.tar.gz.

File metadata

  • Download URL: genaibook-0.1.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for genaibook-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d65f90f5aca6468ab7c63a6aaf33e4342c41e1d6171a4b8423ede221fcf63607
MD5 68b947c7abb898ca804178cae568b5a7
BLAKE2b-256 84e9be1a1531d2ea33011e55459ce97e95dd27017ca61e665273e266935d4fd2

See more details on using hashes here.

File details

Details for the file genaibook-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: genaibook-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for genaibook-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e775fdae37ecbd76d859a9e7a3c01056efb9db71b1329d69042960319a906a39
MD5 a408a1791e3884d1a23d46b8a33b000b
BLAKE2b-256 5d9c3be29c4186e62f3def71f1d85d79dde5f92cfd2f6b03d837f3bb79d542ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page