AlienX-Flow-Lab-3D / index.html
ElBalor's picture
Upload index.html with huggingface_hub
f327da8 verified
Raw History Blame Contribute Delete
7.73 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AlienX Flow Lab 3D — Navier-Stokes, Zero-Shot Reynolds</title>
<script src="https://cdn.plot.ly/plotly-2.35.2.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Cormorant+Garamond:ital,wght@0,500;1,500&display=swap');
html,body { background:#050508; color:#cfc9c0; font-family:'Cormorant Garamond',serif; margin:0; }
#rune-canvas {position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.5;}
.wrap { position:relative; z-index:1; max-width:1100px; margin:0 auto; padding:24px 18px 60px; }
.necro-title {text-align:center; font-family:'Cinzel',serif; font-weight:800;
font-size:2.3em; letter-spacing:.12em; margin:.15em 0 0;
background:linear-gradient(90deg,#00ffd0,#e8e3d8 45%,#b26bff);
-webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
animation:necroPulse 3.2s ease-in-out infinite;}
.necro-sub {text-align:center; font-style:italic; color:#8a8577; font-size:1.15em; margin-bottom:.4em;}
@keyframes necroPulse {0%,100%{filter:drop-shadow(0 0 5px #00ffd055)} 50%{filter:drop-shadow(0 0 16px #b26bff99)}}
.card {border:1px solid #1c2b28;border-radius:12px;padding:1.1em 1.3em;margin:1.1em 0;
background:linear-gradient(160deg,#0a0d12,#0d1117); box-shadow:0 0 14px #00ffd014;}
.metrics {font-size:1.15em; color:#9be8d8; border-left:2px solid #00ffd055; padding-left:.8em;}
.metrics b {color:#00ffd0; text-shadow:0 0 8px #00ffd066;}
.impossible {text-align:center; font-family:'Cinzel',serif; font-size:1.45em; color:#e8e3d8; margin:1.1em 0 .3em;}
.impossible .no {color:#00ffd0; text-shadow:0 0 14px #00ffd088;}
code {color:#b26bff;}
a {color:#00ffd0;}
</style>
</head>
<body>
<canvas id="rune-canvas"></canvas>
<div class="wrap">
<div class="necro-title">ALIENX · FLOW LAB 3D</div>
<div class="necro-sub">a 32³ neural operator vs a Navier–Stokes spectral solver — Taylor–Green turbulence</div>
<div class="card">
<div class="impossible">"It was trained on three Reynolds numbers. This one it has never seen."</div>
<div class="impossible">Re = 900. Zero-shot. <span class="no">5.7% rollout RMSE over 25 steps.</span></div>
<div id="metrics" style="height:420px;margin-top:.6em;"></div>
<div class="metrics">
<b>Left: pointwise MSE</b> of the autoregressive rollout against the spectral DNS truth,
at Re=900 (a value outside training {300, 628, 1200}). The dashed line is the same run with
QSA's complex phase channel <b>severed</b> (gi=0) — the phase carries the predictive signal,
~5× degradation when cut. <b>Right:</b> kinetic energy — the vortex decay the network reproduces.
Every step is <b>divergence-free by construction</b> (Biot–Savart recovery):
max |∇·u| ≈ <b>2×10⁻⁶</b>, float32 round-off.
A 421,507-parameter network holding a 32×32×32 turbulence field — no mesh, no grid,
no Reynolds it met before.</div>
</div>
<div class="card">
<div class="impossible">"The mid-plane of the vortex."</div>
<div id="slice" style="height:460px;margin-top:.6em;"></div>
<div class="metrics">|vorticity| at the mid-plane (z = 16 of 32) — <b>solver</b> (top) vs
<b>the operator</b> (bottom), late in the rollout. The vortex filaments, their roll-up,
and their decay were never memorized: the network carries them in <b>complex attention
phase</b>, locally reframed SO(3) geometry, and an isotropic 26-neighbor stencil.</div>
</div>
<div class="card">
<div class="metrics">
<code>pip install alienx-labs</code> → <code>ax.load_turb3d()</code> ·
paper: <a href="https://huggingface.co/ElBalor/AlienX-3D-ISN-Operator/blob/main/PAPER.md">AlienX 3D</a>
· labs: <a href="https://huggingface.co/spaces/ElBalor/AlienX-Sigil-Lab-2D">Sigil Lab 2D</a> ·
<a href="https://huggingface.co/spaces/ElBalor/AlienX-GP-Lab">GP Lab</a></div>
</div>
<div class="necro-sub" style="margin-top:2em;">Turbulence without a grid. — Grimoire of Elbàlor · Eric Yaka · AGPL-3.0</div>
</div>
<script src="data.js"></script>
<script>
(function(){
const c=document.getElementById('rune-canvas'); const x=c.getContext('2d'); let W,H;
const GLYPHS=['\u16A0','\u16A1','\u16A2','\u16A3','\u16A8','\u16A9','\u16AA','\u16AB',
'\u16B1','\u16B2','\u16B3','\u16B7','\u16B9','\u16BA','\u16C1','\u16C3',
'\u2721','\u2725','\u2726'];
let P=[];
function rs(){W=c.width=innerWidth;H=c.height=innerHeight;}
addEventListener('resize',rs); rs();
function spawn(any){return {x:Math.random()*W,y:any?Math.random()*H:-20,
s:8+Math.random()*11, v:.35+Math.random()*.9, o:.08+Math.random()*.22,
g:GLYPHS[(Math.random()*GLYPHS.length)|0], w:Math.random()*6.28};}
for(let i=0;i<30;i++) P.push(spawn(true));
function tick(){
x.clearRect(0,0,W,H);
for(let i=0;i<P.length;i++){let p=P[i]; p.y+=p.v; p.w+=.02;
x.font=p.s+'px serif'; x.fillStyle='rgba(0,255,208,'+p.o+')';
x.save(); x.translate(p.x+Math.sin(p.w)*6,p.y); x.fillText(p.g,0,0); x.restore();
if(p.y>H+24) P[i]=spawn(false);}
requestAnimationFrame(tick);}
requestAnimationFrame(tick);
})();
const THEME={plot_bgcolor:'#0a0d12', paper_bgcolor:'#0a0d12', font:{color:'#cfc9c0'},
margin:{l:60,r:24,t:52,b:48}};
const AX={gridcolor:'#1c2b28', zerolinecolor:'#1c2b28', linecolor:'#3a4a47',
tickfont:{color:'#8a8577'}};
/* ── metrics: pointwise MSE (full vs phase-severed) + kinetic energy ─ */
const steps = FLOW.mse.map((_,i)=>i);
Plotly.newPlot('metrics',[
{x:steps, y:FLOW.mse, mode:'lines', line:{color:'#00ffd0',width:2.4}, name:'Re=900 rollout (zero-shot)'},
{x:FLOW.mse_severed.map((_,i)=>i), y:FLOW.mse_severed, mode:'lines',
line:{color:'#b26bff',width:2,dash:'dot'}, name:'phase severed (gi=0)'},
{x:steps, y:FLOW.energy_truth, mode:'lines', line:{color:'#e8e3d8',width:2}, name:'solver energy (truth)',
xaxis:'x2', yaxis:'y2'},
{x:steps, y:FLOW.energy_model, mode:'lines', line:{color:'#00ffd0',width:2.4,dash:'dash'},
name:'AlienX energy', xaxis:'x2', yaxis:'y2'}],
Object.assign({
height:420, grid:{rows:1,columns:2,pattern:'independent'},
title:{text:'The operator chases the solver — Re=900, a Reynolds it never trained on'},
legend:{orientation:'h', y:-0.32},
xaxis:Object.assign({title:'rollout step'},AX),
yaxis:Object.assign({title:'MSE (log)', type:'log'},AX),
xaxis2:Object.assign({title:'rollout step'},AX),
yaxis2:Object.assign({title:'kinetic energy'},AX)}, THEME), {responsive:true});
/* ── mid-plane slice, truth vs model ──────────────────────────────── */
Plotly.newPlot('slice',[
{z:FLOW.h510_truth, colorscale:'Magma', showscale:false, type:'heatmap',
xaxis:'x', yaxis:'y'},
{z:FLOW.h510_model, colorscale:'Magma', showscale:false, type:'heatmap',
xaxis:'x2', yaxis:'y2'}],
Object.assign({
height:460, grid:{rows:2,columns:1,pattern:'independent'},
title:{text:'|vorticity| mid-plane — DNS solver (top) vs AlienX 3D (bottom)'},
annotations:[
{text:'spectral solver (DNS truth)',x:0.02,y:0.99,xref:'paper',yref:'paper',
showarrow:false,font:{color:'#9be8d8',size:12}},
{text:'AlienX 3D rollout',x:0.02,y:0.44,xref:'paper',yref:'paper',
showarrow:false,font:{color:'#9be8d8',size:12}}],
xaxis:{showgrid:false,showticklabels:false}, yaxis:{showgrid:false,showticklabels:false},
xaxis2:{showgrid:false,showticklabels:false}, yaxis2:{showgrid:false,showticklabels:false}},
THEME), {responsive:true});
</script>
</body>
</html>