688: Six Reasons Why Building LLM Products Is Tricky — with Jon Krohn (@JonKrohnLearns)

Topics covered
Popular Clips
Episode Highlights
Processing Speed
highlights the slow processing speed of large language models (LLMs) as a significant challenge in product development. Despite using multiple GPUs, the largest models can take tens of seconds to generate long outputs, which may be acceptable for real-time reading but not for other applications like summarizing job candidates 1. This delay can be problematic when LLM outputs serve as intermediates for further processing, potentially causing users to wait minutes for results. Jon suggests solutions like reducing model size through techniques like distillation, pruning, and quantizing 1.
LLMs being slow is a problem.
---
These methods can help improve speed without significantly compromising performance 2.
Context Windows
Context window limitations in LLMs present another hurdle, as they define the amount of text a model can handle at once. explains that increasing the context window requires exponentially more computational power, which can slow down processing significantly 2. This is particularly challenging for applications needing extensive input or output, such as summarizing long resumes. While models like GPT-4 and Claude offer larger context windows, they also introduce issues like slower performance and hallucinations 2.
Increasing your context window just a bit, you're drastically increasing the amount of compute required.
---
Finding a balance between context window size and processing efficiency remains a complex task 1.
Prompt Engineering
Prompt engineering is crucial yet complex, involving the design of inputs to achieve desired outputs from LLMs. discusses techniques like zero-shot and few-shot learning, which can optimize results but also consume valuable context window space 1. Prompt injection, where users manipulate prompts to extract sensitive information or disrupt functionality, poses additional risks. Safeguards are necessary to prevent such vulnerabilities, which could lead to intellectual property theft or data breaches 1.
Prompt injections can actually be quite dangerous.
---
Effective prompt engineering requires balancing creativity with security to protect against these threats 3.
Related Episodes

772: In Case You Missed It in March 2024 — with Jon Krohn (@JonKrohnLearns)
Answers 383 questions
SDS 578: Identifying Commercial ML Problems — with Jon Krohn
Answers 383 questions

787: MLOps: The Job and The Key Tools — with Demetrios Brinkmann
Answers 383 questions
712: Code Llama — with Jon Krohn (@JonKrohnLearns)
Answers 383 questions

767: Open-Source LLM Libraries and Techniques — with Dr. Sebastian Raschka
Answers 383 questions
670: LLaMA: GPT-3 performance, 10x smaller — with Jon Krohn (@JonKrohnLearns)
Answers 383 questions
684: Get More Language Context out of your LLM — with Jon Krohn (@JonKrohnLearns)
Answers 383 questions




