๐Ÿ—๏ธ A1โ€“A5 Upfront Embodied Carbon Calculator (Local LLM)

Overview

This repository contains a lightweight, deterministic calculator for estimating A1โ€“A5 upfront embodied carbon in building materials and construction processes.
It was designed as part of a sustainability engineering project to make carbon assessments more transparent, modular, and interactive.

The tool includes:

  • Rule-based carbon computation following EN15978 and RICS conventions.
  • Local LLM integration (google/flan-t5-base) for generating carbon-reduction suggestions.
  • A Gradio GUI interface that allows users to input materials, quantities, and emission factors, and instantly view results and insights.

โš™๏ธ Features

  • Input: A1โ€“A5 modules, materials, quantities, units, emission factors, notes.
  • Output: Per-row and per-module emissions (kgCOโ‚‚e, tCOโ‚‚e) + total embodied carbon.
  • Integrated suggestion engine:
    • Rule-based heuristics for reduction strategies.
    • LLM-generated design insights using a small local model (no external API).
  • Built with strict unit validation to prevent inconsistent calculations.

๐Ÿง  Technical Notes

This calculator runs entirely offline using Hugging Faceโ€™s google/flan-t5-base model for text generation.
It does not require API keys and can run on CPU (no GPU necessary).

๐Ÿ’ก The local LLM is not used to compute carbon, only to suggest design improvements.


๐Ÿงฉ How to Run

pip install -r requirements.txt
python app.py
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support