Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veretennikovalexey/d895bad5ed33706082fb8c9878e01d84 to your computer and use it in GitHub Desktop.
Save veretennikovalexey/d895bad5ed33706082fb8c9878e01d84 to your computer and use it in GitHub Desktop.
Билл выпустил интересное видео про искусственный интеллект и машинное обучение
https://youtube.com/playlist?list=PLWzwUIYZpnJsVT54-mXGl0uQ6Aqvz9SzF&si=LED2Ls-SUf1t0xEs
Вот его описание
<code>
This playlist provides a complete training course that explains how to create containerized images for Artificial Intelligence (ALI) and Machine Learning (ML).
</code>
1. Общий обзор
https://youtu.be/bNRNHI8O9YI?si=aXA4NOl8dpOljXeG
2. Установка программы docker и visual code
https://youtu.be/D70PilWvzew?si=N0luzdHZYQ6TPVg4
3. Объяснение как именно работает docker
https://youtu.be/3xDyLVXJZXg?si=51w782DA8mlhHAjp
4. Создание докер-образа
https://youtu.be/t4NYcHK3Hck?si=KpkjcmB4LQCJKgk2
Здесь мы создаём Dockerfile и начинаем его наполнять текстом
FROM ubuntu:latest
5. Добавляем в наш образ программу питон
https://youtu.be/OdY-0o193xM?si=29IjdvCbUDBS1aOP
6. Накидываем ещё кучу разных програм
https://youtu.be/EfwYeYNZn1Y?si=duef1Rr3bM0eJ2pg
Пока что на этом всё
Это я всё попробовал на чипе Apple M2
Ниже привожу ссылку на образ Билла и на мой личный докер-файл
Пока он ещё не закончен, но работать с ним достаточно увлекательно и интересно
https://github.com/BillRaymond/my-ai-docker-image/blob/main/Dockerfile
FROM ubuntu:latest
# Define the version of Python to install
# "3.11" will the latest, like 3.11.1, 3.11.2, etc
ARG PYVER="3.11"
# Define GitHub settings
# If you use GitHub, GitLab, or a similar service
# you might want to use the same username and email
ARG GITUN="veretennikovalexey"
ARG GITEMAIL="raidex@yandex.ru"
# These settings prevent a timezone prompt when Python installs
# Use this article to find your time zone (TZ):
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
ENV TZ=Europe/Moscow \
DEBIAN_FRONTEND=noninteractive
# Update the apt repo
RUN apt update
# Install Python dependencies and Python
# Learn about the deadsnakes Personal Package Archives, hosted by Ubuntu:
# https://www.youtube.com/watch?v=Xe40amojaXE
RUN apt-get install -y software-properties-common && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt-get install -y python$PYVER \
python3-pip
# Set PYVER as the default Python interpreter
RUN update-alternatives --install /usr/bin/python3 python /usr/bin/python$PYVER 1
RUN update-alternatives --set python /usr/bin/python$PYVER
# Upgrade packages to the latest version
RUN apt-get -y upgrade && \
pip install --upgrade pip
# Install AI and ML tools
RUN apt-get install -y gcc python$PYVER-dev && \
pip install numpy \
matplotlib \
pandas \
tensorflow \
scikit-learn \
jupyterlab \
notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment