Built site for gh-pages

This commit is contained in:
Quarto GHA Workflow Runner
2025-10-17 10:06:27 +00:00
parent f64e3bbb40
commit 333ca134a2
5 changed files with 581 additions and 417 deletions

View File

@@ -20,6 +20,41 @@ 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>
@@ -474,7 +509,13 @@ gtag('config', 'G-9KYCVJBNMQ', { 'anonymize_ip': true});
<h2 id="toc-title">On this page</h2>
<ul>
<li><a href="#axolotl.prompt_strategies.dpo.chat_template" id="toc-axolotl.prompt_strategies.dpo.chat_template" class="nav-link active" data-scroll-target="#axolotl.prompt_strategies.dpo.chat_template">prompt_strategies.dpo.chat_template</a></li>
<li><a href="#axolotl.prompt_strategies.dpo.chat_template" id="toc-axolotl.prompt_strategies.dpo.chat_template" class="nav-link active" data-scroll-target="#axolotl.prompt_strategies.dpo.chat_template">prompt_strategies.dpo.chat_template</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.prompt_strategies.dpo.chat_template.argilla_chat" id="toc-axolotl.prompt_strategies.dpo.chat_template.argilla_chat" class="nav-link" data-scroll-target="#axolotl.prompt_strategies.dpo.chat_template.argilla_chat">argilla_chat</a></li>
</ul></li>
</ul></li>
</ul>
</nav>
</div>
@@ -488,8 +529,110 @@ gtag('config', 'G-9KYCVJBNMQ', { 'anonymize_ip': true});
<h1>prompt_strategies.dpo.chat_template</h1>
<p><code>prompt_strategies.dpo.chat_template</code></p>
<p>DPO prompt strategies for using tokenizer chat templates.</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.prompt_strategies.dpo.chat_template.argilla_chat">argilla_chat</a></td>
<td>DPO chat template strategy for argilla-style datasets.</td>
</tr>
</tbody>
</table>
<section id="axolotl.prompt_strategies.dpo.chat_template.argilla_chat" class="level3">
<h3 class="anchored" data-anchor-id="axolotl.prompt_strategies.dpo.chat_template.argilla_chat">argilla_chat</h3>
<div class="code-copy-outer-scaffold"><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>prompt_strategies.dpo.chat_template.argilla_chat(cfg, dataset_idx<span class="op">=</span><span class="dv">0</span>, <span class="op">**</span>kwargs)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
<p>DPO chat template strategy for argilla-style datasets.</p>
<p>For argilla-style datasets where chosen/rejected contain full conversations
instead of single response messages. Extracts the conversation history from
the chosen field and formats both chosen/rejected responses using the
configured chat template.</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: 12%">
<col style="width: 7%">
<col style="width: 67%">
<col style="width: 11%">
</colgroup>
<thead>
<tr class="header">
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>cfg</td>
<td></td>
<td>Configuration object containing chat_template and dataset settings</td>
<td><em>required</em></td>
</tr>
<tr class="even">
<td>dataset_idx</td>
<td></td>
<td>Index of the dataset in the config (default: 0)</td>
<td><code>0</code></td>
</tr>
<tr class="odd">
<td>**kwargs</td>
<td></td>
<td>Additional keyword arguments (unused)</td>
<td><code>{}</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">
<colgroup>
<col style="width: 4%">
<col style="width: 4%">
<col style="width: 91%">
</colgroup>
<thead>
<tr class="header">
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>tuple</td>
<td></td>
<td>(transform_fn, dataset_kwargs) where: - transform_fn: Function to transform dataset samples - dataset_kwargs: Dict with remove_columns specifying columns to drop</td>
</tr>
</tbody>
</table>
</section>
<section id="dataset-format" class="level4 doc-section doc-section-dataset-format">
<h4 class="doc-section doc-section-dataset-format anchored" data-anchor-id="dataset-format">Dataset format</h4>
<p>{
“chosen”: [
{“role”: “user”, “content”: “…”},
{“role”: “assistant”, “content”: “…”}
],
“rejected”: [
{“role”: “user”, “content”: “…”},
{“role”: “assistant”, “content”: “…”}
]
}</p>
</section>
</section>
</section>
</section>
</main> <!-- /main -->