Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

article: Optimizing GPU Utilization in Containerized Environments #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

varshith257
Copy link
Contributor

@varshith257 varshith257 commented Aug 20, 2024

Pull Request Template

Closes #8
/claim #8

Writer's Checklist

  • Follow Writing Structure

    • I have used more than two H2 subtitles to organize content.
    • Include an introduction with at least two paragraphs before the first H2 section.
    • Use bold, italic, underline, notes, quotes, TLDRs, and key points as needed.
    • Include code elements where appropriate.
    • Write the article in Markdown format.
  • Fact-Check

    • I have verified all facts and data points included in the article.
  • Assets

    • Save images in the /assets folder.
    • Follow naming conventions: YYYYMMDD_title_of_the_article_IMG_NAME_NO.png.
  • Interlinking

  • Glossary/Definitions

    • Identify and mark new terms that could be added to the Definitions page.
  • Review and Edit

    • Read the article out loud to catch any awkward phrasing.
    • Run the draft through Grammarly or a similar tool to correct grammar and spelling errors.
    • Double-check adherence to the style guide and repository guidelines.

@varshith257 varshith257 force-pushed the add-llm branch 3 times, most recently from 28abb6b to d4d430d Compare August 20, 2024 19:42
@varshith257 varshith257 marked this pull request as draft August 20, 2024 19:44
@varshith257
Copy link
Contributor Author

varshith257 commented Aug 20, 2024

@nkkko Just opening it as a draft as I have worked on almost everything except a few and need to test this through daytona env and manually it is working.

It is blocked by daytonaio/daytona#940

Once this issue is fixed, I will push my code to the repository of this project by testing it thoroughly and documenting the challenges encountered. I have been actively following up in Slack with @Tpuljak on this.

@mojafa
Copy link
Collaborator

mojafa commented Dec 2, 2024

@varshith257 this PR fails DCO checks. Equally please give an update.

@varshith257
Copy link
Contributor Author

@mojafa Sure! Will update with the same

@mojafa
Copy link
Collaborator

mojafa commented Dec 4, 2024

@varshith257 any updates?

@varshith257 varshith257 marked this pull request as ready for review December 4, 2024 15:27
@varshith257
Copy link
Contributor Author

@mojafa Blocked by #126

@varshith257
Copy link
Contributor Author

@mojafa Could you look at #126? It is blocking the updating of the DCO checks.

@mojafa
Copy link
Collaborator

mojafa commented Dec 8, 2024

@varshith257 your PR fails DCO checks

@varshith257
Copy link
Contributor Author

@mojafa Meanwhile can you review this PR until #126 is merged? Then I can push DCO once #126 got merged

@varshith257 varshith257 force-pushed the add-llm branch 2 times, most recently from 6c61e3c to e96dd84 Compare December 13, 2024 18:29
@varshith257
Copy link
Contributor Author

@mojafa @nkkko It's up for review!

Copy link
Collaborator

@mojafa mojafa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@varshith257 Please create a sample project that addresses the issue and use the article to guide us through how you made your project run.
Add screenshots and be very detailed.
Avoid AI generated content.


## Introduction

With the rapid adoption of deep learning and large language models (LLMs), the need for efficient GPU utilization in containerized environments has become more pressing than ever. Containers provide a lightweight, portable solution for deploying applications, but when it comes to GPU-intensive tasks like LLM inference or fine-tuning, careful setup and configuration are crucial to achieving optimal performance.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@varshith257 this sounds really AI generated


#

Let's adjust the draft to align it more closely with the suggested format:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChatGPT...😅
Please review this whole article again.


Example configuration:

```plaintext
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for plaintext, just add ascreenshot of this step

Install the NVIDIA Container Toolkit to enable GPU support in Docker:

```bash
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using MacOs, I don't think this will work locally or even in devcontainer.

Daytona manages the initialization and configuration of the workspace, displaying progress information in the terminal. Once completed, the workspace will be ready for use. Example output during workspace creation:

```plaintext
WORKSPACE | ✓ Request submitted
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add as a screenshot please


### Create a Dockerfile for nanoGPT

Next, create a Dockerfile tailored to run nanoGPT with GPU support. Here’s an example Dockerfile:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you create a project, push to github, do daytona create your-repo-url, and share screenshots or steps to replicate yout project.

you can easily define the dependencies or packages devconatiner.json file.

@mojafa
Copy link
Collaborator

mojafa commented Dec 22, 2024

you can check out this PR did there's step by step: #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPU Utilization in Containerized Environments
2 participants