6ac655533f3faede22d4e44d41a6b6f4b1891ff4,benchmark.py,,,#,13

Before Change


PORT = 7779
PORT_OUT = 7780

common = {
    "model_dir": "/data/cips/save/chinese_L-12_H-768_A-12",
    "num_worker": 2,
    "num_repeat": 5,
    "port": PORT,
    "port_out": PORT_OUT,
    "http_port": None,
    "http_max_connect": "10",
    "cors": "*",
    "max_seq_len": 40,
    "client_batch_size": 2048,
    "max_batch_size": 256,
    "num_client": 1,
    "pooling_strategy": PoolingStrategy.REDUCE_MEAN,
    "pooling_layer": [-2],
    "gpu_memory_fraction": 0.5,
    "prefetch_size": 10,
    "xla": False,
    "cpu": False,
    "verbose": False,
    "config_name": "bert_config.json",
    "ckpt_name": "bert_model.ckpt",
    "tuned_model_dir": None,
    "mask_cls_sep": False,
    "device_map": [],
    "priority_batch_size": 16,
    "fp16": False
}

args = namedtuple("args_nt", ",".join(common.keys()))

After Change


MODEL_DIR = "/data/cips/save/chinese_L-12_H-768_A-12"

common = vars(get_args_parser().parse_args(["-model_dir", MODEL_DIR, "-port", PORT, "-port_out", PORT_OUT]))
common["num_worker"] = 2  // set num workers
common["num_repeat"] = 5  // set num repeats per experiment

args = namedtuple("args_nt", ",".join(common.keys()))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 6ac655533f3faede22d4e44d41a6b6f4b1891ff4
Time: 2019-01-18
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: shubhomoydas/ad_examples
Commit Name: 8b523e71bc72e8e3f1976e2ba2a83f45a4a0c3f6
Time: 2018-05-13
Author: smd.shubhomoydas@gmail.com
File Name: python/aad/plot_class_diversity.py
Class Name:
Method Name:


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 8e68bbc519bdbc17180620638bd7cb76eda756e1
Time: 2018-06-12
Author: wang.alex.c@gmail.com
File Name: src/preprocess.py
Class Name:
Method Name:


Project Name: lingpy/lingpy
Commit Name: 58ab225e313cde281696aca8bdfaff26695d879a
Time: 2013-07-17
Author: mattis.list@posteo.de
File Name: lingpy/compare/lexstat.py
Class Name: LexStat
Method Name: __init__