{"id":19363987,"url":"https://github.com/mike014/pcoptimizerai","last_synced_at":"2026-06-11T01:31:19.440Z","repository":{"id":256185460,"uuid":"854428315","full_name":"Mike014/PCOptimizerAI","owner":"Mike014","description":"PCOptimizerAI is an advanced application designed to optimize computer resources using machine learning and artificial intelligence techniques. By analyzing CPU, RAM, and GPU usage, the app provides personalized recommendations to improve system performance in various scenarios, such as gaming, programming, and deep learning.","archived":false,"fork":false,"pushed_at":"2024-09-09T11:15:13.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T13:12:29.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mike014.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-09T06:43:49.000Z","updated_at":"2024-09-09T11:15:17.000Z","dependencies_parsed_at":"2024-09-09T13:42:28.397Z","dependency_job_id":null,"html_url":"https://github.com/Mike014/PCOptimizerAI","commit_stats":null,"previous_names":["mike014/pcoptimizerai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mike014/PCOptimizerAI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mike014%2FPCOptimizerAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mike014%2FPCOptimizerAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mike014%2FPCOptimizerAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mike014%2FPCOptimizerAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mike014","download_url":"https://codeload.github.com/Mike014/PCOptimizerAI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mike014%2FPCOptimizerAI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34178819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T07:36:03.172Z","updated_at":"2026-06-11T01:31:19.424Z","avatar_url":"https://github.com/Mike014.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PCOptimizerAI\r\n\r\n## Overview\r\n\r\nPCOptimizerAI is an application designed to monitor and optimize system resources such as CPU and RAM usage. It provides real-time recommendations to improve system performance and includes an NLP interface to answer user queries related to system optimization.\r\n\r\n## Modules\r\n\r\n### [bottleneck.py](#bottleneckpy-context)\r\n\r\nThis module defines the `BottleNeck` class, which checks for CPU and RAM usage bottlenecks based on predefined thresholds. It provides recommendations when the usage exceeds these thresholds.\r\n\r\n### [download_model.py](#download_modelpy-context)\r\n\r\nThis script downloads and saves the DistilBERT model for question-answering tasks. The model is saved locally in the specified directory.\r\n\r\n### [monitor.py](#monitorpy-context)\r\n\r\nThis module defines the `ResourceMonitor` class, which monitors CPU and RAM usage over a specified duration and interval. It collects and prints resource usage data.\r\n\r\n### [nlp_interface.py](#nlp_interfacepy-context)\r\n\r\nThis module defines the `NLPQuestionAnswering` class, which sets up a question-answering pipeline using the DistilBERT model. It provides a method to get responses to user questions based on the provided context.\r\n\r\n### [optimizer.py](#optimizerpy-context)\r\n\r\nThis module defines the `ResourceOptimizer` class, which optimizes system resources based on current CPU and RAM usage. It provides recommendations and actions to reduce resource usage when thresholds are exceeded.\r\n\r\n### [reccomendation.py](#reccomendationpy-context)\r\n\r\nThis module defines the `Recommendation` class, which provides recommendations based on a cluster label. The cluster label represents different types of usage scenarios such as light work, intensive work, and gaming.\r\n\r\n### [test_library.py](#test_librarypy-context)\r\n\r\nThis script tests the installation of required libraries (`psutil`, `sklearn`, `transformers`) and prints their versions to ensure they are correctly installed.\r\n\r\n## Usage\r\n\r\n### Running the Application\r\n\r\n1. **Download the Model:**\r\n   Run the `download_model.py` script to download and save the DistilBERT model for question-answering tasks.\r\n\r\n```bash\r\npython download_model.py\r\n```\r\n   \r\n2. **Start the Application:**\r\n   Run the `PCOptimizerAI.py` script to start the PC Optimizer AI application.\r\n\r\n```bash\r\npython PCOptimizerAI.py\r\n```\r\n\r\n### Asking Questions\r\n\r\nThe application includes an NLP interface to answer user queries related to system optimization. Here are some example questions you can ask:\r\n\r\n- \"How can I improve my system's performance?\"\r\n- \"Why is my CPU usage high?\"\r\n- \"How can I free up RAM?\"\r\n- \"What is the current CPU usage?\"\r\n- \"What is the current RAM usage?\"\r\n\r\n## Download and Installation\r\n\r\n1. **Clone the Repository:**\r\n\r\n```bash\r\ngit clone https://github.com/Mike014/PCOptimizerAI.git \r\ncd PCOptimizerAI\r\n```\r\n\r\n2. **Install Dependencies:**\r\n\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n3. **Download the Model:**\r\n\r\n```bash\r\npython download_model.py\r\n```\r\n\r\n4. **Run the Application:**\r\n\r\n```bash\r\npython PCOptimizerAI.py\r\n```\r\n\r\n## Screenshot\r\n\r\n![PCOptimizerAI Screenshot](PCOptimizerAI/screenshots/Screenshots.PNG)\r\n\r\n## Conclusion\r\n\r\nPCOptimizerAI is a comprehensive tool for monitoring and optimizing system resources. With its real-time recommendations and NLP interface, users can easily manage their system's performance and get answers to their optimization-related queries.\r\nThis project is currently a prototype and will be improved and published soon.\r\nAdd `model.safetensor` from [this link](https://drive.google.com/drive/home?hl=it) to the path `modules\\models\\distilbert-base-cased-distilled-squad`.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike014%2Fpcoptimizerai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmike014%2Fpcoptimizerai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike014%2Fpcoptimizerai/lists"}