Safe For Humans AI
Safe For Humans AI
A "humans-first" approach to designing and building AI systems.
About the Book
We take a dive into both general architectures for safe, human-first AI as well as concrete examples of building applications with LLMs with both prompt engineering and fine-tuning. While I favor using self-hosted LLMs for the technical book examples, most can also be used with OpenAI and Hugging Face APIs.
Table of Contents
- Preface
- Running Software Examples
- Technology Stack for Development of the Book Examples
- Author’s Use of Large Language Models for Writing and Coding
- The “Big Project Example” in this Book
- About the Author
- Book Cover
- Acknowledgements
- Part I - Risks Using AI
- Road Map for Our Journey to Safe AI
- Your Requirements for Privacy and AI Safety vs. Making Maximum Business Use of LLMs
- A Prompt Template For Evaluating Safety vs. Opportunity Tradeoffs
- Risks
- Don’t Throw the Baby Out With the Bath Water
- Government Control of AI and International Norms
- Key Aspects of AI Safety
- Leaking Customer Data
- Inaccurate Results from LLMs
- Legal Exposure to the Use of Possibly Private Data Used to Train LLMs
- Protecting Your Business Processes from Competition
- AI Weapons
- Attempts to Mitigate Risks of AI Weapons
- What About the United Nations?
- Generative AI
- Midjourney
- Microsoft and GitHub Copilot
- ChatGPT and Microsoft Bing with ChatGPT
- Governance
- Transparency in a World Where Corporations and Governments Do Not Want Transparency
- Building Transparency Into AI Systems
- Part II - Using AI Safely: a Technical Approach
- Portability Library Supporting OpenAI, Hugging Face, and Self Hosted Models
- Examples Using LlmLib
- Using Local Large Language Models
- Available Public Large Language Models
- StabilityAI’s StableLM Using lil-parrot Library
- Google’s Flan-T5-XXL
- Running FastChat with Vicuna LLMs
- Building a Chat Application Using Text From My Books and Prompt Engineering
- Fine-Tuning LLMs Using Your Data
- Fine-Tuning vs. Prompt Engineering
- The Process of Fine-Tuning
- Building a Chat Application Using Text From My Books and Fine-Tuning
- Part III - What Does the Future Hold?
- AI-Safety Respecting Architectures for Use in Education
- AI-Safety Respecting Architectures for Use in Small and Medium Size Businesses
- Trying to Predict the Future
- Advances in LLMs
- Small Devices and Edge Computing
- Personalized AIs
- New Kinds of Digital Devices
- A Thought Experiment on Building a Safe AI in Alignment With Positive Human Values
- A Design Based on Prompt Engineering
- Safe AI Thought Experiment Implementation
- Good Luck
- Appendix A - Using Google Colab
- Appendix B - Using GPU Servers on Lambda Labs
- Preface
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them