https://github.com/djleamen/sustain
SUSTAIN is an environmentally-friendly, token-optimized AI wrapper designed to reduce compute costs and increase productivity.
https://github.com/djleamen/sustain
ai gpt gpt-3 gpt-35-turbo gpt-4 openai sustainability sustainable-software
Last synced: 2 months ago
JSON representation
SUSTAIN is an environmentally-friendly, token-optimized AI wrapper designed to reduce compute costs and increase productivity.
- Host: GitHub
- URL: https://github.com/djleamen/sustain
- Owner: djleamen
- Created: 2025-02-02T02:04:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-13T01:34:02.000Z (2 months ago)
- Last Synced: 2025-03-13T02:28:12.348Z (2 months ago)
- Topics: ai, gpt, gpt-3, gpt-35-turbo, gpt-4, openai, sustainability, sustainable-software
- Language: Python
- Homepage:
- Size: 662 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π± SUSTAIN: The Environmentally-Friendly AI π±
## Overview
SUSTAIN is an environmentally-friendly, token-optimized AI wrapper designed to reduce compute costs and increase productivity. By filtering out irrelevant words and phrases from prompts, SUSTAIN minimizes the number of tokens sent to and received from the AI, saving energy and boosting performance.Our mission is to deliver a sustainable, high-efficiency alternative to major large language models (LLMs) while maintaining powerful AI-driven results.π
---
## Why SUSTAIN?
### **Environmental Sustainability**
- Traditional AI systems expend significant energy processing large amounts of token data, much of which is redundant or irrelevant (e.g., greetings, fillers, politeness).
- SUSTAIN significantly reduces token usage, minimizing the carbon footprint of AI queries.
- By promoting shorter, optimized inputs and outputs, SUSTAIN contributes to a greener AI ecosystem.### **Enhanced Productivity**
- Get results faster with condensed, actionable responses.
- Eliminate unnecessary verbose outputs by default, with the option to expand details when needed.
- Powerful, straight-to-the-point professional AI assistant.---
## Features
### **1. Token Optimization Pipeline**
- Preprocesses user prompts to filter out unnecessary words (e.g., "Hello," "Thank you," etc.) and retain only the core intent.
- Example Conversion:
- **Input:** "Could you kindly explain machine learning? Thank you!"
- **Refined input**: "explain machine learning"
- Uses Python's word2number module and intelligently strips detected math from a prompt to calculate locally instead of sending to AI, translating into 100% token savings for all math queries.
- Example:
- **Input:** "What's four times three"
- **Refined input**: 4*3
### **2. Short-Form AI Responses**
- Limits responses to concise, actionable outputs using optimized `max_tokens` settings.
- Example Output:
- **Refined input**: "explain machine learning"
- **Output:** "Machine learning is a field of AI that trains computers to learn patterns from data."### **3. Environmentally-Aware Feedback**
- Track token savings and display eco-friendly metrics to users.
- Example:
- Token savings: 50%
- You have saved: 0.0023 kWh of power and 0.0009 metric tons of COβ emissions---
## Roadmap
- [x] Provide additional eco-feedback on overall token savings
- [x] Enhance the GUI with more user-friendly features and customization options
- [x] Convert to web app and deploy on Azure
- [x] Implement math optimization pipeline
- [x] Implement caching for frequently requested queries to reduce API calls
- [x] Convert to Android, iOS apps
- [ ] Implement dynamic summarization based on context length---
## Contributing
To contribute:
1. Fork the repository.
2. Create a new branch for your feature or fix.
3. Submit a pull request.
---
## Contact
For questions or suggestions, feel free to reach out to us:
- **Project Team:**
- Klein Cafa [email protected]
- Tomasz Puzio [email protected]
- DJ Leamen [email protected]
- Juliana Losada Prieto [email protected]---
## Links
[Try it out!](https://sustainai.ca)[GitHub (Desktop)](https://github.com/djleamen/SUSTAIN)
[GitHub (Web)](https://github.com/Tomasz0720/SUSTAINWebApp)
[GitHub iOS](https://github.com/cafakleinn/SUSTAINForiOS)
[GitHub Android](https://github.com/Tomasz0720/SUSTAINForAndroid)
Letβs build a more sustainable AI future together!