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

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