update
Browse files- .gitignore +3 -0
- backend/data/lighteval_results/lighteval_results.json +10 -10
- frontend/src/App.js +58 -1
.gitignore
CHANGED
|
@@ -14,6 +14,8 @@ frontend/node_modules
|
|
| 14 |
|
| 15 |
/backend/uploaded_files
|
| 16 |
/backend/logs
|
|
|
|
|
|
|
| 17 |
|
| 18 |
.venv/
|
| 19 |
|
|
@@ -30,6 +32,7 @@ src/assets/scale-hf-logo.png
|
|
| 30 |
|
| 31 |
/build
|
| 32 |
|
|
|
|
| 33 |
# misc
|
| 34 |
|
| 35 |
.DS_Store
|
|
|
|
| 14 |
|
| 15 |
/backend/uploaded_files
|
| 16 |
/backend/logs
|
| 17 |
+
/backend/data
|
| 18 |
+
/backend/data/lighteval_results
|
| 19 |
|
| 20 |
.venv/
|
| 21 |
|
|
|
|
| 32 |
|
| 33 |
/build
|
| 34 |
|
| 35 |
+
|
| 36 |
# misc
|
| 37 |
|
| 38 |
.DS_Store
|
backend/data/lighteval_results/lighteval_results.json
CHANGED
|
@@ -2,29 +2,29 @@
|
|
| 2 |
{
|
| 3 |
"model": "Qwen/QwQ-32B",
|
| 4 |
"provider": "sambanova",
|
| 5 |
-
"accuracy":
|
| 6 |
-
"execution_time":
|
| 7 |
-
"status": "
|
| 8 |
},
|
| 9 |
{
|
| 10 |
"model": "Qwen/Qwen2.5-72B-Instruct",
|
| 11 |
"provider": "sambanova",
|
| 12 |
-
"accuracy":
|
| 13 |
-
"execution_time":
|
| 14 |
-
"status": "
|
| 15 |
},
|
| 16 |
{
|
| 17 |
"model": "deepseek-ai/DeepSeek-V3-0324",
|
| 18 |
"provider": "novita",
|
| 19 |
-
"accuracy":
|
| 20 |
-
"execution_time":
|
| 21 |
-
"status": "
|
| 22 |
},
|
| 23 |
{
|
| 24 |
"model": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
|
| 25 |
"provider": "sambanova",
|
| 26 |
"accuracy": 1.0,
|
| 27 |
-
"execution_time":
|
| 28 |
"status": "success"
|
| 29 |
}
|
| 30 |
]
|
|
|
|
| 2 |
{
|
| 3 |
"model": "Qwen/QwQ-32B",
|
| 4 |
"provider": "sambanova",
|
| 5 |
+
"accuracy": 1.0,
|
| 6 |
+
"execution_time": 21.59078598022461,
|
| 7 |
+
"status": "success"
|
| 8 |
},
|
| 9 |
{
|
| 10 |
"model": "Qwen/Qwen2.5-72B-Instruct",
|
| 11 |
"provider": "sambanova",
|
| 12 |
+
"accuracy": 1.0,
|
| 13 |
+
"execution_time": 14.694424152374268,
|
| 14 |
+
"status": "success"
|
| 15 |
},
|
| 16 |
{
|
| 17 |
"model": "deepseek-ai/DeepSeek-V3-0324",
|
| 18 |
"provider": "novita",
|
| 19 |
+
"accuracy": 1.0,
|
| 20 |
+
"execution_time": 24.018408060073853,
|
| 21 |
+
"status": "success"
|
| 22 |
},
|
| 23 |
{
|
| 24 |
"model": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
|
| 25 |
"provider": "sambanova",
|
| 26 |
"accuracy": 1.0,
|
| 27 |
+
"execution_time": 16.271580934524536,
|
| 28 |
"status": "success"
|
| 29 |
}
|
| 30 |
]
|
frontend/src/App.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import React from "react";
|
| 2 |
import { Box, Container, CssBaseline } from "@mui/material";
|
| 3 |
import {
|
| 4 |
HashRouter as Router,
|
|
@@ -17,10 +17,67 @@ import BenchmarkDisplayPage from "./pages/BenchmarkDisplayPage";
|
|
| 17 |
import BenchmarkEvaluationPage from "./pages/BenchmarkEvaluationPage";
|
| 18 |
import EvaluationDisplayPage from "./pages/EvaluationDisplayPage";
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
function App() {
|
| 21 |
const { mode } = useThemeMode();
|
| 22 |
const theme = getTheme(mode);
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
return (
|
| 25 |
<ThemeProvider theme={theme}>
|
| 26 |
<CssBaseline />
|
|
|
|
| 1 |
+
import React, { useEffect } from "react";
|
| 2 |
import { Box, Container, CssBaseline } from "@mui/material";
|
| 3 |
import {
|
| 4 |
HashRouter as Router,
|
|
|
|
| 17 |
import BenchmarkEvaluationPage from "./pages/BenchmarkEvaluationPage";
|
| 18 |
import EvaluationDisplayPage from "./pages/EvaluationDisplayPage";
|
| 19 |
|
| 20 |
+
// Fonction pour synchroniser les hash URL avec la page parente Hugging Face
|
| 21 |
+
const syncURLWithParent = () => {
|
| 22 |
+
// Cette fonction est nécessaire uniquement dans un environnement Hugging Face Spaces
|
| 23 |
+
if (window.parent !== window) {
|
| 24 |
+
try {
|
| 25 |
+
// On envoie le hash actuel à la page parente (Hugging Face)
|
| 26 |
+
window.parent.postMessage(
|
| 27 |
+
{
|
| 28 |
+
hash: window.location.hash,
|
| 29 |
+
},
|
| 30 |
+
"https://huggingface.co"
|
| 31 |
+
);
|
| 32 |
+
|
| 33 |
+
// On log pour débogage
|
| 34 |
+
console.log("Synced hash with parent:", window.location.hash);
|
| 35 |
+
} catch (error) {
|
| 36 |
+
console.error("Error syncing URL with parent:", error);
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
};
|
| 40 |
+
|
| 41 |
function App() {
|
| 42 |
const { mode } = useThemeMode();
|
| 43 |
const theme = getTheme(mode);
|
| 44 |
|
| 45 |
+
// Effet pour surveiller les changements de hash et les synchroniser
|
| 46 |
+
useEffect(() => {
|
| 47 |
+
// Fonction de gestionnaire d'événements pour les changements de hash
|
| 48 |
+
const handleHashChange = () => {
|
| 49 |
+
syncURLWithParent();
|
| 50 |
+
};
|
| 51 |
+
|
| 52 |
+
// Fonction pour gérer les messages reçus de la page parente
|
| 53 |
+
const handleParentMessage = (event) => {
|
| 54 |
+
// Vérifier que le message vient bien de Hugging Face
|
| 55 |
+
if (event.origin === "https://huggingface.co") {
|
| 56 |
+
// Si le message contient un hash et qu'il est différent du hash actuel
|
| 57 |
+
if (event.data.hash && event.data.hash !== window.location.hash) {
|
| 58 |
+
console.log("Received hash from parent:", event.data.hash);
|
| 59 |
+
// Mettre à jour le hash de l'URL sans recharger la page
|
| 60 |
+
window.location.hash = event.data.hash;
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
};
|
| 64 |
+
|
| 65 |
+
// On synchronise au chargement initial
|
| 66 |
+
syncURLWithParent();
|
| 67 |
+
|
| 68 |
+
// On écoute les changements de hash
|
| 69 |
+
window.addEventListener("hashchange", handleHashChange);
|
| 70 |
+
|
| 71 |
+
// On écoute les messages de la page parente
|
| 72 |
+
window.addEventListener("message", handleParentMessage);
|
| 73 |
+
|
| 74 |
+
// Nettoyage
|
| 75 |
+
return () => {
|
| 76 |
+
window.removeEventListener("hashchange", handleHashChange);
|
| 77 |
+
window.removeEventListener("message", handleParentMessage);
|
| 78 |
+
};
|
| 79 |
+
}, []);
|
| 80 |
+
|
| 81 |
return (
|
| 82 |
<ThemeProvider theme={theme}>
|
| 83 |
<CssBaseline />
|