From the course: Responsible Generative AI and Local LLMs
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
The chat loop with StarCoder
From the course: Responsible Generative AI and Local LLMs
The chat loop with StarCoder
- [Instructor] One of the more exciting things you can do with chat loops using large language models is build your own coding assistant. With HuggingFace StarCoder, it has been able to outperform even earlier models from OpenAI or competing solutions. And if we take a look at this particular example here, here's how you could actually dive into and build your own custom conversational AI. So if you look at a prompt here, we would want to make some thoughtful response. So you would call out to a StarCoder endpoint. This could be hosted on a GPU instance, let's say AWS G5. And then the async request from the client would allow non-blocking asynchronous requests, so the chatbot would be able to respond very easily. Also, you'd be able to append each message pair to the conversation history to provide context for the AI. And then the Serde JSON crate would allow you to do easy serialization using the JSON format. And we could leverage Rust's strong typing system and memory safety so that…
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
-