{"id":15346438,"url":"https://github.com/messense/fasttext-serving","last_synced_at":"2025-04-04T16:15:11.229Z","repository":{"id":28500052,"uuid":"118412266","full_name":"messense/fasttext-serving","owner":"messense","description":"fastText model serving service","archived":false,"fork":false,"pushed_at":"2024-11-13T01:42:35.000Z","size":6081,"stargazers_count":59,"open_issues_count":1,"forks_count":13,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T15:08:40.292Z","etag":null,"topics":["fasttext","model-server","model-serving","nlp"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/messense.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"messense"}},"created_at":"2018-01-22T05:48:05.000Z","updated_at":"2025-01-13T05:47:24.000Z","dependencies_parsed_at":"2023-12-30T06:12:11.683Z","dependency_job_id":"eeb1c060-72f4-427e-80cb-5f5020d0be41","html_url":"https://github.com/messense/fasttext-serving","commit_stats":{"total_commits":179,"total_committers":2,"mean_commits":89.5,"dds":"0.022346368715083775","last_synced_commit":"28fc13b69a4a76cfbb7ac99d000606b21ed9ec79"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Ffasttext-serving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Ffasttext-serving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Ffasttext-serving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Ffasttext-serving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messense","download_url":"https://codeload.github.com/messense/fasttext-serving/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208151,"owners_count":20901570,"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":["fasttext","model-server","model-serving","nlp"],"created_at":"2024-10-01T11:22:33.708Z","updated_at":"2025-04-04T16:15:11.211Z","avatar_url":"https://github.com/messense.png","language":"Rust","readme":"# fasttext-serving\n\n[![GitHub Actions](https://github.com/messense/fasttext-serving/workflows/CI/badge.svg)](https://github.com/messense/fasttext-serving/actions?query=workflow%3ACI)\n[![Crates.io](https://img.shields.io/crates/v/fasttext-serving.svg)](https://crates.io/crates/fasttext-serving)\n[![Docker Pulls](https://img.shields.io/docker/pulls/messense/fasttext-serving)](https://hub.docker.com/r/messense/fasttext-serving)\n\nfastText model serving service\n\n## Installation\n\nYou can download prebuilt binary from [GitHub releases](https://github.com/messense/fasttext-serving/releases),\nor install it using Cargo:\n\n```bash\ncargo install fasttext-serving\n```\n\nUsing Docker:\n\n```bash\ndocker pull messense/fasttext-serving\n```\n\n## Usage\n\n```bash\n$ fasttext-serving --help\n\nUSAGE:\n    fasttext-serving [OPTIONS] --model \u003cmodel\u003e\n\nFLAGS:\n        --grpc       Serving gRPC API instead of HTTP API\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -a, --address \u003caddress\u003e    Listen address [default: 127.0.0.1]\n    -m, --model \u003cmodel\u003e        Model path\n    -p, --port \u003cport\u003e          Listen port [default: 8000]\n    -w, --workers \u003cworkers\u003e    Worker thread count, defaults to CPU count\n```\n\n### Serve HTTP REST API\n\nHTTP API endpoint:\n\n```\nPOST /predict\n```\n\nPost data should be JSON array of string, for example `[\"abc\", \"def\"]`\n\nCURL example:\n\n```bash\n$ curl -X POST -H 'Content-Type: application/json' \\\n     --data \"[\\\"Which baking dish is best to bake a banana bread?\\\", \\\"Why not put knives in the dishwasher?\\\"]\" \\\n     'http://localhost:8000/predict'\n[[[\"baking\"],[0.7152988]],[[\"equipment\"],[0.73479545]]]\n```\n\n### Serve gRPC API\n\nRun the command with `--grpc` to serve gRPC API instead of HTTP REST API.\n\nPlease refer to gRPC Python client documentation [here](./python).\n\n## License\n\nThis work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.\n","funding_links":["https://github.com/sponsors/messense"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessense%2Ffasttext-serving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmessense%2Ffasttext-serving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessense%2Ffasttext-serving/lists"}