Skip to content
View hongping-zh's full-sized avatar

Block or report hongping-zh

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
hongping-zh/README.md

πŸ‘‹ Hi, I'm Hongping Zhang

Independent AI Researcher | Energy Efficiency & Sustainable Computing

I measure how much energy LLM inference actually costs β€” GPU package power, NVML, CV < 2% β€” and publish every number with its basis. No FLOPs math, no vendor specs.


πŸ”¬ Core Discovery

NF4 crossover ranges from ~1.8B (Blackwell, current stack) to ~3.7B (Ada). Below the crossover, quantization costs more energy; above it, quantization saves. The crossover belongs to a card+stack combination, not to an architecture. β€” Measured on RTX 4090D, RTX 5090, A800 with NVML power sampling.

This finding challenges the default assumption that "quantize everything = green." All benchmark data is open and reproducible.

Key Findings:

  • NF4 crossover: ~2.1B (Turing T4) β†’ ~3.7B (Ada 4090) β†’ ~4.8B (Blackwell 5090 v1.1.0); ~1.8B on 5090 with a newer stack
  • INT8 (load_in_8bit=True): default increases energy +17–147% vs FP16; set llm_int8_threshold=0.0 to recover +79% throughput and βˆ’36% energy
  • Below crossover: NF4 adds 11–29% energy (Blackwell, small models)
  • Above crossover: NF4 saves 8–35% energy (Ada, models β‰₯6B)

πŸšͺ Three Ways In

# What Where
1 Run the measurement container β€” reproduce every number on your own GPU (MLCube, NVML, MLCommons-style energy reporting) ecocompute-mlcube β†’
2 Use the web estimator β€” compare precision choices for your GPU Γ— model size, every answer states its basis and confidence quantenergy.tech β†’
3 Ask your AI assistant β€” EcoCompute is listed in the official MCP Registry (io.github.hongping-zh/ecocompute-estimator, 4 tools; Claude Desktop / Cursor setup in the announcement post) MCP endpoint β†’

Also: an interactive Accuracy Γ— Cost Γ— Carbon dashboard β†’, and a GitHub Action β†’ that lints CI for LLM energy waste.


πŸ“ˆ Recognition & Impact

Achievement Details
πŸ€— HuggingFace Optimum Quantization energy findings cited in the official documentation (optimum PR #2410)
πŸ›οΈ MLCommons Invited discussion on quantization energy metrics for MLPerf Inference (inference #2558)
πŸ”₯ torchao maintainers Independently confirmed the RTX 5090 FP8 energy anomaly we reported (ao #4094)
⬆️ Upstream contributions bitsandbytes PR #1882 Β· transformers PR #44407
πŸ“Š Open dataset 360+ configurations across 4 GPU architectures (Turing, Ampere, Ada, Blackwell), CV < 2%
🌍 Zenodo (CC BY 4.0) 10.5281/zenodo.19647290 (main, v1.1.0) · 10.5281/zenodo.22037483 (RTX 4090 deep dive)

πŸ™ Acknowledgments

  • @gkgoing β€” first independent replication (2026-08): TinyLlama-1.1B in NF4 on an RTX 3050 Ti Laptop. The perplexity matched our RTX 4090 measurement to four decimals; the energy number did not β€” and that contrast is the reason this project exists. Submission β†’
  • @amarjithkumar2007-wq β€” AMD GPU (ROCm) detection and fallback (PR #20); context_length applied in measurement path (PR #22).
  • @yesheng-oss β€” backend contribution guide (PR #21): documents how to add llama.cpp, vLLM, or TensorRT-LLM as inference engines.

🎯 Roadmap

  • βœ… HuggingFace integration published Β· βœ… MLCommons engagement Β· βœ… MCP Registry listing
  • πŸ”„ arXiv: "When Does Quantization Save Energy?" β€” seeking endorsement
  • πŸ›‘οΈ VS Code extension: real-time energy linting before code merges
  • 🀝 Enterprise pilots: carbon-aware CI/CD design partners

πŸ’š How You Can Help

Action Link
⭐ Star / run the container ecocompute-mlcube β€” an independent replication is the most valuable contribution
πŸ“Š Submit a measurement Contribution guide β†’ β€” your GPU + model + precision, CC BY 4.0 into the dataset
πŸ“§ arXiv endorsement Email me β†’
🀝 Design partner / pilot Email me β†’

πŸ“š Key Resources


🌍 Making AI development more sustainable, one measured number at a time.

Pinned Loading

  1. ecocompute-dynamic-eval ecocompute-dynamic-eval Public

    ⚑ Compare AI models by Accuracy Γ— Cost Γ— Carbon β€” RTX 5090 benchmarks reveal 4-bit quantization wastes energy on small models

    TypeScript 2

  2. ecocompute-ai ecocompute-ai Public

    πŸ”‹ RTX 5090 energy benchmark suite for LLMs β€” real NVML power data, not estimates

    JavaScript 2

  3. ecocompute-mlcube ecocompute-mlcube Public

    EcoCompute energy-methodology MLCube: measure LLM inference energy (GPU x model x precision x batch) via NVML, MLCommons-style energy reporting.

    Python 2

  4. quant-energy quant-energy Public

    HTML

  5. hongping-zh hongping-zh Public