{"id":21533488,"url":"https://github.com/dnth/deployment-frameworks","last_synced_at":"2026-02-08T12:36:32.572Z","repository":{"id":263548395,"uuid":"890720840","full_name":"dnth/deployment-frameworks","owner":"dnth","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-28T06:26:08.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-11T11:32:27.588Z","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/dnth.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,"zenodo":null}},"created_at":"2024-11-19T04:05:23.000Z","updated_at":"2024-11-28T06:26:12.000Z","dependencies_parsed_at":"2024-12-06T21:43:29.326Z","dependency_job_id":"0382cdc2-9d62-4c60-b604-c17514bdf6b1","html_url":"https://github.com/dnth/deployment-frameworks","commit_stats":null,"previous_names":["dnth/deployment-frameworks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnth/deployment-frameworks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnth%2Fdeployment-frameworks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnth%2Fdeployment-frameworks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnth%2Fdeployment-frameworks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnth%2Fdeployment-frameworks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnth","download_url":"https://codeload.github.com/dnth/deployment-frameworks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnth%2Fdeployment-frameworks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29230372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T12:28:20.184Z","status":"ssl_error","status_checked_at":"2026-02-08T12:28:19.510Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-24T02:32:21.588Z","updated_at":"2026-02-08T12:36:32.556Z","avatar_url":"https://github.com/dnth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Model Deployment Frameworks\nThis repo provides a simple example of how to deploy a model using different frameworks.\n\n## Triton Inference Server\nExport the model into the `model_repository` directory.\n\n```bash\ncd triton_inference_server/image_classification_resnet50\n```\n\n```bash\npython export_tv_model.py\n```\n\n\nCreate a config.pbtxt file in the `model_repository/resnet50/` directory with the following content:\n\n```pbtxt\nname: \"resnet50\"\nbackend: \"pytorch\"\nmax_batch_size: 8\ninput [\n  {\n    name: \"input__0\"\n    data_type: TYPE_FP32\n    dims: [ 3, 224, 224 ]\n  }\n]\noutput [\n  {\n    name: \"output__0\"\n    data_type: TYPE_FP32\n    dims: [ 1000 ]\n  }\n]\ninstance_group [\n  {\n    count: 1\n    kind: KIND_GPU\n  }\n]\n```\n\nRun the Triton Inference Server with the ResNet50 model.\n\n```bash\ncd triton_inference_server/image_classification_resnet50\n```\n\n```bash\ndocker run --gpus all --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v ${PWD}/model_repository:/models nvcr.io/nvidia/tritonserver:23.01-py3 tritonserver --model-repository=/models\n```\n\nQuery the model.\n\n```bash\ncd triton_inference_server/image_classification_resnet50\n```\nWith a single image inference.\n```bash\npython single_inference.py\n```\nOr batch inference.\n```bash\npython batch_inference.py\n```\n\n## Ray Serve\nLaunch the Ray application.\n\n```bash\ncd ray_serve\n```\n\n```bash\npython deploy.py\n```\n\nQuery the model.\n\n```bash\ncd ray_serve\n```\n\n```bash\npython query.py\n```\n\n## Ray + Triton\n\nWIP","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnth%2Fdeployment-frameworks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnth%2Fdeployment-frameworks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnth%2Fdeployment-frameworks/lists"}