Skip to content
Merged

Page #76

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ llmsql_workdir

evaluation_*
coverage.xml

.idea

# Sphinx build
docs/_build/
docs/.doctrees/
*.doctree
*.pickle
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f80c99a6f2b64faef91db5c44c3abb2f
config: 3caef0746bc07fabd8f91030ce7b6533
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified docs/_build/html/.doctrees/docs/evaluation.doctree
Binary file not shown.
Binary file removed docs/_build/html/.doctrees/docs/index.doctree
Binary file not shown.
Binary file modified docs/_build/html/.doctrees/docs/inference.doctree
Binary file not shown.
Binary file modified docs/_build/html/.doctrees/docs/usage.doctree
Binary file not shown.
Binary file removed docs/_build/html/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/html/.doctrees/index.doctree
Binary file not shown.
7 changes: 6 additions & 1 deletion docs/_build/html/_sources/docs/index.rst.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
LLMSQL package Documentation
============================

`← Back to main page <../index.html>`__
.. raw:: html

<a href="../index.html" class="sidebar-button">
← Back to main page
</a>


Welcome to the LLMSQL documentation!
This guide covers everything you need to use the project, from running inference
Expand Down
4 changes: 2 additions & 2 deletions docs/_build/html/_sources/docs/usage.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ Using transformers backend.
batch_size=8,
max_new_tokens=256,
temperature=0.7,
model_args={
model_kwargs={
"attn_implementation": "flash_attention_2",
"torch_dtype": "bfloat16",
},
generate_kwargs={
generation_kwargs={
"do_sample": False,
},
)
Expand Down
10 changes: 1 addition & 9 deletions docs/_build/html/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -741,14 +741,6 @@ abbr, acronym {
cursor: help;
}

.translated {
background-color: rgba(207, 255, 207, 0.2)
}

.untranslated {
background-color: rgba(255, 207, 207, 0.2)
}

/* -- code displays --------------------------------------------------------- */

pre {
Expand Down Expand Up @@ -911,4 +903,4 @@ div.math:hover a.headerlink {
#top-link {
display: none;
}
}
}
4 changes: 2 additions & 2 deletions docs/_build/html/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DOCUMENTATION_OPTIONS = {
VERSION: '0.1.13',
VERSION: '0.1.15',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand All @@ -10,4 +10,4 @@ const DOCUMENTATION_OPTIONS = {
NAVIGATION_WITH_KEYS: false,
SHOW_SEARCH_SUMMARY: true,
ENABLE_SEARCH_SHORTCUTS: true,
};
};
106 changes: 106 additions & 0 deletions docs/_build/html/_static/leaderboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
[
{
"model": "openai/gpt-oss-120b",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.9049,
"date": "2026-02-24"
},
{
"model": "openai/gpt-oss-20b",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.8871,
"date": "2026-02-24"
},
{
"model": "meta-llama/Llama-3.3-70B-Instruct",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.8607,
"date": "2026-02-24"
},
{
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.8519,
"date": "2026-02-24"
},
{
"model": "Qwen/Qwen2.5-7B-Instruct",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.794,
"date": "2026-02-24"
},
{
"model": "mistralai/Mistral-Nemo-Instruct-2407",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.7599,
"date": "2026-02-24"
},
{
"model": "Qwen/Qwen2.5-1.5B-Instruct",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.6401,
"date": "2026-02-24"
},
{
"model": "meta-llama/Llama-3.2-3B-Instruct",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.5415,
"date": "2026-02-24"
},
{
"model": "CYFRAGOVPL/PLLuM-12B-chat",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.5224,
"date": "2026-02-24"
},
{
"model": "Qwen/Qwen3-0.6B",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.4983,
"date": "2026-02-24"
},
{
"model": "CYFRAGOVPL/PLLuM-12B-nc-chat",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.4044,
"date": "2026-02-24"
},
{
"model": "CYFRAGOVPL/pllum-12b-nc-chat-250715",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.3727,
"date": "2026-02-24"
},
{
"model": "meta-llama/Llama-3.2-1B-Instruct",
"type": "open-source",
"fewshots": 5,
"backend": "vllm",
"accuracy": 0.2678,
"date": "2026-02-24"
}
]
85 changes: 85 additions & 0 deletions docs/_build/html/_static/scripts/front_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,88 @@ if (searchInput) {
}
});
}

document.addEventListener("DOMContentLoaded", async () => {
const container = document.getElementById('leaderboard-container');
if (!container) return;

try {
const response = await fetch('_static/leaderboard.json');
const rows = await response.json();
renderLeaderboard(rows);
} catch (e) {
container.innerHTML = '<p>Error loading leaderboard 😢</p>';
console.error(e);
}
});

function renderLeaderboard(rows) {
const container = document.getElementById('leaderboard-container');
container.innerHTML = '';

const table = document.createElement('table');
table.className = 'leaderboard-table';

const thead = document.createElement('thead');
thead.innerHTML = `
<tr>
<th>Rank</th>
<th>Model</th>
<th>Type</th>
<th>Fewshots</th>
<th>Backend</th>
<th>Accuracy</th>
<th>Date</th>
</tr>`;
table.appendChild(thead);

const tbody = document.createElement('tbody');
rows.forEach((row, i) => {
const tr = document.createElement('tr');

// Берём только вторую часть после слеша
const modelName = row.model.includes('/') ? row.model.split('/')[1] : row.model;

// Модель с ссылкой
const modelCell = document.createElement('td');
if (row.url) {
const a = document.createElement('a');
a.href = row.url;
a.target = "_blank";
a.rel = "noopener";
a.textContent = modelName; // <-- здесь только вторая часть
modelCell.appendChild(a);
} else {
modelCell.textContent = modelName;
}

// Accuracy
const accuracyCell = document.createElement('td');
const barContainer = document.createElement('div');
barContainer.className = 'accuracy-bar';
const fill = document.createElement('div');
fill.className = 'fill';
fill.style.width = `${(row.accuracy*100).toFixed(2)}%`;
const text = document.createElement('span');
text.textContent = `${(row.accuracy*100).toFixed(2)}%`;
barContainer.appendChild(fill);
barContainer.appendChild(text);
accuracyCell.appendChild(barContainer);

// Вставка остальных ячеек
tr.innerHTML += `<td>${i+1}</td>`;
tr.appendChild(modelCell);
tr.innerHTML += `
<td>${row.type}</td>
<td>${row.fewshots}</td>
<td>${row.backend}</td>
`;
tr.appendChild(accuracyCell);
tr.innerHTML += `<td>${row.date}</td>`;

tbody.appendChild(tr);
});

table.appendChild(tbody);
container.appendChild(table);
}
13 changes: 8 additions & 5 deletions docs/_build/html/_static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,11 @@ const Search = {
// perform the search on the required terms
searchTerms.forEach((word) => {
const files = [];
// find documents, if any, containing the query word in their text/title term indices
// use Object.hasOwnProperty to avoid mismatching against prototype properties
const arr = [
{ files: terms[word], score: Scorer.term },
{ files: titleTerms[word], score: Scorer.title },
{ files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term },
{ files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title },
];
// add support for partial matches
if (word.length > 2) {
Expand Down Expand Up @@ -547,8 +549,9 @@ const Search = {

// set score for the word in each file
recordFiles.forEach((file) => {
if (!scoreMap.has(file)) scoreMap.set(file, {});
scoreMap.get(file)[word] = record.score;
if (!scoreMap.has(file)) scoreMap.set(file, new Map());
const fileScores = scoreMap.get(file);
fileScores.set(word, record.score);
});
});

Expand Down Expand Up @@ -587,7 +590,7 @@ const Search = {
break;

// select one (max) score for the file.
const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w]));
const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w)));
// add result to the result list
results.push([
docNames[file],
Expand Down
67 changes: 67 additions & 0 deletions docs/_build/html/_static/styles/front_page.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,70 @@ pre span {
background: none !important;
color: inherit !important;
}

.leaderboard-box {
padding: 1rem;
background: #fff;
border-radius: 12px;
box-shadow: 0 6px 20px rgba(0,0,0,0.08);
overflow-x: auto;
}

.leaderboard-table {
width: 100%;
border-collapse: collapse;
font-family: 'Inter', 'Roboto', sans-serif;
font-size: 0.95rem;
text-align: center;
}

.leaderboard-table th {
background: linear-gradient(180deg, #f6f6f6 0%, #e9e9e9 100%);
color: #111827;
font-weight: 600;
font-size: 0.95rem;
padding: 14px 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 2px solid #ddd;
text-align: center;
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}

.leaderboard-table td {
padding: 10px;
border-bottom: 1px solid #e0e0e0;
}

.leaderboard-table tbody tr:nth-child(even) {
background-color: #f9f9f9;
}

/* Accuracy bar */
.accuracy-bar {
position: relative;
width: 100%;
height: 20px;
background: #e0e0e0;
border-radius: 10px;
overflow: hidden;
}

.accuracy-bar .fill {
height: 100%;
background: linear-gradient(90deg,#4caf50,#81c784);
border-radius: 10px 0 0 10px;
}

.accuracy-bar span {
position: absolute;
width: 100%;
text-align: center;
top: 0;
left: 0;
font-size: 0.8rem;
font-weight: 600;
line-height: 20px;
color: #000;
}

Loading