{"id":48762120,"url":"https://github.com/lexmount/gpu-dispatcher-api","last_synced_at":"2026-04-13T07:38:54.214Z","repository":{"id":346968689,"uuid":"1191632014","full_name":"lexmount/gpu-dispatcher-api","owner":"lexmount","description":"SageProxy Backend 是一个基于 FastAPI 构建的中间层服务。它的核心职责是安全地代理外部用户的计算请求，并将其转化为 AWS SageMaker Training Jobs，从而实现 GPU 资源的按需调度与自动释放。","archived":false,"fork":false,"pushed_at":"2026-04-07T19:26:51.000Z","size":127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-13T07:38:53.015Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lexmount.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-25T12:43:15.000Z","updated_at":"2026-04-01T03:33:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lexmount/gpu-dispatcher-api","commit_stats":null,"previous_names":["lexmount/gpu-dispatcher-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lexmount/gpu-dispatcher-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmount%2Fgpu-dispatcher-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmount%2Fgpu-dispatcher-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmount%2Fgpu-dispatcher-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmount%2Fgpu-dispatcher-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexmount","download_url":"https://codeload.github.com/lexmount/gpu-dispatcher-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmount%2Fgpu-dispatcher-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31744404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: 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":[],"created_at":"2026-04-13T07:38:53.514Z","updated_at":"2026-04-13T07:38:54.195Z","avatar_url":"https://github.com/lexmount.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPU Instance Broker API\n\n基于 FastAPI 的轻量 REST 服务：算法侧通过 `POST /api/v1/allocate-gpu` 申请 GPU EC2，接口返回公网 IP 与 SSH 私钥。无前端、无 SageMaker / S3 上传逻辑。\n\n详细约定与联调说明见仓库根目录 [develop.md](develop.md)。\n\n## 依赖与启动\n\n```bash\nuv venv .venv \u0026\u0026 source .venv/bin/activate\nuv sync\ncp .env.example .env   # 填入具有 EC2 权限的 AWS 凭证\nuvicorn main:app --reload --host 0.0.0.0 --port 8000\n```\n\n交互文档：\u003chttp://127.0.0.1:8000/docs\u003e\n\n## 调用方保存密钥\n\n将响应中的 `private_key` 写入 `my_key.pem`，执行：\n\n```bash\nchmod 400 my_key.pem\nssh -i my_key.pem ubuntu@\u003cpublic_ip\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexmount%2Fgpu-dispatcher-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexmount%2Fgpu-dispatcher-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexmount%2Fgpu-dispatcher-api/lists"}