Skip to content

Instantly share code, notes, and snippets.

import subprocess
import matplotlib.pyplot as plt
import re
# Defining the command template
cmd = "./main \
--seed 147369852 \
--threads {threads} \
--n_predict 128 \
--model ./models/7B/ggml-model-q4_0.bin \
@kiratp
kiratp / tower-grpc-tls.rs
Last active August 28, 2019 04:48
(Mostly working) Sample to use TowerGRPC against a TLS endpoint.
// [dependencies]
// futures = "0.1.27"
// http = "0.1.17"
// tokio = "0.1.21"
// tower-request-modifier = { git = "https://github.com/tower-rs/tower-http" }
// tower-grpc = { version = "0.1.0", features = ["tower-hyper"] }
// tower-service = "0.2"
// tower-util = "0.1"
// tokio-rustls = "0.10.0-alpha.3"