MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / setup

Function setup

smallthinker/tools/server/bench/script.js:28–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26const n_ctx_slot = __ENV.SERVER_BENCH_MAX_CONTEXT ? parseInt(__ENV.SERVER_BENCH_MAX_CONTEXT) : 2048
27
28export function setup() {
29 console.info(`Benchmark config: server_url=${server_url} n_prompt=${n_prompt} model=${model} dataset_path=${dataset_path} max_tokens=${max_tokens}`)
30}
31
32const data = new SharedArray('conversations', function () {
33 const tokenizer = (message) => message.split(/[\s,'".?]/)

Callers 1

ssl_newFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected