{"id":19054700,"url":"https://github.com/ssbuild/nn-serving","last_synced_at":"2025-04-24T03:27:34.505Z","repository":{"id":117215219,"uuid":"397785311","full_name":"ssbuild/nn-serving","owner":"ssbuild","description":"轻量级多进程服务","archived":false,"fork":false,"pushed_at":"2023-06-09T02:54:26.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-18T12:17:51.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ssbuild.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":"2021-08-19T01:54:27.000Z","updated_at":"2024-02-29T04:56:42.000Z","dependencies_parsed_at":"2025-04-17T23:39:16.551Z","dependency_job_id":"f6c2e901-93ef-4352-951f-3b403cccb685","html_url":"https://github.com/ssbuild/nn-serving","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fnn-serving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fnn-serving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fnn-serving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbuild%2Fnn-serving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbuild","download_url":"https://codeload.github.com/ssbuild/nn-serving/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250554341,"owners_count":21449589,"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-11-08T23:39:26.396Z","updated_at":"2025-04-24T03:27:34.497Z","avatar_url":"https://github.com/ssbuild.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介\n   nn-serving 是一个神经网络推理服务，推理冻结的模型并提供restful接口.\n   \n\n# 推荐环境\n   linux python \u003e=3.8\n   因对进程的管理和共享内存机制，暂时不支持windows\n    \n\n# 安装模块\npip install -r nn-serving/requirements.txt\n\n\n## 提供三个worker demo\n\n## woker_none\n回显\n\n```commandline\ncd script\nbash start.sh\n\n客户端执行\ncurl http://192.168.16.157:8081/predict -H \"Content-Type: application/json\" -X POST -d '{\"param\":{\"mode\":\"cls\"},\"texts\":[\"111\"]}'\n返回\n{\"param\":{\"mode\":\"cls\"},\"texts\":[\"111\"]}\n\n```\n\n\n## woker_bert\nbert\n\n## woker_regression\n实例demo提供一个回归预测 y = 1 *x1 + 2 * x2\n\n\n```commandline\ncd script\nbash start.sh\n\n客户端执行\ncurl http://192.168.16.157:8081/predict -H \"Content-Type: application/json\" -X POST -d '{\"param\":{\"mode\":\"cls\"},\"texts\":[\"111\"]}'\n\n返回\n[\n    [\n        1.1050461530685425,\n        1.8959273099899292,\n        1.5472604036331177,\n        1.8059791326522827,\n        1.0221816301345825,\n        0.8907957077026367,\n        2.3363492488861084,\n        1.1122045516967773,\n        1.6358901262283325,\n        1.4435145854949951\n    ]\n]\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbuild%2Fnn-serving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbuild%2Fnn-serving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbuild%2Fnn-serving/lists"}