프로젝트
GitHub에서 보기
messense/fasttext-serving
소개
fastText model serving service
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalfasttext-serving
fastText model serving service
Installation
You can download prebuilt binary from GitHub releases, or install it using Cargo:
cargo install fasttext-serving
Using Docker:
docker pull messense/fasttext-serving
Usage
$ fasttext-serving --help
USAGE:
fasttext-serving [OPTIONS] --model <model>
FLAGS:
--grpc Serving gRPC API instead of HTTP API
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-a, --address <address> Listen address [default: 127.0.0.1]
-m, --model <model> Model path
-p, --port <port> Listen port [default: 8000]
-w, --workers <workers> Worker thread count, defaults to CPU count
Serve HTTP REST API
HTTP API endpoint:
POST /predict
Post data should be JSON array of string, for example ["abc", "def"]
CURL example:
$ curl -X POST -H 'Content-Type: application/json' \
--data "[\"Which baking dish is best to bake a banana bread?\", \"Why not put knives in the dishwasher?\"]" \
'http://localhost:8000/predict'
[[["baking"],[0.7152988]],[["equipment"],[0.73479545]]]
Serve gRPC API
Run the command with --grpc to serve gRPC API instead of HTTP REST API.
Please refer to gRPC Python client documentation here.
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.
관련 프로젝트 살펴보기
불러오는 중…