MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / a10Model

Function a10Model

inference/deploy.ts:166–186  ·  view source on GitHub ↗
(modelId: string, keepHot: boolean, contextSize: number)

Source from the content-addressed store, hash-verified

164 .parse();
165
166const a10Model = (modelId: string, keepHot: boolean, contextSize: number) =>
167 createLoraConfig(
168 {
169 deployment_config: {
170 autoscaling_config: {
171 min_replicas: keepHot ? 1 : 0,
172 initial_replicas: keepHot ? 1 : 0,
173 max_replicas: 24,
174 target_num_ongoing_requests_per_replica: 8,
175 downscale_smoothing_factor: 0.5,
176 },
177 max_concurrent_queries: 30,
178 },
179 engine_config: {
180 model_id: modelId,
181 max_total_tokens: contextSize,
182 engine_kwargs: { max_num_seqs: 12 },
183 },
184 },
185 { gpuType: "a10" },
186 );
187
188// Otherwise we OOM on A10s
189const fixLlama13b = (config: LoraConfig) =>

Callers 1

deploy.tsFile · 0.85

Calls 1

createLoraConfigFunction · 0.85

Tested by

no test coverage detected