{"id":19548865,"url":"https://github.com/sbcd90/machine-learning-rest-server","last_synced_at":"2025-06-13T16:09:13.771Z","repository":{"id":146466197,"uuid":"141062571","full_name":"sbcd90/machine-learning-rest-server","owner":"sbcd90","description":"This project implements a common rest server which can serve tensorflow-serving \u0026 xgboost models.","archived":false,"fork":false,"pushed_at":"2018-07-15T22:27:47.000Z","size":77,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T20:33:55.788Z","etag":null,"topics":["machine-learning","proxygen","rest","serving","tensorflow","xgboost"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/sbcd90.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":"2018-07-15T22:25:02.000Z","updated_at":"2020-11-24T21:03:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"406299a3-6214-47fc-813d-6437e84a3456","html_url":"https://github.com/sbcd90/machine-learning-rest-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sbcd90/machine-learning-rest-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Fmachine-learning-rest-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Fmachine-learning-rest-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Fmachine-learning-rest-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Fmachine-learning-rest-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbcd90","download_url":"https://codeload.github.com/sbcd90/machine-learning-rest-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Fmachine-learning-rest-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259677363,"owners_count":22894678,"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":["machine-learning","proxygen","rest","serving","tensorflow","xgboost"],"created_at":"2024-11-11T03:57:15.538Z","updated_at":"2025-06-13T16:09:13.763Z","avatar_url":"https://github.com/sbcd90.png","language":"C++","readme":"ml_model_rest_server\n====================\n\nThis project implements a common rest server which can serve tensorflow-serving \u0026 xgboost models.\n\nArchitecture\n============\n\n![Architecture.png](https://github.com/sbcd90/machine-learning-rest-server/blob/master/Architecture.PNG)\n\nInstallation\n============\n\n### Dependencies\n\n- [proxygen](https://github.com/facebook/proxygen)\n- [tensorflow](https://github.com/tensorflow/tensorflow)\n- [tensorflow-serving](https://github.com/tensorflow/serving)\n- [xgboost](https://github.com/dmlc/xgboost)\n\n### Steps\n\n- ./configure\n- cd debug\n- make\n\n\nExample\n=======\n\n- To serve tf-serving model, start `tf-serving` first.\n\n```\nPOST http://localhost:11000\n\n{\"input_type\": \"ints\", \"inputs\": [1, 2, 4, 5], \"model_name\": \"tensorflow-feature-sum-model\", \"model_signature_name\": \"tensorflow-feature-sum-model\"}\n```\n\n- Output\n\n```\n{\"y_output\":\"12\"}\n```\n\n- To serve xgboost models, put the `*.cpb` files in the `debug/src/frontends` directory.\n\n```\nPOST http://localhost:11000\n\n{\"input_type\": \"floats\", \"inputs\": [1.0, 2.0, 4.0, 5.0], \"model_name\": \"test.cpb\", \"model_signature_name\": \"xgboost\"}\n\n```\n\n- Output\n\n```\n{\"y_output\":\"0.0001\"}\n```\n\nSample models\n=============\n\nA sample `xgboost test.cpb` model is present in `resources` directory.\n\n\nNext steps\n==========\n\n- docker integration\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbcd90%2Fmachine-learning-rest-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbcd90%2Fmachine-learning-rest-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbcd90%2Fmachine-learning-rest-server/lists"}