Efficiently Setting Up Dependencies for Karpathy's llm.c on Kaggle: Seeking Guidance
@calderjo がすでに取り組んでいます。
2024年10月2日 から。
評価
この issue はまだ評価されていません。
説明
Hello Kaggle! 😊
I wasn't sure where the best place to ask something like this was, so I hope it's okay to open this GitHub issue.
Objective
I want to compile and run Andrej Karpathy’s code from this repository.
Requirements
To achieve this, I need to install the following dependencies:
sudo apt-get -y install nvidia-cuda-toolkit
sudo apt install libnccl2 libnccl-dev
sudo apt-get update
sudo apt-get install libnvtoolsext1
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install nvidia-cuda-toolkit
sudo apt-get -y install libcudnn9-dev-cuda-12
sudo apt install libnccl2 libnccl-dev
pip install tiktoken # This is used to tokenize the data to be passed into llm.c
Additionally, the instructions specify that I need to clone this repository into my home directory.
Dockerfile Concerns
I have looked into adding the above dependencies into the Dockerfile.tmpl, but I found the following lines in there:
# Make sure we are on the right version of CUDA
RUN update-alternatives --set cuda /usr/local/cuda-$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION
# NVIDIA binaries from the host are mounted to /opt/bin.
ENV PATH=/opt/bin:${PATH}
It seems like the convention is NOT to use apt-get install here. Am I able to install the above dependencies (e.g., nvidia-cuda-toolkit, etc.) in this Dockerfile? What are your thoughts?
Current Issue
At the moment, I have to install all the dependencies each time I start up the notebook, which is incredibly slow and tedious, as you can imagine.
Compilation Method
I am using a method similar to this notebook to compile and run Karpathy’s code.
Thanks!
Thank you so much for Kaggle! 😄😄
- 主要言語
- Python
- スター
- 2.7k
- フォーク
- 1k
- 平均マージ
- 5時間 55分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Kaggle/docker-python のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Kaggle/docker-python#1482 · リアクション 2 件 ·
-
ذ オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
Kaggle/docker-python#1555 ·
-
bug help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
Kaggle/docker-python#1546 · コメント 4 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Kaggle/docker-python#1515 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Kaggle/docker-python#1506 · リアクション 1 件 ·
Kaggle/docker-python の issue をすべて見る
似ている issue
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-webui/open-webui#30750 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 90/100