Files
wehub-resource-sync f73e710e38
Build site and push to gh-pages / Build site (push) Waiting to run
Build / build (push) Waiting to run
Linter / lint (push) Waiting to run
Security / dependency-review (push) Waiting to run
Security / npm-audit (push) Waiting to run
Security / codeql (push) Waiting to run
Tests / test (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:42:51 +08:00

50 lines
1.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPU sampleTokenFromLogits Tests</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 2em;
}
.label {
margin: 0.5em 0;
font-weight: bold;
}
.result {
margin: 0.5em 0 1.5em 0;
padding: 0.5em;
background: #f4f4f4;
border-radius: 4px;
}
button {
padding: 0.5em 1em;
font-size: 1em;
}
</style>
</head>
<body>
<h1>GPU sampleTokenFromLogits Tests</h1>
<button id="run-tests">Re-run All Tests</button>
<div class="label">Overall:</div>
<div id="gpu-test-label" class="result">Not started.</div>
<div class="label">Logit Processor:</div>
<div id="logit-processor-label" class="result"></div>
<div class="label">Logit Bias:</div>
<div id="logit-bias-label" class="result"></div>
<div class="label">Penalties:</div>
<div id="penalty-label" class="result"></div>
<div class="label">Logprobs:</div>
<div id="logprobs-label" class="result"></div>
<script type="module">
import "./sanity_checks.ts";
document.getElementById("run-tests").onclick = () => {
// Reload the module to rerun tests
window.location.reload();
};
</script>
</body>
</html>