File size: 3,299 Bytes
c5241c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<section id="tokenizer" class="v z4">
<h2 class="v-title">A better tokenizer does not replace drafting</h2>
<table class="t v-t">
<tr class="t-head"><th>Hindi (Devanagari)</th><th class="v-w">Llama-3.2-1B</th><th class="v-w">Sarvam-1</th></tr>
<tr><td>Tokens per word</td><td>2.63</td><td>1.45</td></tr>
<tr><td>Tokens per backbone pass</td><td>2.19</td><td>1.64</td></tr>
<tr><td>Words per backbone pass</td><td>0.83</td><td><b>1.13</b></td></tr>
<tr><td>Words per pass with greedy decoding</td><td>0.38</td><td>0.69</td></tr>
<tr><td>First-draft accuracy at group starts</td><td>36%</td><td>35%</td></tr>
</table>
<ul class="v-takes">
<li>In words per pass Sarvam-1 is 1.35× ahead, although it accepts fewer tokens per pass.</li>
<li>The tokenizer gain and the drafting gain overlap: 3.0× together, not 4.0×.</li>
<li>Group starts stay at 35% to 36% with either tokenizer.</li>
</ul>
<p class="v-cav">Sarvam-1 has 2.4B parameters against 1B. Words per pass is not wall-clock speed.</p>
<aside>Two models on the same Devanagari text: Llama-3.2-1B with a general tokenizer and Sarvam-1 with an Indic tokenizer. Tokens per pass ranks them one way, words per pass the other. Detail moved from the slide: Earlier title: a better tokenizer against multi-token drafting. Hindi (Devanagari), dependent heads with backbone targets, fp32, lossless verification. Llama-3.2-1B (1B parameters, general tokenizer): seed 0, which gives 2.19 tokens per pass against 2.20 for our 3-seed mean. Sarvam-1 (2.4B parameters, Indic tokenizer): mean of 3 seeds. Row: Measure | Llama-3.2-1B | Sarvam-1. Row: Tokens per word (held-out text) | 2.63 | 1.45. Row: Tokens per backbone pass | 2.19 | 1.64. Row: Words per backbone pass | 0.83 | 1.13. Row: Words per pass with greedy decoding (no drafting) | 0.38 | 0.69. Row: First-draft accuracy at group starts | 36% | 35%. Row: First-draft accuracy inside a word | 73% | 52%. Tokens per pass ranks the two models the wrong way. In words produced per pass, Sarvam-1 is 1.35× ahead. The tokenizer gain and the drafting gain overlap. Over greedy Llama: 1.8× from the tokenizer alone, 2.2× from drafting alone, 3.0× together. If the gains multiplied, it would be 4.0×. Group starts stay at 35% to 36% with either tokenizer. The gap is inside words: 52% with Sarvam-1 against 73%. Caveats. Sarvam-1 has 2.4B parameters against 1B and was trained on Indian languages. Words per pass is not wall-clock speed. Words per pass = tokens per pass × words per token on the held-out reference text (whitespace words): 0.380 Llama, 0.689 Sarvam-1. Compute (one GPU each, fp32). Llama-3.2-1B on one A40: 3.3 h training (832 tokens/s), 11 min evaluation, peak 8.6 GiB. Sarvam-1 on one A100 80 GB: 2.4 to 2.5 h training per seed (1,094 to 1,173 tokens/s), 9 to 10 min evaluation, peak 12.5 GiB. Further notes: This comparison was run on the Prajna cluster in a separate session. Both models are measured on the same 512 held-out Devanagari documents, words split at whitespace: Llama 2.63 tokens per word and 1.94 characters per token, Sarvam-1 1.45 tokens per word and 3.51 characters per token. Exact ratios over greedy Llama: 1.81 (tokenizer alone), 2.19 (drafting alone), 2.96 (both), 3.97 if the two multiplied; Sarvam-1 over Llama with drafting on both, 1.35.</aside>
</section>