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.
Metadata
Release files for genaibook 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genaibook-0.1.1.tar.gz | 13.5 kB | Without provenance | Details for genaibook-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genaibook-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for genaibook-0.1.1-py3-none-any.whl |
Total release size: 25.6 kB
Release files / genaibook-0.1.1.tar.gz
| Download URL | genaibook-0.1.1.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d65f90f5aca6468ab7c63a6aaf33e4342c41e1d6171a4b8423ede221fcf63607
|
|
BLAKE2b-256 checksum How to use checksums |
84e9be1a1531d2ea33011e55459ce97e95dd27017ca61e665273e266935d4fd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / genaibook-0.1.1-py3-none-any.whl
| Download URL | genaibook-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e775fdae37ecbd76d859a9e7a3c01056efb9db71b1329d69042960319a906a39
|
|
BLAKE2b-256 checksum How to use checksums |
5d9c3be29c4186e62f3def71f1d85d79dde5f92cfd2f6b03d837f3bb79d542ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for genaibook 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.