๐๏ธ 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
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support