8fb8cbec83
# Description This PR introduces a throughput benchmarking framework for Promptflow Serve which introduces tests for the following scenarios. - WSGI + Flask + DAG + Sync Nodes - ASGI + FastApi + DAG + Async Nodes - ASGI + FastApi + Flex Flow + Async Nodes It uses a minimum example that has a flow as shown below. The scenario covers 3 parallelly executing nodes (i.e. simulating guardrails) and upon completion of those, one other node that calls an http endpoint (i.e. simulating LLM or custom API).  The tests are controlled by the configuration parameters in the `benchmark/promptflow-serve/test_runner/settings.env` file. The makefile located at `benchmark/promptflow-serve/makefile` # All Promptflow Contribution checklist: - [x] **The pull request does not introduce [breaking changes].** - [x] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [x] **I have read the [contribution guidelines](../CONTRIBUTING.md).** - [x] **Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: [suggested workflow](../CONTRIBUTING.md#suggested-workflow).** ## General Guidelines and Best Practices - [x] Title of the pull request is clear and informative. - [x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [ ] Pull request includes test coverage for the included changes. --------- Signed-off-by: Dasith Wijes <git@dasith.me>
33 lines
981 B
JSON
33 lines
981 B
JSON
{
|
|
"name": "Promptflow-Python39",
|
|
// "context" is the path that the Codespaces docker build command should be run from, relative to devcontainer.json
|
|
"context": ".",
|
|
"dockerFile": "Dockerfile",
|
|
"runArgs": ["-v", "/var/run/docker.sock:/var/run/docker.sock"],
|
|
"remoteEnv": {
|
|
"HOST_PROJECT_PATH": "${localWorkspaceFolder}"
|
|
},
|
|
"customizations": {
|
|
"codespaces": {
|
|
"openFiles": ["README.md", "examples/README.md"]
|
|
},
|
|
"vscode": {
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
"terminal.integrated.shell.linux": "/bin/bash"
|
|
},
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-toolsai.vscode-ai",
|
|
"ms-toolsai.jupyter",
|
|
"redhat.vscode-yaml",
|
|
"prompt-flow.prompt-flow"
|
|
]
|
|
}
|
|
},
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/azure-cli:1": {}
|
|
}
|
|
}
|