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.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: genaibook-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 844de4ff16c3de8e8fe5303c8465307da8d9b479a03ddd0c8c1fea5d5cc1e728
MD5 f556367442428268189b0975ad4155da
BLAKE2b-256 250df8f67081acc5d4754c65e997c98ad3c34aa418cbdb5f5d136478109c30b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: genaibook-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63ac18682d8fedc7ab0fc037f846b6ce6bd909b178827d5396632ef779e05f38
MD5 6850384955ffb3ef0a63d0b07f481f47
BLAKE2b-256 1c1ef7b6cf260595f484a35a95b6607951aabc45185ff0c17028165b03ad9115

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