Skip to content

Commit

Permalink
Deployed b55d314 to main with MkDocs 1.6.1 and mike 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Nov 22, 2024
1 parent 790a91d commit 41473dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/reference/generation/generation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2543,7 +2543,7 @@


<h1 id="generation">Generation</h1>
<p>Once an <a href="../models">Outlines model</a> is constructed you can use <code>outlines.generate</code> to generate text. Standard LLM generation is possible via <code>outlines.generate.text</code>, along with a variety of structured generation methods described below. (For a detailed technical explanation of how structured generation works, you may review the <a href="../structured_generation_explanation/">Structured Generation Explanation</a> page)</p>
<p>Once an <a href="../../models/models/">Outlines model</a> is constructed you can use <code>outlines.generate</code> to generate text. Standard LLM generation is possible via <code>outlines.generate.text</code>, along with a variety of structured generation methods described below. (For a detailed technical explanation of how structured generation works, you may review the <a href="../structured_generation_explanation/">Structured Generation Explanation</a> page)</p>
<p>Before generating text, you must construct an <code>outlines.model</code>. Example:</p>
<div class="language-python highlight" style="background: #2E3440"><pre style="line-height: 125%;"><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span style="color: #81a1c1; font-weight: bold">import</span> <span style="color: #8fbcbb">outlines</span>
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>
Expand Down Expand Up @@ -2739,7 +2739,7 @@ <h3 id="generate-a-given-python-type"><a href="../types/">Generate a given Pytho
<span class="md-icon" title="Last update">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-timeago"><span class="timeago" datetime="2024-09-13T18:44:14+00:00" locale="en"></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date">2024-09-13</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-timeago"><span class="timeago" datetime="2024-11-07T00:25:29+00:00" locale="en"></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date">2024-11-07</span>
</span>


Expand Down

0 comments on commit 41473dc

Please sign in to comment.