ramikrispin, to datascience
@ramikrispin@mstdn.social avatar

In the past few months, I created a bunch of Docker ๐Ÿณ tutorials covering random topics, from a fun setting for a Python ๐Ÿ environment on the CLI to advanced topics such as multi-stage builds ๐Ÿ—๏ธ. I organized all the tutorials under one folder, and I plan to keep updating this folder with future-related ones ๐Ÿ˜Ž.

Currently on my Docker tutorial TODO list:
โžก๏ธ Docker ENTRYPOINT vs CMD
โžก๏ธ Docker multi-architecture build

๐Ÿ”— https://medium.com/@rami.krispin/list/docker-21408ce79e6a

Enjoy!

ramikrispin, to vscode
@ramikrispin@mstdn.social avatar

Getting started with the Dev Containers extension ๐Ÿš€๐Ÿ‘‡๐Ÿผ

The Dev Containers extension is the main reason I moved to VScode, as it provides a native and seamless integration of Docker ๐Ÿณ. I started to work on a sequence of tutorials focusing on the VScode Dev Containers extension. The first tutorial on the sequence focuses on getting started with the Dev Containers extension;

๐Ÿ”—: https://medium.com/towards-data-science/getting-started-with-the-dev-containers-extension-a5ea49abfc34

ramikrispin, to python
@ramikrispin@mstdn.social avatar

Thanks to @medium Staff for selecting my recent article - Introduction to Multi-Stage Image Build for Python ๐Ÿ, for a boost โค๏ธ!

This tutorial provides a step-by-step guide for converting a regular Python Dockerfile into a multi-stage build ๐Ÿš€.

๐Ÿ”—: https://medium.com/towards-data-science/introduction-to-multi-stage-image-build-for-python-41b94ebe8bb3

#python #docker #mlops #medium #datascience

ramikrispin, to python
@ramikrispin@mstdn.social avatar

(1/4) ๐ˆ๐ง๐ญ๐ซ๐จ๐๐ฎ๐œ๐ญ๐ข๐จ๐ง ๐ญ๐จ ๐Œ๐ฎ๐ฅ๐ญ๐ข-๐’๐ญ๐š๐ ๐ž ๐ˆ๐ฆ๐š๐ ๐ž ๐๐ฎ๐ข๐ฅ๐ ๐Ÿณ ๐Ÿ๐จ๐ซ ๐๐ฒ๐ญ๐ก๐จ๐ง ๐Ÿ

The size of the Docker image could quickly increase during the build time. I became more mindful of the image size when I started to deploy on Github Actions. The bigger the image size, the longer the run time and the higher the runtime cost.

This is when you should consider using a multi-stage build ๐Ÿš€.

๐Ÿงต๐Ÿ‘‡๐Ÿผ

#docker #mlops #python #DataScience #medium

ramikrispin,
@ramikrispin@mstdn.social avatar

(4/4) I created the following tutorial for setting up a dockerized Python environment using a multi-stage approach ๐Ÿ‘‡๐Ÿผ

https://medium.com/towards-data-science/introduction-to-multi-stage-image-build-for-python-41b94ebe8bb3

Happy Build! ๐Ÿณ๐Ÿ—๏ธ

ramikrispin, to llm
@ramikrispin@mstdn.social avatar

I am excited to present at the OSDC East conference next week about using LLM to create language to SQL code generator.

https://odsc.com/speakers/data-automation-with-llm/

ramikrispin, to llm
@ramikrispin@mstdn.social avatar

RAG from Scratch with LangChain ๐Ÿฆœ๐Ÿ‘‡๐Ÿผ

FreeCodeCamp released today a new course on building RAG from scratch with LangChain. The course, which is by Lance Martin from LangChain, focuses on the foundations of Retrieval Augmented Generation (RAG).

Course ๐Ÿ“ฝ๏ธ: https://www.youtube.com/watch?v=sVcwVQRHIc8
Code ๐Ÿ”—: https://github.com/langchain-ai/rag-from-scratch

ramikrispin, to llm
@ramikrispin@mstdn.social avatar

Production Monitoring & Automations of LLM with LangSmith ๐Ÿฆœ๐Ÿ‘‡๐Ÿผ

LangChain released a crash course for LangSmith, their DevOps platform for deploying LLM applications into production. The course covers topics such as:
โœ… LLM applications monitoring
โœ… Setting automation
โœ… Performance monitoring

๐Ÿ“ฝ๏ธ: https://www.youtube.com/playlist?list=PLfaIDFEXuae0bYV1_60f0aiM0qI7e1zSf

ramikrispin, to python
@ramikrispin@mstdn.social avatar

(1/2) Setting A Dockerized ๐Ÿณ Python ๐Ÿ Environment โ€” The Elegant Way

A few weeks ago, I created a short tutorial about setting up a dockerized ๐Ÿณ Python ๐Ÿ environment via the CLI, or the hard way. The second tutorial on this topic provides a more elegant and robust approach for setting up a Python dockerized development environment with VScode and the Dev Containers extension ๐Ÿš€.

video/mp4

ramikrispin, to datascience
@ramikrispin@mstdn.social avatar

(1/2) I created the second tutorial on the series of running RStudio inside a container ๐Ÿš€. This tutorial focuses on formalizing the run command from the first tutorial with Docker Compose using the Rocker RStudio image ๐Ÿณ ๐Ÿ‘‡๐Ÿผ

Setting and running RStudio inside a containerized environment is easier than it seems, thanks to the Rocker project.

video/mp4

ramikrispin, to llm
@ramikrispin@mstdn.social avatar

RAG From Scratch - Langchain Tutorial ๐Ÿฆœ๐Ÿ‘‡๐Ÿผ

The RAG From Scratch is a crash course by Lance Martin from LangChain focusing on the foundations of Retrieval Augmented Generation (RAG). This tutorial covers the process of index, retrieval, and generation of a query from scratch ๐Ÿš€.

Video ๐Ÿ“ฝ๏ธ: https://www.youtube.com/playlist?list=PLfaIDFEXuae2LXbO1_PKyVJiQ23ZztA0x
Code ๐Ÿ”—: https://github.com/langchain-ai/rag-from-scratch

Image credit: Tutorial slides

#llm #rag #DataScience #langchain #mahcinelearning #mlops

ramikrispin, to machinelearning
@ramikrispin@mstdn.social avatar

(1/2) MLflow for Machine Learning Development ๐Ÿš€

The MLflow for Machine Learning Development course by Manuel Gil provides a great introduction to the MLflow Python library ๐Ÿ. The course focuses on the MLflow core functionality and workflow and covers the following topics:
โœ… Setting MLflow
โœ… Creating and working with experiences
โœ… Logging metadata (parameters, score, etc.)
โœ… Model registry
โœ… Model tuning
โœ… MLflow project demo

ramikrispin,
@ramikrispin@mstdn.social avatar
ramikrispin, to datascience
@ramikrispin@mstdn.social avatar

(1/3) I created a step-by-step tutorial for launching and customizing the RStudio server in a container using the Rocker RStudio image ๐Ÿณ and the run command ๐Ÿš€ ๐Ÿ‘‡๐Ÿผ

Setting and running RStudio inside a containerized environment is easier than it seems, thanks to the Rocker project. This tutorial mainly focuses on the docker run command.

ramikrispin,
@ramikrispin@mstdn.social avatar

(3/3) This is the first tutorial out of a sequence. The next ones are going to cover:
โžก๏ธ Formalizing the run command with Docker Compose
โžก๏ธ Customizing the Rocker image with additional requirements
โžก๏ธ Create a template
โžก๏ธ Mount databases (e.g., Postgres, etc.)

https://medium.com/towards-data-science/running-rstudio-inside-a-container-e9db5e809ff8

ramikrispin, to machinelearning
@ramikrispin@mstdn.social avatar

I spent my Sunday morning reading the Distributed Machine Learning Patterns by Yuan Tang. The book, as its name implies, focuses on machine learning at scale using tools such as Tensorflow, Kubernetes, Argo, etc. That includes the following topics:
โœ… Handling large dataset
โœ… Approaches for training ML models with distributed machines
โœ… ML workflow and operation design
โœ… Building and deploying ML pipelines

ramikrispin, to llm
@ramikrispin@mstdn.social avatar

Google Gemini AI Course for Beginners

If you want to get started with Google's Gemini API, here is an introductory course by Ania Kubow. This 1-hour course covers the following topics:
Getting started with API (setting access, API key, etc.)
โœ… Tokenization
โœ… Review Gemini models
โœ… Create a chatbot using the API

๐Ÿ“ฝ๏ธ: https://www.youtube.com/watch?v=DJtX3S7qx2s

ramikrispin, to python
@ramikrispin@mstdn.social avatar

MLflow Intro Course ๐Ÿš€

Managing the Complete Machine Learning Lifecycle with MLflow is a three-hour intro to MLflow workshop by Jules S. Damji. The course is for beginners, and it covers the core functionality of MLflow:
โœ… Tracking
โœ… Projects
โœ… Models
โœ… Registry
โœ… UI

Playlist ๐Ÿ“ฝ๏ธ: https://www.youtube.com/playlist?list=PL2ivGIeWjZUhs_NX_xwR8yggvyB6wSnQh

Code ๐Ÿ”—: https://github.com/dmatrix/mlflow-workshop-part-1

ramikrispin, to python
@ramikrispin@mstdn.social avatar

(1/3) Here is one of the most frequent questions I get on most of my Python ๐Ÿ+Docker ๐Ÿณ tutorials - why use a virtual environment inside a container?

The short answer is that you don't necessarily need a virtual environment (VE) to set a reproducible environment inside a container. Docker takes care of both the environment isolation and reproducibility.

I see VE as more of a practical method to organize your Python environment inside a container.

ramikrispin, to Bash
@ramikrispin@mstdn.social avatar

A Bash Scripting Course ๐Ÿš€

Bash is a useful language for automating processes on the command line and has a lot of applications from IT to MLOps. The Bash Scripting on Linux course by Jay LaCroix is an intro course for Bash. The course focuses on the foundation of Bash scripting, and it covers the following topics:
โœ… Working with variables
โœ… If-Else statements
โœ… Loops
โœ… Functions
โœ… Arguments
โœ… Scheduling

Course ๐Ÿ“ฝ๏ธ: https://www.youtube.com/playlist?list=PLT98CRl2KxKGj-VKtApD8-zCqSaN2mD4w

ramikrispin, to python
@ramikrispin@mstdn.social avatar

(1/4) Setting A Dockerized Python Environment โ€” The Hard Way

I create a (relatively) short tutorial about setting up a dockerized ๐Ÿณ Python ๐Ÿ environment on the command line (CLI). Generally, I don't advocate anyone to set their Python development workflow via the CLI. There are better tools to work with Python and Docker, such as VScode with the Dev Containers extension. ๐Ÿงต๐Ÿ‘‡๐Ÿผ

๐Ÿ”—: https://medium.com/p/e62531bca7a0

ramikrispin,
@ramikrispin@mstdn.social avatar

(2/4) Rather, there is a great learning experience here of the core Docker commands and functionalities. The goal here is to see how you can take an official Python image and customize it to your needs.

ramikrispin,
@ramikrispin@mstdn.social avatar

(3/4) This includes the following:
โœ… Running Python base image in interactive mode on the CLI
โœ… Create a Dockerfile and add new components to the base image
โœ… Install Python libraries and tools such as CLI text editor
โœ… Expose a bash terminal and enable the editing of Python scripts
โœ… Use volumes to transfer the container from an ephemeral mode to a persistent

ramikrispin,
@ramikrispin@mstdn.social avatar

(4/4) A more robust approach for running Python on a containerized environment is available in this tutorial:

https://github.com/RamiKrispin/vscode-python

ocramz, (edited ) to azure
@ocramz@sigmoid.social avatar

AzureML is so full of sharp edges that they might as well move the "Troubleshooting" section to "Quickstart"

ramikrispin, to devops
@ramikrispin@mstdn.social avatar

TIL about the daily dev, and I am not sure how I missed it so far ๐Ÿ‘‡๐Ÿผ

https://app.daily.dev/

And...thank you to the person who recommended my recent medium article on that platform!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • Leos
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • slotface
  • khanakhh
  • InstantRegret
  • everett
  • kavyap
  • tsrsr
  • osvaldo12
  • PowerRangers
  • DreamBathrooms
  • cisconetworking
  • Durango
  • hgfsjryuu7
  • ngwrru68w68
  • vwfavf
  • modclub
  • rosin
  • ethstaker
  • GTA5RPClips
  • cubers
  • tacticalgear
  • tester
  • normalnudes
  • anitta
  • All magazines