Comments (5)
Please follow the steps below:
-
Build your own image following this doc: https://pypi.org/project/promptflow-python-bundle/
-
Add "flight=PFMultiContainer" in the url. For example:
https://ml.azure.com/prompts/flow/bb99fa90-4815-4dcb-b9bd-ece6974528be/1db17e33-b6a6-42d1-a092-fb81a4c5a6bd/details?wsid=/subscriptions/96aede12-2f73-41cb-b983-6d11a904839b/resourcegroups/dacai-daily-eastus/providers/Microsoft.MachineLearningServices/workspaces/dacai-daily-ws&flight=PFMultiContainer&tid=72f988bf-86f1-41af-91ab-2d7cd011db47 -
Start session.
from promptflow.
Thank you! @Bowen-Guo
I am able to build the env in AML but, It isn't working when I start the compute session with error being "container not ready in time".
I also want to understand what role flight=PFMultiContainer plays. Could you link back to any official doc?
from promptflow.
@Bowen-Guo : this works for us in the Web UI. However, when triggering runs with the Python SDK, we see below error again. Do we have to apply flight=PFMultiContainer through the SDK as well and if yes, how to do so ? Thanks!
(Run status is 'NotStarted', continue streaming...)
(Run status is 'NotStarted', continue streaming...)
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/vsts/work/1/s/llmops/common/prompt_pipeline.py", line 427, in <module>
main()
File "/home/vsts/work/1/s/llmops/common/prompt_pipeline.py", line 414, in main
prepare_and_execute(
File "/home/vsts/work/1/s/llmops/common/prompt_pipeline.py", line 271, in prepare_and_execute
pf.runs.stream(base_run)
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/promptflow/_sdk/_telemetry/activity.py", line 265, in wrapper
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/promptflow/azure/operations/_run_operations.py", line 693, in stream
raise InvalidRunStatusError(error_message)
promptflow._sdk._errors.InvalidRunStatusError: Failed to submit bulk run due to Automatic runtime is not ready in a fixed timespan, error: Container not started
from promptflow.
Hi @berndku , yes you can set environment variable PF_ENABLE_MULTI_CONTAINER="true" before submitting bulk run.
from promptflow.
Hi @sparse-coder, we are currently in the process of onboarding a new internal feature: multi-container runtime. To put it in a nutshell, the automatic runtime will have multiple docker containers, instead of a single container. This feature can help customer easily use their own images.
This is an ongoing feature and has not been fully on line. So there is no official doc yet.
Set flight "flight=PFMultiContainer" in the uri will enable this feature in the backend.
from promptflow.
Related Issues (20)
- [Feature Request] Hiding Sensitive Inputs HOT 1
- [BUG] Promptflow tracing is not compatible with code-based Azure Web Apps HOT 3
- [BUG] PFClient.run using flow with AsyncIterator raises `TypeError: cannot pickle '_thread.lock' object`
- [BUG] [VSCode Extension]Embedding Tool Error HOT 3
- Set Trace Destination fails with Cosmos DB is disabled error HOT 3
- [BUG] Do now show warning messages from werkzeug HOT 1
- [Feature Request]The server shuts down after one hour of inactivity, which is not good HOT 3
- I need to serve to 0.0.0.0 HOT 3
- [BUG] Confusing, incomplete tutorial HOT 2
- [BUG] [promptflow-evals] Failed to invoke the Azure CLI when running evaluation
- [Feature Request] Allow disabling tracing for large intermediate objects HOT 3
- [BUG] [promptflow-evals] Adversarial simulator cannot generate samples with jailbreak correctly if `max_simulation_results` is large. HOT 3
- [BUG] [promptflow-evals] The `AdversarialSimulator` object cannot be reused. HOT 1
- [Feature Request] Official example for streaming PromptFlow using AutoGen HOT 2
- Deploy fails to Azure Container Apps HOT 1
- [BUG] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 80: invalid start byte HOT 5
- [Feature Request] LLM output token probabilities
- [BUG] HOT 1
- [BUG] Difference in retrieved results between PromptFlow's index Lookup and AI Search Web HOT 1
- [BUG] Documentation not according to actual API spec HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptflow.