genaibook


Namegenaibook JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/johnowhitaker/genaibook
SummaryUtilities for 'Hands-On Generative AI with Transformers and Diffusion Models' (upcoming)
upload_time2023-10-09 08:29:08
maintainer
docs_urlNone
authorJonathan Whitaker
requires_python>=3.10
licenseApache Software License 2.0
keywords nbdev jupyter notebook python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `genaibook`
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

This package contains some utilities to support the upcoming O’Reilly
book [*Hands-On Generative AI with Transformers and Diffusion
Models*](https://www.oreilly.com/library/view/hands-on-generative-ai/9781098149239/).
The book is currently in progress, if you have access to the *Early
Release* through your O’Reilly account, feel free to explore it and send
us your feedback!

## 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](https://colab.research.google.com/) and [Kaggle
Notebooks](https://www.kaggle.com/docs/notebooks).

You can also run in a local environment if your computer has a NVIDIA
GPU. Support for `mps` on Apple Silicon Macs has not been tested yet.

### 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:

``` bash
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:

``` bash
pip install genaibook
```

If you are using a notebook-based environment such as [Google
Colaboratory](https://colab.research.google.com/) or [Kaggle
Notebooks](https://www.kaggle.com/docs/notebooks), enter the following
in the first cell of a new notebook:

``` bash
!pip install genaibook
```

This will in turn install PyTorch, matplotlib, numpy and other
essentials.

### Additional Software Install

If you are following the book, you’ll also need to install
`transformers`, `diffusers` and other related libraries:

``` bash
pip install transformers diffusers accelerate datasets[audio] evaluate sentencepiece
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/johnowhitaker/genaibook",
    "name": "genaibook",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "nbdev jupyter notebook python",
    "author": "Jonathan Whitaker",
    "author_email": "johnowhitaker@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/22/8c/d80662a70d79811f81f1cf125e9421b98902165f3430de0710a93f492389/genaibook-0.0.3.tar.gz",
    "platform": null,
    "description": "`genaibook`\n================\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nThis package contains some utilities to support the upcoming O\u2019Reilly\nbook [*Hands-On Generative AI with Transformers and Diffusion\nModels*](https://www.oreilly.com/library/view/hands-on-generative-ai/9781098149239/).\nThe book is currently in progress, if you have access to the *Early\nRelease* through your O\u2019Reilly account, feel free to explore it and send\nus your feedback!\n\n## Setup\n\nCode is an essential part of the book content, and we highly recommend\nto run the code examples while reading it. We also recommend to explore\non your own by modifying the code snippets or creating your own!\n\nThis package will help you setup your environment and provides some\nbasic utilities used throughout the book.\n\n### Hardware and Software Requirements\n\n`genaibook` only requires Python 3.10 or better. Dealing with\ntransformers and diffusion models is a compute-intensive task, so having\naccess to a computer with a NVIDIA GPU will be needed. There are\nmultiple online options that you can use such as [Google\nColaboratory](https://colab.research.google.com/) and [Kaggle\nNotebooks](https://www.kaggle.com/docs/notebooks).\n\nYou can also run in a local environment if your computer has a NVIDIA\nGPU. Support for `mps` on Apple Silicon Macs has not been tested yet.\n\n### Local Environment\n\nIf you want to install in your computer, please install a Python 3.10\nvirtual environment using your preferred method. As an example, you can\ndo it with `conda` like this:\n\n``` bash\nconda create -n genaibook python=3.10\nconda activate genaibook\n```\n\n### Package Install\n\nIf you are using your own local environment, just run the following in a\nterminal window:\n\n``` bash\npip install genaibook\n```\n\nIf you are using a notebook-based environment such as [Google\nColaboratory](https://colab.research.google.com/) or [Kaggle\nNotebooks](https://www.kaggle.com/docs/notebooks), enter the following\nin the first cell of a new notebook:\n\n``` bash\n!pip install genaibook\n```\n\nThis will in turn install PyTorch, matplotlib, numpy and other\nessentials.\n\n### Additional Software Install\n\nIf you are following the book, you\u2019ll also need to install\n`transformers`, `diffusers` and other related libraries:\n\n``` bash\npip install transformers diffusers accelerate datasets[audio] evaluate sentencepiece\n```\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Utilities for 'Hands-On Generative AI with Transformers and Diffusion Models' (upcoming)",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/johnowhitaker/genaibook"
    },
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "042a6b157a81b20b868bd5e06229bac8ed5137872f3dc4e369c71b3a8c64f7de",
                "md5": "1010ba15a92d61909272eba9a8fd7e71",
                "sha256": "60c4b6908afb01befc6e581652d62e8468d794f177f21629fca552896cc5ccb5"
            },
            "downloads": -1,
            "filename": "genaibook-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1010ba15a92d61909272eba9a8fd7e71",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 11236,
            "upload_time": "2023-10-09T08:29:06",
            "upload_time_iso_8601": "2023-10-09T08:29:06.654046Z",
            "url": "https://files.pythonhosted.org/packages/04/2a/6b157a81b20b868bd5e06229bac8ed5137872f3dc4e369c71b3a8c64f7de/genaibook-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "228cd80662a70d79811f81f1cf125e9421b98902165f3430de0710a93f492389",
                "md5": "3ffb06304725a021db4c9a4a90590eae",
                "sha256": "357426b7f3f37ed0fd040a8d13e9a0e96b5a55c2be1ab9144f651410c8fc49a1"
            },
            "downloads": -1,
            "filename": "genaibook-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "3ffb06304725a021db4c9a4a90590eae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 11999,
            "upload_time": "2023-10-09T08:29:08",
            "upload_time_iso_8601": "2023-10-09T08:29:08.421677Z",
            "url": "https://files.pythonhosted.org/packages/22/8c/d80662a70d79811f81f1cf125e9421b98902165f3430de0710a93f492389/genaibook-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-09 08:29:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "johnowhitaker",
    "github_project": "genaibook",
    "github_not_found": true,
    "lcname": "genaibook"
}
        
Elapsed time: 0.15656s