Skip to content

Commit

Permalink
update preface
Browse files Browse the repository at this point in the history
  • Loading branch information
souzatharsis committed Dec 21, 2024
1 parent 0f48c4f commit de9e7e5
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 21 deletions.
Binary file modified tamingllms/_build/.doctrees/environment.pickle
Binary file not shown.
Binary file modified tamingllms/_build/.doctrees/markdown/preface.doctree
Binary file not shown.
Binary file modified tamingllms/_build/.doctrees/notebooks/local.doctree
Binary file not shown.
3 changes: 1 addition & 2 deletions tamingllms/_build/html/_sources/markdown/preface.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Models tell you merely what something is like, not what something is.
```


An alternative title of this book could have been "Language Models Behaving Badly". If you are coming from a background in financial modeling, you may have noticed the parallel with Emanuel Derman's seminal work "Models.Behaving.Badly" {cite}`derman2011models`. This parallel is not coincidental. Just as Derman cautioned against treating financial models as perfect representations of reality, this book aims to highlight the limitations and pitfalls of Large Language Models (LLMs) in practical applications (of course baring the fact Derman is an actual physicist and legendary author, professor and quant; I am not).
An alternative title of this book could have been "Language Models Behaving Badly". If you are coming from a background in financial modeling, you may have noticed the parallel with Emanuel Derman's seminal work "Models.Behaving.Badly" {cite}`derman2011models`. This parallel is not coincidental. Just as Derman cautioned against treating financial models as perfect representations of reality, this book aims to highlight the limitations and pitfalls of Large Language Models (LLMs) in practical applications.

The book "Models.Behaving.Badly" by Emanuel Derman, a former physicist and Goldman Sachs quant, explores how financial and scientific models can fail when we mistake them for reality rather than treating them as approximations full of assumptions.
The core premise of his work is that while models can be useful tools for understanding aspects of the world, they inherently involve simplification and assumptions. Derman argues that many financial crises, including the 2008 crash, occurred partly because people put too much faith in mathematical models without recognizing their limitations.
Expand All @@ -20,7 +20,6 @@ This book serves as an introductory, practical guide for practitioners and techn

The goal is not to diminish the transformative potential of LLMs, but rather to promote a more nuanced understanding of their behavior. By acknowledging and working within their constraints, developers can create more reliable and trustworthy applications. After all, as Derman taught us, the first step to using a model effectively is understanding where it breaks down.

## References
```{bibliography}
:filter: docname in docnames
```
4 changes: 2 additions & 2 deletions tamingllms/_build/html/_sources/notebooks/local.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,8 @@
"```{table} Benchmarking Hardware\n",
":align: center\n",
":name: benchmarking-hardware\n",
"| Device | Class | Description |\n",
"|--------|--------|-------------|\n",
"| Device | Description |\n",
"|--------|-------------|\n",
"| processor | Intel(R) Core(TM) i7-8550U CPU @ 1 |\n",
"| memory | 15GiB System memory |\n",
"| storage | Samsung SSD 970 EVO Plus 500GB |\n",
Expand Down
7 changes: 2 additions & 5 deletions tamingllms/_build/html/markdown/preface.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

<ul>

<li class="toctree-l2"><a href="#references" class="reference internal">References</a></li>
<li class="toctree-l2"><a href="#preface" class="reference internal">Preface</a></li>

</ul>

Expand Down Expand Up @@ -236,23 +236,20 @@ <h1><span class="section-number">1. </span>Preface<a class="headerlink" href="#p
<div><p>Models tell you merely what something is like, not what something is.</p>
<p class="attribution">—Emanuel Derman</p>
</div></blockquote>
<p>An alternative title of this book could have been “Language Models Behaving Badly”. If you are coming from a background in financial modeling, you may have noticed the parallel with Emanuel Derman’s seminal work “Models.Behaving.Badly” <span id="id1">[<a class="reference internal" href="#id139" title="E. Derman. Models.Behaving.Badly.: Why Confusing Illusion with Reality Can Lead to Disaster, on Wall Street and in Life. Free Press, 2011. ISBN 9781439165010. URL: https://books.google.co.uk/books?id=lke_cwM4wm8C.">Derman, 2011</a>]</span>. This parallel is not coincidental. Just as Derman cautioned against treating financial models as perfect representations of reality, this book aims to highlight the limitations and pitfalls of Large Language Models (LLMs) in practical applications (of course baring the fact Derman is an actual physicist and legendary author, professor and quant; I am not).</p>
<p>An alternative title of this book could have been “Language Models Behaving Badly”. If you are coming from a background in financial modeling, you may have noticed the parallel with Emanuel Derman’s seminal work “Models.Behaving.Badly” <span id="id1">[<a class="reference internal" href="#id139" title="E. Derman. Models.Behaving.Badly.: Why Confusing Illusion with Reality Can Lead to Disaster, on Wall Street and in Life. Free Press, 2011. ISBN 9781439165010. URL: https://books.google.co.uk/books?id=lke_cwM4wm8C.">Derman, 2011</a>]</span>. This parallel is not coincidental. Just as Derman cautioned against treating financial models as perfect representations of reality, this book aims to highlight the limitations and pitfalls of Large Language Models (LLMs) in practical applications.</p>
<p>The book “Models.Behaving.Badly” by Emanuel Derman, a former physicist and Goldman Sachs quant, explores how financial and scientific models can fail when we mistake them for reality rather than treating them as approximations full of assumptions.
The core premise of his work is that while models can be useful tools for understanding aspects of the world, they inherently involve simplification and assumptions. Derman argues that many financial crises, including the 2008 crash, occurred partly because people put too much faith in mathematical models without recognizing their limitations.</p>
<p>Like financial models that failed to capture the complexity of human behavior and market dynamics, LLMs have inherent constraints. They can hallucinate facts, struggle with logical reasoning, and fail to maintain consistency across long outputs. Their responses, while often convincing, are probabilistic approximations based on training data rather than true understanding even though humans insist on treating them as “machines that can reason”.</p>
<p>Today, there is this growing pervasive belief that these models could solve any problem, understand any context, or generate any content as wished by the user. Moreover, language models that were initially designed to be next-token prediction machines and chatbots are now been twisted and wrapped into “reasoning” machines for further integration into technology products and daily-life workflows that control, affect, or decide daily actions of our lives. This technological optimism coupled with lack of understanding of the models’ limitations may pose risks we are still trying to figure out.</p>
<p>This book serves as an introductory, practical guide for practitioners and technology product builders - software engineers, data scientists, and product managers - who want to create the next generation of GenAI-based products with LLMs while remaining clear-eyed about their limitations and therefore their implications to end-users. Through detailed technical analysis, reproducible Python code examples we explore the gap between LLM capabilities and reliable software product development.</p>
<p>The goal is not to diminish the transformative potential of LLMs, but rather to promote a more nuanced understanding of their behavior. By acknowledging and working within their constraints, developers can create more reliable and trustworthy applications. After all, as Derman taught us, the first step to using a model effectively is understanding where it breaks down.</p>
<section id="references">
<h2><span class="section-number">1.1. </span>References<a class="headerlink" href="#references" title="Permalink to this heading"></a></h2>
<div class="docutils container" id="id2">
<div class="citation" id="id139" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id1">Der11</a><span class="fn-bracket">]</span></span>
<p>E. Derman. <em>Models.Behaving.Badly.: Why Confusing Illusion with Reality Can Lead to Disaster, on Wall Street and in Life</em>. Free Press, 2011. ISBN 9781439165010. URL: <a class="reference external" href="https://books.google.co.uk/books?id=lke_cwM4wm8C">https://books.google.co.uk/books?id=lke_cwM4wm8C</a>.</p>
</div>
</div>
</div>
</section>
</section>

<script type="text/x-thebe-config">
Expand Down
4 changes: 0 additions & 4 deletions tamingllms/_build/html/notebooks/local.html
Original file line number Diff line number Diff line change
Expand Up @@ -1156,22 +1156,18 @@ <h3><a class="toc-backref" href="#id189" role="doc-backlink"><span class="sectio
<caption><span class="caption-number">Table 8.5 </span><span class="caption-text">Benchmarking Hardware</span><a class="headerlink" href="#benchmarking-hardware" title="Permalink to this table"></a></caption>
<thead>
<tr class="row-odd"><th class="head"><p>Device</p></th>
<th class="head"><p>Class</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>processor</p></td>
<td><p>Intel(R) Core(TM) i7-8550U CPU &#64; 1</p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p>memory</p></td>
<td><p>15GiB System memory</p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p>storage</p></td>
<td><p>Samsung SSD 970 EVO Plus 500GB</p></td>
<td><p></p></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion tamingllms/_build/html/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tamingllms/_build/jupyter_execute/markdown/intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "d5264a57",
"id": "61f9f75b",
"metadata": {},
"source": [
"(intro)=\n",
Expand Down
4 changes: 2 additions & 2 deletions tamingllms/_build/jupyter_execute/notebooks/local.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,8 @@
"```{table} Benchmarking Hardware\n",
":align: center\n",
":name: benchmarking-hardware\n",
"| Device | Class | Description |\n",
"|--------|--------|-------------|\n",
"| Device | Description |\n",
"|--------|-------------|\n",
"| processor | Intel(R) Core(TM) i7-8550U CPU @ 1 |\n",
"| memory | 15GiB System memory |\n",
"| storage | Samsung SSD 970 EVO Plus 500GB |\n",
Expand Down
3 changes: 1 addition & 2 deletions tamingllms/markdown/preface.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Models tell you merely what something is like, not what something is.
```


An alternative title of this book could have been "Language Models Behaving Badly". If you are coming from a background in financial modeling, you may have noticed the parallel with Emanuel Derman's seminal work "Models.Behaving.Badly" {cite}`derman2011models`. This parallel is not coincidental. Just as Derman cautioned against treating financial models as perfect representations of reality, this book aims to highlight the limitations and pitfalls of Large Language Models (LLMs) in practical applications (of course baring the fact Derman is an actual physicist and legendary author, professor and quant; I am not).
An alternative title of this book could have been "Language Models Behaving Badly". If you are coming from a background in financial modeling, you may have noticed the parallel with Emanuel Derman's seminal work "Models.Behaving.Badly" {cite}`derman2011models`. This parallel is not coincidental. Just as Derman cautioned against treating financial models as perfect representations of reality, this book aims to highlight the limitations and pitfalls of Large Language Models (LLMs) in practical applications.

The book "Models.Behaving.Badly" by Emanuel Derman, a former physicist and Goldman Sachs quant, explores how financial and scientific models can fail when we mistake them for reality rather than treating them as approximations full of assumptions.
The core premise of his work is that while models can be useful tools for understanding aspects of the world, they inherently involve simplification and assumptions. Derman argues that many financial crises, including the 2008 crash, occurred partly because people put too much faith in mathematical models without recognizing their limitations.
Expand All @@ -20,7 +20,6 @@ This book serves as an introductory, practical guide for practitioners and techn

The goal is not to diminish the transformative potential of LLMs, but rather to promote a more nuanced understanding of their behavior. By acknowledging and working within their constraints, developers can create more reliable and trustworthy applications. After all, as Derman taught us, the first step to using a model effectively is understanding where it breaks down.

## References
```{bibliography}
:filter: docname in docnames
```
4 changes: 2 additions & 2 deletions tamingllms/notebooks/local.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,8 @@
"```{table} Benchmarking Hardware\n",
":align: center\n",
":name: benchmarking-hardware\n",
"| Device | Class | Description |\n",
"|--------|--------|-------------|\n",
"| Device | Description |\n",
"|--------|-------------|\n",
"| processor | Intel(R) Core(TM) i7-8550U CPU @ 1 |\n",
"| memory | 15GiB System memory |\n",
"| storage | Samsung SSD 970 EVO Plus 500GB |\n",
Expand Down

0 comments on commit de9e7e5

Please sign in to comment.