Skip to content
View aifeifei798's full-sized avatar

Block or report aifeifei798

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
aifeifei798/README.md

Hi, I'm aifeifei798 👋

I work on the unglamorous half of AI — making big models actually fit on small GPUs.

Sparse MoE architectures, from-scratch model reproductions, and the local tooling that surrounds them. Most of it runs on a single consumer card. All of it is public.

Website PyPI harmonic-llm PyPI flashcodec-kv Followers


🧭 What I'm after

Frontier capability is increasingly a memory problem, not a compute problem. My work attacks it from three directions:

Direction The question I keep asking
Heterogeneous sparsity Can a sub-billion active-parameter model hold 7B-class breadth if experts live in host RAM and stream in on demand?
Signal processing on tensors If a KV cache is really a high-dimensional image, what do JPEG and PNG already know that LLM serving doesn't?
Removing the cluster What does a fine-tuning / inference stack look like when the only machine available is the one on your desk?

Every repo below is an attempt at one of those, built end-to-end: kernels and training loops on one side, a usable web UI on the other.


🔬 Selected work

Sparse MoE on consumer hardware

Project What it is
Myriad-MoE-25K-Micro-Experts Dual VRAM dense cores + 25,200 micro-experts streamed from 1.54 GB host RAM with ~40 ms live hot-swap. 0.9B active parameters, 7B+ baseline behaviour. Proposed upstream in transformers#49183.
BigLittle-MoE / DualBigLittle-MoE The hierarchical big-core / micro-expert split that Myriad grew out of — one core per cognitive domain, sparsity only where it pays.
Heretic-Scalpel-TriTier-E2B Tri-Tier Swarm Mixture-of-Adapters on a Gemma 4 (E2B) backbone — three adapters, three roles, one frozen trunk.
Heretic-Scalpel-Swarm-Forge The training side of the series: forge_core (pure-ML library) + FastAPI backend + React console.
myriad-moe-console Web client for the 25K-expert model: streaming chat, collapsible reasoning traces, and a live view of which experts fired.

Architecture reproduction, from scratch

Project What it is
DeepSeek-Pro-Mini A from-zero reimplementation of the DeepSeek-V3/V4 core — MLA latent attention, 8-expert sparse MoE, SqrtSoftplus gating, bounded SwiGLU. 153M total / 60M active, 52k+ tok/s on one GPU, 245M-token pretrain + 900k SFT turns, with a real-time MoE gate heatmap in the terminal.
Mini-Architecture Small reference implementations of the pieces I keep re-deriving.

Inference efficiency & interpretability

Project What it is
flashcodec-kv Treats the sequence axis of a (B,H,S,D) KV cache as an image: JPEG-style block DCT in the frequency domain, PNG-style anchor + delta coding in the time domain. Drop-in transformers 5.x Cache backend.
Harmonic-LLM Training-free amplitude outlier suppression for q_proj / o_proj: crest-factor sidechain detection plus 8-band DCT wave-shaping, one forward hook, no weights touched. On PyPI.

Training & applied ML services

Project What it is
unsloth-gui Browser workbench for single-GPU Unsloth fine-tuning: data mapping, resumable LoRA SFT, live TensorBoard, streaming chat test. Bilingual EN/ZH, 8 GB VRAM to start.
humanizer Local 12B rewrite service that turns AI drafts into human prose — streaming output, 21 writing personas, rewrite-span highlighting.
Timestral / timesfm Zero-shot probabilistic forecasting APIs: univariate/multivariate, missing values, covariates, 21 quantiles, with a Chart.js console.
finaudit-ai / finaudit-ai-fast Multi-agent financial audit and fraud screening with audit-grade guardrails; the -fast variant does the deterministic math in tools instead of tokens.
AI-Website-Generator One prompt in, a complete multi-section website out (Gemini + Jinja2).

Creative, audio & video tooling

Project What it is
ComfyUI-FeiFei ComfyUI node pack: LLM prompt director, prompt enhancing, captioning, aspect-ratio sizing, style/character templates, film grain and tone grading, subtitle cropping.
global-style-photobook-studio Six-style photobook prompt generator (HK / JP / KR / NY / CA / swimwear), 400+ presets, 92 curated sets.
Beautiful-Singing-Voice-VST3 PyQt6 tool that fixes AI-generated vocals: Demucs stem split, fixed DSP chain, A/B monitoring.
music_studio Desktop song workstation on YuE2-3B — lyrics in, 48 kHz stereo track with vocals out.
FastMusic Local music/MTV streaming player: React SPA + Express, HTTP-Range playback, .mkv remux, 10-band EQ and spectrum view.
stereo_eq Real-time PipeWire system-output and mic-monitor EQ for Linux, 60 presets.

Developer tooling

Project What it is
opencode-monitor Read-only dashboard that draws an OpenCode run as a live graph and tells you why it is stuck.
context-mode-opencode-v2 Context-mode wrapped as an OpenCode v2 plugin.
feicms Multi-source resource aggregation: collectors → DB → FastAPI → DaisyUI admin panel.

I also run patched forks of llama.cpp, transformers, and opencode whenever the upstream is the thing standing in the way — a fair share of the commits in my graph are there.


🛠️ Stack

Modelling PyTorch · CUDA · Triton · Hugging Face Transformers · Unsloth · bitsandbytes Serving FastAPI · Uvicorn · SSE streaming · vLLM-style batching · host-pinned expert paging Interfaces React + Vite · Tailwind · Jinja2 · PyQt6 · ComfyUI nodes · JUCE/VST3 Audio/DSP Demucs · PipeWire · ffmpeg · DCT / EQ / spectrogram work Everyday Python · TypeScript · Linux (Mint/Debian) · systemd · Docker · uv


📊 GitHub

GitHub stats Top languages

Currently: squeezing more experts into less RAM, and teaching a 60M-active model to write like it isn't one. Issues and PRs are the best way to reach me — I read everything.

Pinned Loading

  1. unsloth-gui unsloth-gui Public

    Lightweight local web UI for fine-tuning LLMs with Unsloth on a single GPU (FastAPI + Jinja2). Data prep, LoRA SFT training with resume and live TensorBoard, streaming chat testing. Bilingual EN/ZH…

    Python 5 1

  2. ComfyUI-FeiFei ComfyUI-FeiFei Public

    FeiFei's ComfyUI custom nodes (CATEGORY = FeiFei): LLM-driven Prompt Director, prompt enhancing, image captioning, aspect-ratio sizing, style/character templates, film grain and tone grading, water…

    Python 3

  3. Heretic-Scalpel-TriTier-E2B Heretic-Scalpel-TriTier-E2B Public

    Heretic-Scalpel-TriTier-E2B introduces an innovative Tri-Tier Swarm Mixture-of-Adapters (Tri-Tier Swarm MoE) architecture built on top of the Gemma 4 (E2B) backbone.

    Python 1

  4. Heretic-Scalpel-Swarm-Forge Heretic-Scalpel-Swarm-Forge Public

    三段式 MoE(大核汇聚 + 小核稀疏专家)微调框架:forge_core 纯 ML 库 + FastAPI 后端 + React 控制台

    Python

  5. Myriad-MoE-25K-Micro-Experts Myriad-MoE-25K-Micro-Experts Public

    Decoupling Multitask Cognitive Interference via Dual VRAM Dense Cores and Host-Pinned Streaming Micro-Experts A 0.9B active-parameter architecture matching 7B+ baseline capabilities, featuring 25,2…

    Python

  6. flashcodec-kv flashcodec-kv Public

    Compress Transformer KV cache tensors as high-dimensional image signals: JPEG-style DCT (lossy frequency domain) + PNG-style deltas (lossless time domain), with a drop-in transformers 5.x Cache bac…

    Python