{"id":22220936,"url":"https://github.com/nokia/loggpt","last_synced_at":"2025-07-27T16:30:44.329Z","repository":{"id":211522018,"uuid":"728743993","full_name":"nokia/LogGPT","owner":"nokia","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-12T04:38:58.000Z","size":93,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-14T13:07:14.721Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nokia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-07T15:44:39.000Z","updated_at":"2024-04-10T10:41:55.000Z","dependencies_parsed_at":"2023-12-11T19:50:20.849Z","dependency_job_id":null,"html_url":"https://github.com/nokia/LogGPT","commit_stats":null,"previous_names":["nokia/loggpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FLogGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FLogGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FLogGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FLogGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nokia","download_url":"https://codeload.github.com/nokia/LogGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227817164,"owners_count":17824199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-12-02T23:11:01.992Z","updated_at":"2024-12-02T23:11:02.669Z","avatar_url":"https://github.com/nokia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LogGPT: Log Anomaly Detection via GPT\nThis repository contains a Pytorch implementation of [LogGPT](https://arxiv.org/abs/2309.14482), a novel model that employs GPT for log anomaly detection. `LogGPT` is first trained to predict the next log entry based on the preceding sequence ((a) Pre-training). To further enhance the performance of `LogGPT`, a novel reinforcement learning (RL) strategy is proposed to finetune the model specifically for the log anomaly detection task ((b) Fine-tuning).\n\n![alt text](img/LogGPT.PNG)\n\n## Configuration\n- Ubuntu 20.04\n- NVIDIA driver 495.29.05 \n- CUDA 11.3\n- Python 3.9.7\n- PyTorch 1.11.0\n\n## Installation\nThis code requires the packages listed in requirements.txt.\nA virtual environment is recommended to run this code\n\nOn macOS and Linux:  \n```\npython3 -m pip install --user virtualenv\npython3 -m venv env\nsource env/bin/activate\npip install -r requirements.txt\ndeactivate\n```\nReference: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/\n\n## Instructions\nRun and test:\n\n    python3 main.py HDFS\n    or\n    python3 main.py BGL\n    or\n    python3 main.py Thunderbird\n\n\n## Reference\n\nIf you plan to use `LogGPT` in your project, please consider citing [our paper](https://arxiv.org/abs/2309.14482):\n```bash\n@misc{han2023loggpt,\n      title={LogGPT: Log Anomaly Detection via GPT}, \n      author={Xiao Han and Shuhan Yuan and Mohamed Trabelsi},\n      year={2023},\n      eprint={2309.14482},\n      archivePrefix={arXiv},\n      primaryClass={cs.LG}\n}\n```\n\n## Contact\nIf you have any questions, please contact Mohamed Trabelsi (mohamed.trabelsi@nokia-bell-labs.com) and Xiao Han (hanxiao2099@gmail.com).\n\n## Acknowledgements\nThe code is mainly written by Xiao Han during his internship at Nokia Bell Labs.\n\n## License\nLogGPT is CC-BY-NC-4.0 licensed as of now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnokia%2Floggpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnokia%2Floggpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnokia%2Floggpt/lists"}