Built site for gh-pages

This commit is contained in:
Quarto GHA Workflow Runner
2025-07-07 14:16:56 +00:00
parent 276bb1e53f
commit aa1c91ff22
5 changed files with 1215 additions and 1405 deletions

View File

@@ -20,41 +20,6 @@ ul.task-list li input[type="checkbox"] {
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
html { -webkit-text-size-adjust: 100%; }
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
}
pre.numberSource { margin-left: 3em; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
</style>
@@ -467,14 +432,7 @@ gtag('config', 'G-9KYCVJBNMQ', { 'anonymize_ip': true});
<h2 id="toc-title">On this page</h2>
<ul>
<li><a href="#axolotl.utils.chat_templates" id="toc-axolotl.utils.chat_templates" class="nav-link active" data-scroll-target="#axolotl.utils.chat_templates">utils.chat_templates</a>
<ul class="collapse">
<li><a href="#functions" id="toc-functions" class="nav-link" data-scroll-target="#functions">Functions</a>
<ul class="collapse">
<li><a href="#axolotl.utils.chat_templates.get_chat_template" id="toc-axolotl.utils.chat_templates.get_chat_template" class="nav-link" data-scroll-target="#axolotl.utils.chat_templates.get_chat_template">get_chat_template</a></li>
<li><a href="#axolotl.utils.chat_templates.register_chat_template" id="toc-axolotl.utils.chat_templates.register_chat_template" class="nav-link" data-scroll-target="#axolotl.utils.chat_templates.register_chat_template">register_chat_template</a></li>
</ul></li>
</ul></li>
<li><a href="#axolotl.utils.chat_templates" id="toc-axolotl.utils.chat_templates" class="nav-link active" data-scroll-target="#axolotl.utils.chat_templates">utils.chat_templates</a></li>
</ul>
</nav>
</div>
@@ -489,152 +447,8 @@ gtag('config', 'G-9KYCVJBNMQ', { 'anonymize_ip': true});
<p><code>utils.chat_templates</code></p>
<p>This module provides functionality for selecting chat templates based on user choices.
These templates are used for formatting messages in a conversation.</p>
<section id="functions" class="level2">
<h2 class="anchored" data-anchor-id="functions">Functions</h2>
<table class="caption-top table">
<thead>
<tr class="header">
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><a href="#axolotl.utils.chat_templates.get_chat_template">get_chat_template</a></td>
<td>Finds the correct chat_template based on the users choice, jinja_template, and tokenizer.</td>
</tr>
<tr class="even">
<td><a href="#axolotl.utils.chat_templates.register_chat_template">register_chat_template</a></td>
<td>Registers chat templates.</td>
</tr>
</tbody>
</table>
<section id="axolotl.utils.chat_templates.get_chat_template" class="level3">
<h3 class="anchored" data-anchor-id="axolotl.utils.chat_templates.get_chat_template">get_chat_template</h3>
<div class="sourceCode" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>utils.chat_templates.get_chat_template(</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> user_choice,</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> jinja_template<span class="op">=</span><span class="va">None</span>,</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> tokenizer<span class="op">=</span><span class="va">None</span>,</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>Finds the correct chat_template based on the users choice, jinja_template, and tokenizer.</p>
<section id="parameters" class="level4 doc-section doc-section-parameters">
<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters">Parameters</h4>
<table class="caption-top table">
<colgroup>
<col style="width: 14%">
<col style="width: 33%">
<col style="width: 41%">
<col style="width: 10%">
</colgroup>
<thead>
<tr class="header">
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>user_choice</td>
<td>str</td>
<td>The users choice of template.</td>
<td><em>required</em></td>
</tr>
<tr class="even">
<td>jinja_template</td>
<td>Optional[str]</td>
<td>The jinja template string. Defaults to None.</td>
<td><code>None</code></td>
</tr>
<tr class="odd">
<td>tokenizer</td>
<td>Optional[PreTrainedTokenizerBase]</td>
<td>The tokenizer. Defaults to None.</td>
<td><code>None</code></td>
</tr>
</tbody>
</table>
</section>
<section id="returns" class="level4 doc-section doc-section-returns">
<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns">Returns</h4>
<table class="caption-top table">
<thead>
<tr class="header">
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>str</td>
<td>str</td>
<td>The chosen template string.</td>
</tr>
</tbody>
</table>
</section>
<section id="raises" class="level4 doc-section doc-section-raises">
<h4 class="doc-section doc-section-raises anchored" data-anchor-id="raises">Raises</h4>
<table class="caption-top table">
<colgroup>
<col style="width: 11%">
<col style="width: 16%">
<col style="width: 71%">
</colgroup>
<thead>
<tr class="header">
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td></td>
<td>ValueError</td>
<td>If the user_choice is not found in the templates.</td>
</tr>
</tbody>
</table>
</section>
</section>
<section id="axolotl.utils.chat_templates.register_chat_template" class="level3">
<h3 class="anchored" data-anchor-id="axolotl.utils.chat_templates.register_chat_template">register_chat_template</h3>
<div class="sourceCode" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>utils.chat_templates.register_chat_template(template_name, chat_template)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>Registers chat templates.</p>
<section id="parameters-1" class="level4 doc-section doc-section-parameters">
<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters-1">Parameters</h4>
<table class="caption-top table">
<thead>
<tr class="header">
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>template_name</td>
<td>str</td>
<td>The name of the template.</td>
<td><em>required</em></td>
</tr>
<tr class="even">
<td>chat_template</td>
<td>str</td>
<td>The template string.</td>
<td><em>required</em></td>
</tr>
</tbody>
</table>
</section>
</section>
</section>
</section>
</main> <!-- /main -->