Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit e6ac9dd

Browse files
authored
fix: torch dockerfile in podcast part 1 (#675)
1 parent f3a96a6 commit e6ac9dd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/guides/python/ai-podcast-part-1.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ import os
328328
import zipfile
329329
import requests
330330

331-
models = models_bucket.allow('write')
331+
models = models_bucket.allow('write', 'read')
332332
generate_audio = gen_audio_job.allow('submit')
333333
download_audio_model = download_audio_model_topic.allow("publish")
334334

@@ -560,6 +560,7 @@ ENV HANDLER=${HANDLER}
560560

561561
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy PYTHONPATH=.
562562
WORKDIR /app
563+
COPY uv.lock pyproject.toml /app/
563564
RUN --mount=type=cache,target=/root/.cache/uv \
564565
--mount=type=bind,source=uv.lock,target=uv.lock \
565566
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
@@ -584,9 +585,10 @@ ENV NVIDIA_REQUIRE_CUDA="cuda>=8.0"
584585
RUN apt-get update -y && \
585586
apt-get install -y software-properties-common && \
586587
add-apt-repository ppa:deadsnakes/ppa && \
587-
apt-get update -y && \
588588
apt-get install -y python3.11 && \
589-
ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11
589+
ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11 && \
590+
ln -sf /usr/bin/python3.11 /usr/local/bin/python3 && \
591+
ln -sf /usr/bin/python3.11 /usr/local/bin/python
590592

591593
# Copy the application from the builder
592594
COPY --from=builder --chown=app:app /app /app
@@ -712,7 +714,7 @@ If you want to use a GPU you'll need to request a quota increase for G instances
712714
To request a quota increase for G instances in AWS you can follow these steps:
713715

714716
1. Go to the [AWS Service Quotas for EC2](https://console.aws.amazon.com/servicequotas/home/services/ec2/quotas) page.
715-
2. Find/Search for **All G and VT Spot Instance Requests**
717+
2. Find/Search for **Running On-Demand G and VT instances**
716718
3. Click **Request quota increase**
717719
4. Choose an appropriate value, e.g. 4, 8 or 16 depending on your needs
718720

docs/guides/python/podcast-transcription.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ If you want to use a GPU you'll need to request a quota increase for G instances
399399
To request a quota increase for G instances in AWS you can follow these steps:
400400

401401
1. Go to the [AWS Service Quotas for EC2](https://console.aws.amazon.com/servicequotas/home/services/ec2/quotas) page.
402-
2. Find/Search for **All G and VT Spot Instance Requests**
402+
2. Find/Search for **Running On-Demand G and VT instances**
403403
3. Click **Request quota increase**
404404
4. Choose an appropriate value, e.g. 4, 8 or 16 depending on your needs
405405

0 commit comments

Comments
 (0)