From the course: Responsible Generative AI and Local LLMs
Unlock this course with a free trial
Join today to access over 25,000 courses taught by industry experts.
Portable phrase CLI
From the course: Responsible Generative AI and Local LLMs
Portable phrase CLI
- [Instructor] Here is an install of the Cosmopolitan portable binary framework. And what I'm going to do with it is build a portable phrase generator command line tool. So typically command line tools are things that benefit the most from portability. And what's really nice about the Cosmopolitan framework is that it helps you build out these portable binaries. So in this case, you know, it's something simple just for teaching, but you could do something like a, you know, static website generator or some kind of AI tool, et cetera with this approach, let's go ahead and start first at what it will build. So you can see here that it's going to build a binary that allows you to specify the count and then a phrase. You also have the option for a longer parameter here. So if we say -gen count, you also can do that, or you can do -gen phrase as well. So to start with, we include the standard library headers, which are the standard.H for input output, string.H for string functions like…
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
-