# 🌱 AI Transformer Optimizer with CO₂ Tracking
[](./LICENSE)
[](https://www.python.org/)
[](https://huggingface.co/docs/transformers/index)
[](https://mlco2.github.io/codecarbon/)
This package provides an **easy wrapper for Transformer-based models** with:
- ✅ **Baseline vs Optimized inference** comparison
- ✅ **Self-pruning** (removing near-zero weights)
- ✅ **Self-freezing** (zeroing inactive activations)
- ✅ **Perplexity, BLEU, ROUGE metrics**
- ✅ **CO₂ emissions tracking** (powered by [CodeCarbon](https://mlco2.github.io/codecarbon/))
---
## 📦 Installation
Clone this repo and install dependencies:
```bash
git clone https://github.com/yourusername/transformer-optimizer.git
cd transformer-optimizer
pip install -r requirements.txt
Raw data
{
"_id": null,
"home_page": "https://github.com/viji123450/ecotransformers",
"name": "ecotransformers",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/45/29/4fe230cf4e9001b2c48cc335750d0f3f29f5acd68dd62d19a750b144df19/ecotransformers-0.1.16.tar.gz",
"platform": null,
"description": "# \ud83c\udf31 AI Transformer Optimizer with CO\u2082 Tracking\r\n\r\n[](./LICENSE)\r\n[](https://www.python.org/)\r\n[](https://huggingface.co/docs/transformers/index)\r\n[](https://mlco2.github.io/codecarbon/)\r\n\r\nThis package provides an **easy wrapper for Transformer-based models** with:\r\n- \u2705 **Baseline vs Optimized inference** comparison \r\n- \u2705 **Self-pruning** (removing near-zero weights) \r\n- \u2705 **Self-freezing** (zeroing inactive activations) \r\n- \u2705 **Perplexity, BLEU, ROUGE metrics** \r\n- \u2705 **CO\u2082 emissions tracking** (powered by [CodeCarbon](https://mlco2.github.io/codecarbon/)) \r\n\r\n---\r\n\r\n## \ud83d\udce6 Installation\r\n\r\nClone this repo and install dependencies:\r\n\r\n```bash\r\ngit clone https://github.com/yourusername/transformer-optimizer.git\r\ncd transformer-optimizer\r\npip install -r requirements.txt\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Optimize LLM outputs and track emissions",
"version": "0.1.16",
"project_urls": {
"Homepage": "https://github.com/viji123450/ecotransformers"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "09f7a9be4b9babd4808874f3281fd186ff4ffa1668dbeea2c134878c2267cf41",
"md5": "c89caa5505dfa8213761a7b500cef8f7",
"sha256": "2ec20e4ce1cfcbdf9fa88db91b6fcd13ecbf36b4708c070decd1e19211760391"
},
"downloads": -1,
"filename": "ecotransformers-0.1.16-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c89caa5505dfa8213761a7b500cef8f7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 11800,
"upload_time": "2025-09-01T16:38:01",
"upload_time_iso_8601": "2025-09-01T16:38:01.475860Z",
"url": "https://files.pythonhosted.org/packages/09/f7/a9be4b9babd4808874f3281fd186ff4ffa1668dbeea2c134878c2267cf41/ecotransformers-0.1.16-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "45294fe230cf4e9001b2c48cc335750d0f3f29f5acd68dd62d19a750b144df19",
"md5": "e502cc4b8219044291dce0d20a7d48ef",
"sha256": "92d8fb7ce07f5761f6ec42b3401eca431cc7032d6d1957dd577b3eaf3ec69d32"
},
"downloads": -1,
"filename": "ecotransformers-0.1.16.tar.gz",
"has_sig": false,
"md5_digest": "e502cc4b8219044291dce0d20a7d48ef",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4504,
"upload_time": "2025-09-01T16:38:02",
"upload_time_iso_8601": "2025-09-01T16:38:02.804751Z",
"url": "https://files.pythonhosted.org/packages/45/29/4fe230cf4e9001b2c48cc335750d0f3f29f5acd68dd62d19a750b144df19/ecotransformers-0.1.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-01 16:38:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "viji123450",
"github_project": "ecotransformers",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "torch",
"specs": []
},
{
"name": "transformers",
"specs": []
},
{
"name": "codecarbon",
"specs": []
},
{
"name": "evaluate",
"specs": []
},
{
"name": "numpy",
"specs": []
}
],
"lcname": "ecotransformers"
}