Text Generation
Transformers
Safetensors
English
Arabic
code
qwen3_5
image-text-to-text
qwen3.8
rootformer
coding
software-engineering
agentic
arabic-grammarian-algorithms
qata-al-waswasa
next-codewazn-prediction
vllm
bfloat16
conversational
Run this model with HF Jobs
Run enver/rootformer-code-v19.2-qwen38-nwp on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/enver/rootformer-code-v19.2-qwen38-nwp. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/enver/rootformer-code-v19.2-qwen38-nwp on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/enver/rootformer-code-v19.2-qwen38-nwp. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/enver/rootformer-code-v19.2-qwen38-nwp. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use enver/rootformer-code-v19.2-qwen38-nwp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use enver/rootformer-code-v19.2-qwen38-nwp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="enver/rootformer-code-v19.2-qwen38-nwp") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("enver/rootformer-code-v19.2-qwen38-nwp") model = AutoModelForMultimodalLM.from_pretrained("enver/rootformer-code-v19.2-qwen38-nwp", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use enver/rootformer-code-v19.2-qwen38-nwp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "enver/rootformer-code-v19.2-qwen38-nwp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "enver/rootformer-code-v19.2-qwen38-nwp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/enver/rootformer-code-v19.2-qwen38-nwp
- SGLang
How to use enver/rootformer-code-v19.2-qwen38-nwp with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "enver/rootformer-code-v19.2-qwen38-nwp" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "enver/rootformer-code-v19.2-qwen38-nwp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "enver/rootformer-code-v19.2-qwen38-nwp" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "enver/rootformer-code-v19.2-qwen38-nwp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use enver/rootformer-code-v19.2-qwen38-nwp with Docker Model Runner:
docker model run hf.co/enver/rootformer-code-v19.2-qwen38-nwp
Download rootformer_code_runtime/showcase_compare/compare_viewer.html from enver/rootformer-code-v19.2-qwen38-nwp: direct link, hf CLI and curl.
- Browser
- Download file 12.3 kB
-
https://huggingface.co/enver/rootformer-code-v19.2-qwen38-nwp/resolve/main/rootformer_code_runtime/showcase_compare/compare_viewer.html
- Command line
-
hf download hf://enver/rootformer-code-v19.2-qwen38-nwp/rootformer_code_runtime/showcase_compare/compare_viewer.html
-
curl -L -o compare_viewer.html https://huggingface.co/enver/rootformer-code-v19.2-qwen38-nwp/resolve/main/rootformer_code_runtime/showcase_compare/compare_viewer.html
12.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Rootformer-Code v19.2 vs Official Qwen3.8-27B — One-Shot Showcase Studio</title> | |
| <style> | |
| :root { --bg:#070b14; --panel:#0f172a; --card:#111827; --border:#1e293b; --fg:#f1f5f9; --muted:#94a3b8; --accent:#38bdf8; --good:#10b981; --bad:#ef4444; } | |
| * { box-sizing:border-box; } | |
| body { margin:0; background:var(--bg); color:var(--fg); font-family:system-ui,-apple-system,Segoe UI,sans-serif; min-height:100vh; display:flex; flex-direction:column; } | |
| header { padding:16px 24px; border-bottom:1px solid var(--border); background:linear-gradient(180deg,#0c1324,#070b14); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; } | |
| h1 { margin:0; font-size:1.25rem; letter-spacing:-0.01em; } | |
| .sub { color:var(--muted); font-size:0.84rem; margin-top:3px; } | |
| .toolbar { padding:12px 24px; border-bottom:1px solid var(--border); background:#0b1120; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; } | |
| .tabs, .controls { display:flex; flex-wrap:wrap; gap:8px; align-items:center; } | |
| button.tab, button.ctl, select { | |
| background:var(--panel); color:var(--fg); border:1px solid var(--border); border-radius:8px; | |
| padding:8px 13px; font-size:0.84rem; font-weight:600; cursor:pointer; transition:all .15s; | |
| } | |
| button.tab:hover, button.ctl:hover { border-color:var(--accent); } | |
| button.tab.active, button.ctl.active { background:#0ea5e9; color:#04101c; border-color:#38bdf8; } | |
| main { flex:1; padding:16px 20px 24px; display:flex; flex-direction:column; gap:14px; } | |
| .stage { display:grid; gap:16px; flex:1; } | |
| .stage.split { grid-template-columns:1fr 1fr; } | |
| .stage.single { grid-template-columns:1fr; } | |
| @media (max-width:1180px) { .stage.split { grid-template-columns:1fr; } } | |
| .pane { background:var(--card); border:1px solid var(--border); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; min-height:760px; } | |
| .pane-hdr { padding:10px 14px; background:var(--panel); border-bottom:1px solid var(--border); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font-size:0.84rem; } | |
| .pane-hdr a { color:var(--accent); text-decoration:none; font-weight:700; } | |
| .badge { padding:3px 9px; border-radius:999px; font-size:0.74rem; font-weight:700; } | |
| .badge.ok { background:#064e3b; color:#6ee7b7; } | |
| .badge.bad { background:#7f1d1d; color:#fca5a5; } | |
| iframe { width:100%; flex:1; min-height:710px; border:0; background:#020617; } | |
| .prompt-box { padding:10px 14px; background:#0b1120; border:1px solid var(--border); border-radius:10px; font-size:0.83rem; color:#cbd5e1; line-height:1.45; } | |
| .prompt-box strong { color:var(--accent); } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <div> | |
| <h1>Rootformer-Code v19.2 vs. Official Qwen/Qwen3.8-27B — One-Shot Showcase Studio</h1> | |
| <div class="sub">Identical prompts · Official Qwen3.8 sampling (T=0.6, top_p=0.95) · 16,384-token budget · Single-shot · Zero external CDNs.</div> | |
| </div> | |
| <div style="font-size:0.82rem;color:#94a3b8;"> | |
| <a href="https://huggingface.co/enver/rootformer-code-v19.2-qwen38-nwp" target="_blank" style="color:#38bdf8;text-decoration:none;font-weight:700;">Model Repo ↗</a> | |
| · | |
| <a href="https://huggingface.co/datasets/enver/KhalilAlgoWorks" target="_blank" style="color:#38bdf8;text-decoration:none;font-weight:700;">KhalilAlgoWorks ↗</a> | |
| </div> | |
| </header> | |
| <div class="toolbar"> | |
| <div class="tabs" id="appTabs"></div> | |
| <div class="controls"> | |
| <button class="ctl active" id="btnSplit">2-Up Compare</button> | |
| <button class="ctl" id="btnSingle">Full-Width Focus</button> | |
| <select id="leftArm"></select> | |
| <span id="vsLbl" style="color:#64748b;font-weight:700;font-size:0.8rem;">VS</span> | |
| <select id="rightArm"></select> | |
| </div> | |
| </div> | |
| <main> | |
| <div class="prompt-box" id="promptBox"></div> | |
| <div class="stage split" id="stage"></div> | |
| </main> | |
| <script> | |
| const DATA = {"prompts": [{"id": "01_rotating_hexagon_physics", "title": "Bouncing Balls in a Rotating Hexagon (Viral Physics Benchmark)", "prompt": "Build a single self-contained HTML5 Canvas physics simulation of 5 glowing colored balls bouncing inside a continuously rotating regular hexagon with realistic gravity, wall-velocity impulse transfer from the rotating edges, restitution/elasticity, damping/friction, ball-to-ball elastic collisions, smooth motion trails, and spark particles on wall impacts. Ensure balls stay strictly contained inside the rotating hexagon with stable velocity clamping (no energy explosion or escaping). Include a sleek compact collapsible glassmorphism control HUD (Gravity, Rotation Speed, Elasticity, Add/Remove Ball, Pause, Reset) plus live FPS & Kinetic Energy readout. Zero external libraries."}, {"id": "02_khalil_algoworks_website", "title": "KhalilAlgoWorks Interactive Editorial Website (One-Shot Web Design)", "prompt": "Design and build a crisp, complete, visually striking single-file dark-mode editorial website for 'KhalilAlgoWorks — Classical Arabic Grammar to AI Algorithm Atlas'. Include: (1) a modern hero section with a smooth HTML5 Canvas animated 3-radical orbital visualization (Fāʾ, ʿAyn, Lām), sharp typography, and key metric pills (16 Classical Books, 84 Verified Principles, 121/121 Zero-Drift Citations); (2) an interactive searchable & domain-filterable Principle Explorer with 6 real classical-to-AI algorithm cards (Al-Khalīl Mustaʿmal/Muhmal, Sībawayh 5-State Istiqāmah, Al-Ghazālī Tanqīḥ al-Manāṭ, Al-Zajjājī 3-Tier ʿIlal, Ibn Jinnī Al-Tadrīj, Al-Azharī Tawaqquf) where clicking any card opens a clean detail modal showing the Arabic term, AI/ML pattern, and concise pseudocode; (3) an interactive 'Blind NTP vs Next-CodeWazn (NWP-v2)' visual bar benchmark widget. Keep styling clean and modular (~450-650 lines total), zero external CDNs or frameworks."}, {"id": "03_neon_orbital_defense_game", "title": "Neon Orbital Defense Arcade Game (Canvas + WebAudio Synth)", "prompt": "Create a polished, immediately playable single-file HTML5 arcade game called 'MIZAN CORE: Orbital Defense'. The player controls a rotating orbital shield & twin-pulse turret around a glowing central core using mouse/touch or Arrow/A-D keys (Space/Click to fire energy bolts, Shift/Right-Click for an expanding shockwave pulse with cooldown). Waves of geometric enemy drones (chasers, splitters, armored hexes) spawn from all sides with smooth neon glow, particle explosions, subtle screen shake, combo multiplier, escalating waves, WebAudio procedural synth SFX (initialized safely on first user gesture), live Score / Wave / Shield HP / High Score (localStorage) HUD, and clean Start & Game Over overlays with instant Restart. Zero external assets or libraries."}], "arms": [["rootformer_v19_2_qata", "Rootformer-Code v19.2 (v18.7 + Qaṭʿ al-Waswasa)"], ["base_fast", "Official Qwen3.8-27B (Base Fast)"], ["base_blind_xhigh", "Official Qwen3.8-27B (Base Blind xhigh)"]], "results": {"01_rotating_hexagon_physics": {"rootformer_v19_2_qata": {"is_complete_html": true, "chars": 23750, "lines": 593, "js_chars": 15912, "has_style": true, "has_script": true, "has_canvas_or_svg": true, "js_brace_delta": 0, "elapsed_batch_sec": 356.03, "qata_cuts_batch": 3}, "base_fast": {"is_complete_html": true, "chars": 23373, "lines": 578, "js_chars": 14876, "has_style": true, "has_script": true, "has_canvas_or_svg": true, "js_brace_delta": 0, "tokens": 9032, "elapsed_batch_sec": 284.14}, "base_blind_xhigh": {"is_complete_html": false, "chars": 0, "lines": 0, "js_chars": 0, "has_style": false, "has_script": false, "has_canvas_or_svg": false, "js_brace_delta": 0, "truncated_inside_think": true, "tokens": 16384, "elapsed_batch_sec": 336.16}}, "02_khalil_algoworks_website": {"rootformer_v19_2_qata": {"is_complete_html": true, "chars": 41831, "lines": 689, "js_chars": 18833, "has_style": true, "has_script": true, "has_canvas_or_svg": true, "js_brace_delta": 0, "elapsed_batch_sec": 356.03, "qata_cuts_batch": 3}, "base_fast": {"is_complete_html": true, "chars": 41109, "lines": 788, "js_chars": 16779, "has_style": true, "has_script": true, "has_canvas_or_svg": true, "js_brace_delta": 0, "tokens": 14211, "elapsed_batch_sec": 284.14}, "base_blind_xhigh": {"is_complete_html": false, "chars": 0, "lines": 0, "js_chars": 0, "has_style": false, "has_script": false, "has_canvas_or_svg": false, "js_brace_delta": 0, "truncated_inside_think": true, "tokens": 16384, "elapsed_batch_sec": 336.16}}, "03_neon_orbital_defense_game": {"rootformer_v19_2_qata": {"is_complete_html": true, "chars": 36973, "lines": 821, "js_chars": 25007, "has_style": true, "has_script": true, "has_canvas_or_svg": true, "js_brace_delta": 0, "elapsed_batch_sec": 356.03, "qata_cuts_batch": 3}, "base_fast": {"is_complete_html": true, "chars": 33868, "lines": 906, "js_chars": 22532, "has_style": true, "has_script": true, "has_canvas_or_svg": true, "js_brace_delta": 0, "tokens": 12789, "elapsed_batch_sec": 284.14}, "base_blind_xhigh": {"is_complete_html": false, "chars": 0, "lines": 0, "js_chars": 0, "has_style": false, "has_script": false, "has_canvas_or_svg": false, "js_brace_delta": 0, "truncated_inside_think": true, "tokens": 16384, "elapsed_batch_sec": 336.16}}}}; | |
| let curApp = 0; | |
| let mode = "split"; | |
| let leftKey = "rootformer_v19_2_qata"; | |
| let rightKey = "base_fast"; | |
| const tabsEl = document.getElementById("appTabs"); | |
| const leftSel = document.getElementById("leftArm"); | |
| const rightSel = document.getElementById("rightArm"); | |
| const stageEl = document.getElementById("stage"); | |
| const promptBox = document.getElementById("promptBox"); | |
| const btnSplit = document.getElementById("btnSplit"); | |
| const btnSingle = document.getElementById("btnSingle"); | |
| const vsLbl = document.getElementById("vsLbl"); | |
| for (const [k, label] of DATA.arms) { | |
| for (const sel of [leftSel, rightSel]) { | |
| const opt = document.createElement("option"); | |
| opt.value = k; opt.textContent = label; | |
| sel.appendChild(opt); | |
| } | |
| } | |
| leftSel.value = leftKey; | |
| rightSel.value = rightKey; | |
| function makePane(pid, armKey) { | |
| const armLabel = DATA.arms.find(a => a[0] === armKey)[1]; | |
| const m = DATA.results[pid][armKey]; | |
| const fname = `${pid}__${armKey}.html`; | |
| const ok = m && m.is_complete_html; | |
| const badgeTxt = ok | |
| ? `COMPLETE · ${m.lines}L · ${(m.chars/1024).toFixed(1)} KB · JS ${m.js_brace_delta === 0 ? "OK" : "Δ"+m.js_brace_delta}` | |
| : (m && m.truncated_inside_think | |
| ? `DEAD IN <think> · ${m.tokens || 24576} toks · 0 B` | |
| : `INCOMPLETE · ${m ? m.lines : 0}L · ${m ? (m.chars/1024).toFixed(1) : 0} KB`); | |
| return ` | |
| <div class="pane"> | |
| <div class="pane-hdr"> | |
| <div><strong>${armLabel}</strong></div> | |
| <div style="display:flex;align-items:center;gap:10px;"> | |
| <span class="badge ${ok ? 'ok' : 'bad'}">${badgeTxt}</span> | |
| <a href="${fname}" target="_blank">Fullscreen ↗</a> | |
| </div> | |
| </div> | |
| <iframe src="${fname}" sandbox="allow-scripts allow-same-origin"></iframe> | |
| </div>`; | |
| } | |
| function render() { | |
| tabsEl.innerHTML = ""; | |
| DATA.prompts.forEach((p, idx) => { | |
| const b = document.createElement("button"); | |
| b.className = "tab" + (idx === curApp ? " active" : ""); | |
| b.textContent = `${idx + 1}. ${p.title.split("(")[0].trim()}`; | |
| b.onclick = () => { curApp = idx; render(); }; | |
| tabsEl.appendChild(b); | |
| }); | |
| const p = DATA.prompts[curApp]; | |
| promptBox.innerHTML = `<strong>Exact One-Shot Prompt:</strong> ${p.prompt}`; | |
| stageEl.className = "stage " + mode; | |
| rightSel.style.display = mode === "split" ? "" : "none"; | |
| vsLbl.style.display = mode === "split" ? "" : "none"; | |
| btnSplit.classList.toggle("active", mode === "split"); | |
| btnSingle.classList.toggle("active", mode === "single"); | |
| stageEl.innerHTML = mode === "split" | |
| ? makePane(p.id, leftKey) + makePane(p.id, rightKey) | |
| : makePane(p.id, leftKey); | |
| } | |
| btnSplit.onclick = () => { mode = "split"; render(); }; | |
| btnSingle.onclick = () => { mode = "single"; render(); }; | |
| leftSel.onchange = () => { leftKey = leftSel.value; render(); }; | |
| rightSel.onchange = () => { rightKey = rightSel.value; render(); }; | |
| render(); | |
| </script> | |
| </body> | |
| </html> | |