Link model names to their Hugging Face pages
Browse files- index.html +5 -2
- leaderboard.json +2 -2
index.html
CHANGED
|
@@ -107,7 +107,7 @@ python benchmark/score.py --model <your-model> --config en --name "Your Mo
|
|
| 107 |
|
| 108 |
<footer>
|
| 109 |
ROC-AUC on nutrientdocs/grounding-benchmark (CC-BY-SA-4.0) · reproducible via benchmark/score.py ·
|
| 110 |
-
|
| 111 |
demo: <a href="https://huggingface.co/spaces/nutrientdocs/grounding-demo">grounding-demo</a>
|
| 112 |
</footer>
|
| 113 |
</div>
|
|
@@ -116,6 +116,9 @@ python benchmark/score.py --model <your-model> --config en --name "Your Mo
|
|
| 116 |
let DATA = [];
|
| 117 |
// All possible facet columns; only those with data for the active config are rendered.
|
| 118 |
const FACETS = [["number","Number"],["date","Date"],["string","String"],["table","Table"],["prose","Prose"]];
|
|
|
|
|
|
|
|
|
|
| 119 |
function fmt(x){ return (x===null||x===undefined) ? "—" : x.toFixed(3).replace(/^0/,""); }
|
| 120 |
function render(config){
|
| 121 |
const rows = DATA.filter(d => d.config === config)
|
|
@@ -141,7 +144,7 @@ function render(config){
|
|
| 141 |
if(r.ours) tr.className = "ours";
|
| 142 |
tr.innerHTML =
|
| 143 |
`<td class="rank">${i+1}</td>`+
|
| 144 |
-
`<td><span class="name">${r.name}</span>${chip}</td>`+
|
| 145 |
`<td class="n">${(r.n||0).toLocaleString()}</td>`+
|
| 146 |
`<td><div class="barcell"><div class="bar ${r.ours?'hl':''}" style="flex:1"><span style="width:${w}%"></span></div>`+
|
| 147 |
`<span class="barnum">${fmt(r.overall_auc)}</span></div></td>`+
|
|
|
|
| 107 |
|
| 108 |
<footer>
|
| 109 |
ROC-AUC on nutrientdocs/grounding-benchmark (CC-BY-SA-4.0) · reproducible via benchmark/score.py ·
|
| 110 |
+
Nutrient models: <a href="https://huggingface.co/nutrientdocs/grounding-en">grounding-en</a>, <a href="https://huggingface.co/nutrientdocs/grounding-multilingual">grounding-multilingual</a> ·
|
| 111 |
demo: <a href="https://huggingface.co/spaces/nutrientdocs/grounding-demo">grounding-demo</a>
|
| 112 |
</footer>
|
| 113 |
</div>
|
|
|
|
| 116 |
let DATA = [];
|
| 117 |
// All possible facet columns; only those with data for the active config are rendered.
|
| 118 |
const FACETS = [["number","Number"],["date","Date"],["string","String"],["table","Table"],["prose","Prose"]];
|
| 119 |
+
// The commercial model's weights live in a private repo; its row must link to the public showcase page.
|
| 120 |
+
const REPO_ALIAS = {"nutrientdocs/grounding-multilingual-private":"nutrientdocs/grounding-multilingual"};
|
| 121 |
+
function hfUrl(m){ return m ? "https://huggingface.co/" + (REPO_ALIAS[m] || m) : null; }
|
| 122 |
function fmt(x){ return (x===null||x===undefined) ? "—" : x.toFixed(3).replace(/^0/,""); }
|
| 123 |
function render(config){
|
| 124 |
const rows = DATA.filter(d => d.config === config)
|
|
|
|
| 144 |
if(r.ours) tr.className = "ours";
|
| 145 |
tr.innerHTML =
|
| 146 |
`<td class="rank">${i+1}</td>`+
|
| 147 |
+
`<td>${hfUrl(r.model) ? `<a class="name" href="${hfUrl(r.model)}" target="_blank" rel="noopener">${r.name}</a>` : `<span class="name">${r.name}</span>`}${chip}</td>`+
|
| 148 |
`<td class="n">${(r.n||0).toLocaleString()}</td>`+
|
| 149 |
`<td><div class="barcell"><div class="bar ${r.ours?'hl':''}" style="flex:1"><span style="width:${w}%"></span></div>`+
|
| 150 |
`<span class="barnum">${fmt(r.overall_auc)}</span></div></td>`+
|
leaderboard.json
CHANGED
|
@@ -115,7 +115,7 @@
|
|
| 115 |
},
|
| 116 |
{
|
| 117 |
"name": "grounding-multilingual (ours)",
|
| 118 |
-
"model": "nutrientdocs/grounding-multilingual
|
| 119 |
"config": "en",
|
| 120 |
"open": false,
|
| 121 |
"n": 5000,
|
|
@@ -134,7 +134,7 @@
|
|
| 134 |
},
|
| 135 |
{
|
| 136 |
"name": "grounding-multilingual (ours)",
|
| 137 |
-
"model": "nutrientdocs/grounding-multilingual
|
| 138 |
"config": "multi",
|
| 139 |
"open": false,
|
| 140 |
"n": 8421,
|
|
|
|
| 115 |
},
|
| 116 |
{
|
| 117 |
"name": "grounding-multilingual (ours)",
|
| 118 |
+
"model": "nutrientdocs/grounding-multilingual",
|
| 119 |
"config": "en",
|
| 120 |
"open": false,
|
| 121 |
"n": 5000,
|
|
|
|
| 134 |
},
|
| 135 |
{
|
| 136 |
"name": "grounding-multilingual (ours)",
|
| 137 |
+
"model": "nutrientdocs/grounding-multilingual",
|
| 138 |
"config": "multi",
|
| 139 |
"open": false,
|
| 140 |
"n": 8421,
|