Skip to content

Commit

Permalink
Deployed 061f2ba 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 Dec 20, 2024
1 parent 58ac8dd commit f82cd36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions main/reference/models/transformers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2521,13 +2521,13 @@ <h3 id="encoder-decoder-models">Encoder-Decoder Models</h3>
<div class="language-python highlight" style="background: #2E3440"><pre style="line-height: 125%;"><span></span><code><span id="__span-8-1"><a id="__codelineno-8-1" name="__codelineno-8-1" href="#__codelineno-8-1"></a><span style="color: #81a1c1; font-weight: bold">import</span> <span style="color: #8fbcbb">outlines</span>
</span><span id="__span-8-2"><a id="__codelineno-8-2" name="__codelineno-8-2" href="#__codelineno-8-2"></a><span style="color: #81a1c1; font-weight: bold">from</span> <span style="color: #8fbcbb">transformers</span> <span style="color: #81a1c1; font-weight: bold">import</span> <span style="color: #d8dee9">AutoModelForSeq2SeqLM</span>
</span><span id="__span-8-3"><a id="__codelineno-8-3" name="__codelineno-8-3" href="#__codelineno-8-3"></a>
</span><span id="__span-8-4"><a id="__codelineno-8-4" name="__codelineno-8-4" href="#__codelineno-8-4"></a><span style="color: #d8dee9">model_pile_t5</span> <span style="color: #81a1c1; font-weight: bold">=</span> <span style="color: #d8dee9">models</span><span style="color: #81a1c1; font-weight: bold">.</span><span style="color: #d8dee9">transformers</span><span style="color: #eceff4">(</span>
</span><span id="__span-8-4"><a id="__codelineno-8-4" name="__codelineno-8-4" href="#__codelineno-8-4"></a><span style="color: #d8dee9">model_pile_t5</span> <span style="color: #81a1c1; font-weight: bold">=</span> <span style="color: #d8dee9">outlines</span><span style="color: #81a1c1; font-weight: bold">.</span><span style="color: #d8dee9">models</span><span style="color: #81a1c1; font-weight: bold">.</span><span style="color: #d8dee9">transformers</span><span style="color: #eceff4">(</span>
</span><span id="__span-8-5"><a id="__codelineno-8-5" name="__codelineno-8-5" href="#__codelineno-8-5"></a> <span style="color: #d8dee9">model_name</span><span style="color: #81a1c1; font-weight: bold">=</span><span style="color: #a3be8c">&quot;EleutherAI/pile-t5-large&quot;</span><span style="color: #eceff4">,</span>
</span><span id="__span-8-6"><a id="__codelineno-8-6" name="__codelineno-8-6" href="#__codelineno-8-6"></a> <span style="color: #d8dee9">model_class</span><span style="color: #81a1c1; font-weight: bold">=</span><span style="color: #d8dee9">AutoModelForSeq2SeqLM</span><span style="color: #eceff4">,</span>
</span><span id="__span-8-7"><a id="__codelineno-8-7" name="__codelineno-8-7" href="#__codelineno-8-7"></a><span style="color: #eceff4">)</span>
</span></code></pre></div></p>
<p>Bart Example:
<div class="language-python highlight" style="background: #2E3440"><pre style="line-height: 125%;"><span></span><code><span id="__span-9-1"><a id="__codelineno-9-1" name="__codelineno-9-1" href="#__codelineno-9-1"></a><span style="color: #d8dee9">model_bart</span> <span style="color: #81a1c1; font-weight: bold">=</span> <span style="color: #d8dee9">models</span><span style="color: #81a1c1; font-weight: bold">.</span><span style="color: #d8dee9">transformers</span><span style="color: #eceff4">(</span>
<div class="language-python highlight" style="background: #2E3440"><pre style="line-height: 125%;"><span></span><code><span id="__span-9-1"><a id="__codelineno-9-1" name="__codelineno-9-1" href="#__codelineno-9-1"></a><span style="color: #d8dee9">model_bart</span> <span style="color: #81a1c1; font-weight: bold">=</span> <span style="color: #d8dee9">outlines</span><span style="color: #81a1c1; font-weight: bold">.</span><span style="color: #d8dee9">models</span><span style="color: #81a1c1; font-weight: bold">.</span><span style="color: #d8dee9">transformers</span><span style="color: #eceff4">(</span>
</span><span id="__span-9-2"><a id="__codelineno-9-2" name="__codelineno-9-2" href="#__codelineno-9-2"></a> <span style="color: #d8dee9">model_name</span><span style="color: #81a1c1; font-weight: bold">=</span><span style="color: #a3be8c">&quot;facebook/bart-large&quot;</span><span style="color: #eceff4">,</span>
</span><span id="__span-9-3"><a id="__codelineno-9-3" name="__codelineno-9-3" href="#__codelineno-9-3"></a> <span style="color: #d8dee9">model_class</span><span style="color: #81a1c1; font-weight: bold">=</span><span style="color: #d8dee9">AutoModelForSeq2SeqLM</span><span style="color: #eceff4">,</span>
</span><span id="__span-9-4"><a id="__codelineno-9-4" name="__codelineno-9-4" href="#__codelineno-9-4"></a><span style="color: #eceff4">)</span>
Expand All @@ -2554,7 +2554,7 @@ <h3 id="encoder-decoder-models">Encoder-Decoder Models</h3>
<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-11-28T22:15:15+00:00" locale="en"></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date">2024-11-28</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-timeago"><span class="timeago" datetime="2024-12-19T23:46:25+00:00" locale="en"></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date">2024-12-19</span>
</span>


Expand Down Expand Up @@ -2582,6 +2582,11 @@ <h3 id="encoder-decoder-models">Encoder-Decoder Models</h3>

<nav>

<a href="https://github.com/TimZaman" class="md-author" title="@TimZaman">

<img src="https://avatars.githubusercontent.com/u/7721540?v=4&size=72" alt="TimZaman">
</a>

<a href="https://github.com/rlouf" class="md-author" title="@rlouf">

<img src="https://avatars.githubusercontent.com/u/3885044?v=4&size=72" alt="rlouf">
Expand Down
2 changes: 1 addition & 1 deletion main/search/search_index.json

Large diffs are not rendered by default.

Binary file modified main/sitemap.xml.gz
Binary file not shown.

0 comments on commit f82cd36

Please sign in to comment.