From the course: Responsible Generative AI and Local LLMs
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Invoke an LLM on an AWS G5 instance, part 1
From the course: Responsible Generative AI and Local LLMs
Invoke an LLM on an AWS G5 instance, part 1
- So this week, I'm going to dive in to a interesting scenario here where you can use the package management system in Rust to invoke large language models. So I think everybody's talking about large language models and how cool they are, but what's interesting is you'll see people, you know, giving these really complex workflows, applications, all this, you know, complexity around running a large language model. But because of the beauty of Rust and the Cargo package management system, you don't have to do anything. You can just actually use the Cargo system to invoke models. I'm going to do this with Hugging Face Candle and I'm going to do it on an AWS GPU that's a very powerful GPU. So let's go ahead and take a look at how we would do that. So first up here, I've got Hugging Face Candle. Let's just look at what this does. So this is a minimalistic ML framework for Rust. And you can see the code is really simple, right? But the biggest thing here, and I think this is why it's so…
Contents
-
-
Coding ELO in Python4m 7s
-
Coding ELO in Rust3m 49s
-
Coding ELO in R3m 31s
-
(Locked)
Coding ELO in Julia3m 5s
-
(Locked)
Profit sharing concepts5m 40s
-
(Locked)
Tragedy of the commons4m
-
(Locked)
Deploying LLMs with Lorax and SkyPilot3m 56s
-
(Locked)
Fine-tune Mistral and Ludwig3m 22s
-
(Locked)
Game theory in generative AI4m 45s
-
(Locked)
Perfect competition2m 45s
-
(Locked)
Negative externalities3m 23s
-
(Locked)
Regulatory entrepreneurship4m 18s
-
(Locked)
Creating reinforcement bias3m 59s
-
(Locked)
Getting started with Mozilla llamafile3m 36s
-
(Locked)
Developing cosmopolitan4m 29s
-
(Locked)
Building blocks for generative AI with whisper.cpp2m 53s
-
(Locked)
Transcribing with Whisper2m 56s
-
(Locked)
Portable phrase CLI3m 34s
-
(Locked)
Candle hello world2m 56s
-
(Locked)
Exploring StarCoder in Rust5m 54s
-
(Locked)
Whisper Candle transcriber5m 51s
-
(Locked)
Local system metrics3m 4s
-
(Locked)
Exploring remote development on AWS2m 15s
-
(Locked)
Rust for large language models (LLMs)2m
-
(Locked)
The continuous build binary2m 6s
-
(Locked)
Serverless inference1m 56s
-
(Locked)
Rust CLI inference2m 7s
-
(Locked)
Rust chat inference2m 3s
-
(Locked)
The chat loop with StarCoder2m 4s
-
(Locked)
Invoke an LLM on an AWS G5 instance, part 14m 36s
-
(Locked)
Invoke an LLM on an AWS G5 instance, part 22m 58s
-