MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / generate_server_name

Function generate_server_name

scripts/generate_config_database_tests.py:63–66  ·  view source on GitHub ↗

Generate a unique server name from recipe.

(recipe: Recipe)

Source from the content-addressed store, hash-verified

61
62
63def generate_server_name(recipe: Recipe) -> str:
64 """Generate a unique server name from recipe."""
65 model_slug = recipe.model.replace("/", "_").replace("-", "_").replace(".", "_")
66 return f"{model_slug}_{recipe.isl}_{recipe.osl}_conc{recipe.concurrency}_gpu{recipe.num_gpus}"
67
68
69def generate_client_name(recipe: Recipe) -> str:

Callers 2

recipe_to_server_configFunction · 0.85
generate_testsFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected