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.
Developing cosmopolitan
From the course: Responsible Generative AI and Local LLMs
Developing cosmopolitan
- [Instructor] This is a library called Cosmopolitan, which is at the core of llamafile, which allows it to be a portable large language model. So let's go ahead and take a look at how this actually works. We have here the Cosmopolitan Libc makes a C build-once, run-anywhere language like Java, right? So that's one of the cool things about it. So all you need to do is unzip it, go to the releases right here, unzip it, and then use this Cosmo compiler, right, where we say cosmocc -o hello. This will be the output, and the C file will be hello.c. And what's also kind of cool is that for old school Unix people, you can see that there's an strace facility here as well. So you can actually see what's actually happening underneath the hood. This was a utility that a lot of sysadmins would use back in the day, but it's also very useful in modern times as well to really dig into all the calls that are happening in a piece of code. So let's go ahead and take a look at how we would do this. 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
-