Files
pokerfreak/site/docs/index.html
T

71 lines
5.8 KiB
HTML

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Run locally — Poker Sharingan</title><meta name="description" content="Download the models, build the Rust tools and run Poker Sharingan locally.">
<meta property="og:title" content="Run locally — Poker Sharingan"><meta property="og:description" content="Download the models, build the Rust tools and run Poker Sharingan locally.">
<meta property="og:image" content="https://sharingan.poker/media/intro-poster.jpg">
<link rel="canonical" href="https://sharingan.poker/docs/"><style>
:root { --ink:#111; --paper:#fff; --gutter:#8a8a8a; --faint:#c9c9c9; --muted:#595959; --red:#d0141e;
--mono:"Source Code Pro", ui-monospace, Menlo, monospace; --lh:1.8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink:#e8e8e8; --paper:#0d0d0d; --gutter:#6b6b6b; --faint:#3a3a3a; --muted:#a0a0a0; } }
:root[data-theme="dark"] { --ink:#e8e8e8; --paper:#0d0d0d; --gutter:#6b6b6b; --faint:#3a3a3a; --muted:#a0a0a0; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { overflow-x:hidden; margin:0; background:var(--paper); color:var(--ink); font-family:var(--mono); font-size:15px; line-height:var(--lh); }
b, strong, h1, h2, h3, th { font-weight:400; }
a { color:inherit; }
.doc { counter-reset:ln; padding:48px 0 64px; }
.sheet { max-width:96ch; margin:0 auto; padding:0 16px 0 56px; }
.l { counter-increment:ln; position:relative; min-height:calc(var(--lh) * 1em); display:flex; flex-wrap:wrap; justify-content:space-between; column-gap:2ch; }
.l::before { content:counter(ln); position:absolute; left:-5ch; width:3.2ch; text-align:right; font-size:10px; color:var(--gutter); top:.55em; }
.l > * { min-width:0; }
.up { text-transform:uppercase; }
.muted { color:var(--muted); }
.red { color:var(--red); }
.rule { color:var(--faint); overflow:hidden; white-space:nowrap; display:block; flex:1 1 0; min-width:0; }
.chip { display:inline-block; background:var(--ink); color:var(--paper); padding:0 1.5ch; margin:-1px 0; }
.eye { display:inline-block; width:1.05em; height:1.05em; vertical-align:-.17em; margin-left:1.5ch; }
.p { display:block; max-width:80ch; }
.kv { display:grid; grid-template-columns:18ch minmax(0,1fr); width:100%; }
.step { display:grid; grid-template-columns:4ch minmax(0,1fr); width:100%; }
.row { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:2ch; width:100%; }
.row > :last-child { text-align:right; }
.nav { display:flex; flex-wrap:wrap; gap:0 2ch; }
.nav a { text-decoration:none; text-transform:uppercase; color:var(--muted); }
.nav a:hover { color:var(--ink); text-decoration:underline; }
.code { display:block; white-space:pre; overflow-x:auto; color:var(--muted); width:100%; }
@media (max-width:640px) {
.sheet { padding:0 16px 0 40px; } .l::before { left:-4.2ch; }
.kv { grid-template-columns:minmax(0,1fr); }
.code { white-space:pre-wrap; }
}
.film { margin:28px 0 38px; width:100%; }
.film video { display:block; width:100%; height:auto; aspect-ratio:16/9; background:#151515; border:1px solid var(--faint); }
.film figcaption { margin-top:8px; font-size:12px; color:var(--muted); }
h2 { font:inherit; text-transform:uppercase; margin:28px 0 12px; }
p { max-width:76ch; margin:12px 0; }
pre { padding:20px; border:1px solid var(--faint); overflow:auto; font:12px/1.8 var(--mono); }
.hero-title { font-size:clamp(25px,5vw,44px); line-height:1.25; letter-spacing:-.05em; margin:28px 0 18px; }
.actions { display:flex; gap:24px; flex-wrap:wrap; margin:22px 0; }
.actions a { text-underline-offset:5px; }
</style></head>
<body><main class="doc"><div class="sheet">
<nav class="nav" aria-label="Main"><a href="/">Poker Sharingan</a><a href="/docs/">Docs</a><a href="/learn/">Learn</a><a href="https://github.com/markokraemer/poker-sharingan">GitHub</a></nav>
<h1 class="hero-title">Run it locally.</h1>
<p>The source, weights and evaluation tools are available independently. Start with the final SHARINGAN-2 blueprint or explore the earlier SHARINGAN-1 checkpoint.</p>
<h2>01 / Get the code</h2><pre>git clone https://github.com/markokraemer/poker-sharingan.git
cd poker-sharingan
cargo build --release -p sharingan-serve -p bench -p exploit -p pluribus</pre>
<h2>02 / Download the weights</h2>
<p>Follow the download, reassembly and checksum steps in the <a href="https://huggingface.co/markokraemer/sharingan-2">SHARINGAN-2 model card</a>. You also need the buckets-200 card abstraction. The final weight file is about 170 GB; plan disk space and RAM accordingly.</p>
<h2>03 / Start inference</h2><pre>./target/release/sharingan-serve \
--blueprint weights/sharingan-2.plcp \
--buckets data/buckets-200 --sizing medium --no-auth</pre>
<p>Use <code>--no-auth</code> only in an isolated local environment. The <a href="https://github.com/markokraemer/poker-sharingan/blob/main/sharingan-1/serve/README.md">server documentation</a> covers authentication, requests and search configuration.</p>
<h2>04 / Evaluate</h2>
<p>Use identical seeds and configuration for A/B comparisons. Record the model checksum, code revision, sizing and buckets, and report confidence intervals. See the <a href="https://github.com/markokraemer/poker-sharingan/blob/main/docs/EVALUATION.md">evaluation guide</a> and <a href="https://github.com/markokraemer/poker-sharingan/blob/main/docs/RESULTS.md">measured results</a>.</p>
<p class="muted">Both model releases have known profitable attacks. These tools support research; they do not guarantee optimal or unexploitable play.</p>
<footer style="margin-top:48px;color:var(--muted);font-size:12px">Apache-2.0 · Built for research and local experimentation.</footer>
</div></main></body></html>