(modelId: string, keepHot: boolean, contextSize: number)
| 164 | .parse(); |
| 165 | |
| 166 | const 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 |
| 189 | const fixLlama13b = (config: LoraConfig) => |
no test coverage detected