Upload InternVL2 implementation
Browse files- Dockerfile +3 -1
- requirements.txt +1 -1
Dockerfile
CHANGED
|
@@ -36,6 +36,8 @@ RUN pip3 install --no-cache-dir --upgrade pip && \
|
|
| 36 |
pip3 install --no-cache-dir torch==2.0.1 torchvision==0.15.2 && \
|
| 37 |
# Install core dependencies
|
| 38 |
pip3 install --no-cache-dir numpy==1.24.3 scipy==1.11.3 requests==2.31.0 && \
|
|
|
|
|
|
|
| 39 |
# Install huggingface dependencies
|
| 40 |
pip3 install --no-cache-dir transformers==4.37.2 safetensors==0.4.1 huggingface_hub==0.19.4 && \
|
| 41 |
# Install lmdeploy and its dependencies first
|
|
@@ -46,7 +48,7 @@ RUN pip3 install --no-cache-dir --upgrade pip && \
|
|
| 46 |
# Install gradio
|
| 47 |
pip3 install --no-cache-dir gradio==3.38.0 && \
|
| 48 |
# Install any remaining requirements
|
| 49 |
-
pip3 install --no-cache-dir packaging==23.2 pyyaml==6.0.1 tqdm==4.66.1
|
| 50 |
|
| 51 |
# Copy the application files
|
| 52 |
COPY . .
|
|
|
|
| 36 |
pip3 install --no-cache-dir torch==2.0.1 torchvision==0.15.2 && \
|
| 37 |
# Install core dependencies
|
| 38 |
pip3 install --no-cache-dir numpy==1.24.3 scipy==1.11.3 requests==2.31.0 && \
|
| 39 |
+
# Install typing-extensions first to ensure proper version for other packages
|
| 40 |
+
pip3 install --no-cache-dir typing-extensions==4.10.0 && \
|
| 41 |
# Install huggingface dependencies
|
| 42 |
pip3 install --no-cache-dir transformers==4.37.2 safetensors==0.4.1 huggingface_hub==0.19.4 && \
|
| 43 |
# Install lmdeploy and its dependencies first
|
|
|
|
| 48 |
# Install gradio
|
| 49 |
pip3 install --no-cache-dir gradio==3.38.0 && \
|
| 50 |
# Install any remaining requirements
|
| 51 |
+
pip3 install --no-cache-dir packaging==23.2 pyyaml==6.0.1 tqdm==4.66.1 openai==1.6.1
|
| 52 |
|
| 53 |
# Copy the application files
|
| 54 |
COPY . .
|
requirements.txt
CHANGED
|
@@ -15,4 +15,4 @@ huggingface_hub==0.19.4
|
|
| 15 |
packaging==23.2
|
| 16 |
pyyaml==6.0.1
|
| 17 |
tqdm==4.66.1
|
| 18 |
-
typing-extensions==4.
|
|
|
|
| 15 |
packaging==23.2
|
| 16 |
pyyaml==6.0.1
|
| 17 |
tqdm==4.66.1
|
| 18 |
+
typing-extensions==4.10.0
|