{"id":21974496,"url":"https://github.com/tna0y/gml","last_synced_at":"2026-05-09T00:02:35.649Z","repository":{"id":129352243,"uuid":"377272276","full_name":"tna0y/gml","owner":"tna0y","description":"Run any process with a GPU memory limit","archived":false,"fork":false,"pushed_at":"2021-06-18T23:00:49.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T18:07:02.589Z","etag":null,"topics":["docker","gpu","nvidia","nvidia-docker"],"latest_commit_sha":null,"homepage":"","language":"Go","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/tna0y.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":"2021-06-15T19:25:13.000Z","updated_at":"2021-06-18T23:05:08.000Z","dependencies_parsed_at":"2023-04-27T06:01:20.859Z","dependency_job_id":null,"html_url":"https://github.com/tna0y/gml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tna0y/gml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tna0y%2Fgml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tna0y%2Fgml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tna0y%2Fgml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tna0y%2Fgml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tna0y","download_url":"https://codeload.github.com/tna0y/gml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tna0y%2Fgml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32802533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","gpu","nvidia","nvidia-docker"],"created_at":"2024-11-29T15:45:49.829Z","updated_at":"2026-05-09T00:02:35.623Z","avatar_url":"https://github.com/tna0y.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GML - GPU memory limiter\n![build](https://github.com/tna0y/gml/actions/workflows/go.yml/badge.svg)\n[![GitHub release](https://img.shields.io/github/release/tna0y/gml.svg)](https://GitHub.com/tna0y/gml/releases/)\n\nImpose a GPU memory limit on any process.\n\nUtility was originally designed to provide a workaround for absence of GPU memory limit in `nvidia-docker` but works for any\nprocess on Linux.\n\n## How it works\n\nGML runs any command and monitors its GPU memory usage. If the limit is exceded GML sends a signal (default: SIGKILL) to\nthe process and waits until it returns.\n\n## Install\nPre-compiled binary is available for Linux / x86_64. Install it with following commands:\n```shell script\ncurl -L -o gml https://github.com/tna0y/gml/releases/download/v0.1/gml-linux-x86_64\nchmod +x gml \u0026\u0026 sudo cp gml /usr/local/bin/gml\n```\n\n## Usage\n\n```\nUsage: gml [--limit LIMIT] [--signal SIGNUM] -- COMMAND\n      --help            show help message\n  -l, --limit string    total GPU memory limit for the command (default \"1MB\")\n  -s, --signal string   signal that will be sent to the process if the memory exceeds the limit (default \"SIGKILL\")\n```\n\n### Example\n\n```shell script\ngml --limit 1GB --signal SIGINT -- ./my-gpu-app arg1 arg2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftna0y%2Fgml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftna0y%2Fgml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftna0y%2Fgml/lists"}