Skip to content

Instantly share code, notes, and snippets.

View VikashLoomba's full-sized avatar

Vikash Loomba VikashLoomba

View GitHub Profile
@VikashLoomba
VikashLoomba / requirements_gemma4_additive_moe_reviewed_v10_b300_24h.txt
Created May 29, 2026 18:34
Gemma4 additive MoE reviewed v10 B300 24h training script and requirements
# Install PyTorch separately for the B300 / Blackwell CUDA stack, for example:
# pip install --pre --upgrade torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu128
#
# Then install this file:
# pip install --upgrade -r requirements_gemma4_additive_moe_reviewed_v9_streamfix.txt
#
# FlashAttention 2 is optional. The script defaults to SDPA for maximum
# out-of-the-box compatibility. To use FlashAttention 2 after installing it:
# pass --attn_implementation flash_attention_2.
# To install FlashAttention explicitly:
@VikashLoomba
VikashLoomba / PlaywrightServer.ts
Created October 2, 2024 05:48
Launch a custom firefox browser binary (camoufox) with Playwright
import { firefox } from 'playwright';
const config = {
'window.history.length': 4,
'navigator.language': 'en-US',
'navigator.languages': ['en-US'],
};
const browserServer = await firefox.launchServer({
headless: false,
args: ['--config', JSON.stringify(config)],