From the course: Responsible Generative AI and Local LLMs
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Rust for large language models (LLMs)
From the course: Responsible Generative AI and Local LLMs
Rust for large language models (LLMs)
- [Instructor] Rust components are very favorable to using large language models. Let's go ahead and talk about these particular components step by step. In a Rust compiler, the borrow checker is going to prevent race conditions and unsafe memory access bugs. It also is able to have ownership system automatically free memory when the objects go out of scope, so there's no need for manual memory management. And also, the compile time checks will find errors before the code is deployed, making sure that you have a very robust large language model deployment. In terms of the modular components here, next, the tokenizer is going to convert the text into a numerical ID. For word embeddings, the embedding layer would map the words to high dimensional dense vectors, and the transform layer is going to use neural network models for processing text. And so this modular design allows the Rust traits to mix and match particular components. If we get into threads here next, lightweight Rust…
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
-