Run Very Large Language Models on Your Computer
Last Updated on July 25, 2023 by Editorial Team
Author(s): Benjamin Marie
Originally published on Towards AI.
With PyTorch and Hugging Faceβs device_map
This member-only story is on us. Upgrade to access all of Medium.
Image from Pixabay
New large language models are publicly released almost every month. They are getting better and larger.
You may assume that these models can only be run on big clusters or in the cloud.
Fortunately, this is not the case. Recent versions of PyTorch propose several mechanisms that make the use of large language models relatively easy on a standard computer and without much engineering, thanks to the Hugging Face Accelerate package.
In this article, I will present a simple way to use large language models on your own computer or… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI