From 052daf63887de98a74bb3bc15ef0341235ad1aac Mon Sep 17 00:00:00 2001 From: NOBOSO <2692659221@qq.com> Date: Wed, 19 Mar 2025 09:12:13 +0800 Subject: [PATCH] update setup.sh --- README.md | 5 +++-- inference/requirement.txt | 9 --------- inference/setup.sh | 10 ++++++++++ 3 files changed, 13 insertions(+), 11 deletions(-) delete mode 100644 inference/requirement.txt create mode 100644 inference/setup.sh diff --git a/README.md b/README.md index 69889f9..6fa1a53 100644 --- a/README.md +++ b/README.md @@ -253,8 +253,9 @@ cd skywork-r1v/inference ### 2. Set Up the Environment ```shell -pip install -r requirements.txt -pip install flash-attn --no-build-isolation +conda create -n r1-v python=3.10 +conda activate r1-v +bash setup.sh ``` ### 3. Run the Inference Script diff --git a/inference/requirement.txt b/inference/requirement.txt deleted file mode 100644 index 6409002..0000000 --- a/inference/requirement.txt +++ /dev/null @@ -1,9 +0,0 @@ -torch==2.6.0 -pillow==11.1.0 -torchvision>=0.15 -transformers==4.37.2 -einops==0.6.1 -einops-exts==0.0.4 -timm==0.9.12 -bitsandbytes==0.42.0 -accelerate==1.5.2 \ No newline at end of file diff --git a/inference/setup.sh b/inference/setup.sh new file mode 100644 index 0000000..03282bc --- /dev/null +++ b/inference/setup.sh @@ -0,0 +1,10 @@ +pip install torch==2.6.0 +pip install pillow==11.1.0 +pip install torchvision==0.21.0 +pip install transformers==4.37.2 +pip install einops==0.6.1 +pip install einops-exts==0.0.4 +pip install timm==0.9.12 +pip install bitsandbytes==0.42.0 +pip install accelerate==1.5.2 +pip install flash-attn --no-build-isolation