允许您创建自己的promptflow Python基础镜像
项目描述
Promptflow python镜像包
此包提供了一种使用您自己的基础镜像来构建和运行promptflow-python的方法,并使用prompt flow包构建高质量的LLM应用程序。
示例用法
# Choose different python base image
FROM python:3.11
# Required: install runit and procps
RUN apt-get update && apt-get install -y runit procps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install promptflow-python-bundle
RUN pip install -U promptflow-python-bundle
# Install promptflow to ensure forward compatibility. It will be phased out in the future.
RUN pip install promptflow
# Set port
ENV PORT 8000
EXPOSE $PORT
CMD ["pfapp"]
目前,我们仅支持基于Ubuntu
和Debian
的镜像,并已验证了AzureML基础镜像和流行的镜像,如ubuntu:22.04
、debian:11
、python:3.10
、continuumio/miniconda3:23.3.1-0
、nginx:stable
等。
如果您的镜像中没有Python或Conda,您需要在docker文件中作为先决条件安装它。
项目详情
关闭
哈希值 for promptflow_python_bundle-0.3.0-py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 9b593dba3e0e0a9bc52632dfd276827bcc5048eab3ad7b0a5de0aa0a4c8b95d2 |
|
MD5 | 28c6062e7c5d018c6014480183a5aa0b |
|
BLAKE2b-256 | 10d65d65c0662316293378f86ae9f67fb15fe198f9e264a9a3d7e2a3c7f10f6a |