1.1.4 • Published 3 years ago

@copewithjeremy/mozolm-grpc-web v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

MozoLM GRPC-Web Service Stubs

Genereated from mozoLM Service Binaries.

Build MacOS

export BAZEL=bazelisk-darwin-amd64
export CC=gcc-9
export CXX=g++-9
curl -sLO "https://github.com/bazelbuild/bazelisk/releases/latest/download/$BAZEL"
chmod +x $BAZEL
./$BAZEL build mozolm/models:lm_scores_jspb_proto
./$BAZEL build mozolm/grpc:service_js_grpc_proto_web

Copy Artifacts

cp -a ../../../bazel-bin/mozolm/models/lm_scores_jspb_proto_pb/. ./
cp -a ../../../bazel-bin/mozolm/grpc/service_js_grpc_proto_web_pb/. ./

Run Locally

./bazel-bin/mozolm/grpc/server_async \
  --server_config="address_uri:\"localhost:9090\" \
    model_hub_config { model_config { type:PPM_AS_FST storage { \
    model_file:\"$TEXTFILE\" ppm_options { max_order: 4 \
    static_model: false } } } }"

Run via Docker

docker run --init --net=host -v ~/:/data gcr.io/mozolm-release/server_async \
   --server_config="address_uri:\"0.0.0.0:9090\" model_hub_config { model_config { \
     type:PPM_AS_FST storage { model_file:\"/data/training.txt\" ppm_options { \
     max_order: 4 static_model: false } } } }"
1.1.4

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago