How to default to EGL on GPU and OSMESA on CPU?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
まず、GLFW、EGL、OSMESA のバックエンドの優先設定がどのように選択され、MUJOCO_GL がどのように扱われるかを追跡します。バックエンドの順序を設定可能にする方法、または GPU を考慮したデフォルト値を設定する方法を比較し、その後、GPU マシンでは headless EGL が選択され、CPU のみのマシンではユーザー環境の設定を必要とせずに OSMESA にフォールバックすることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Right now, the preference order is glfw > egl > osmesa. In the common scenario of training an RL agent on a GPU machine, this means windows will pop up, which is typically not desired. I could also pin os.environ['MUJOCO_GL'] = 'egl' in my code to avoid this behavior. However, then the code will crash when running on a CPU-only machine.
Is there any way to set up my RL training code so that it will do headless rendering on GPU but osmesa on CPU, skipping the glfw backend? The goal here is for my RL training code to work out of the box when other people run it, without them having to set up their own env variable.
The potential workarounds I can think of all have their own downsides:
- Detecting whether the machine has a GPU by asking the deep learning framework, to only set the backend to EGL if a GPU is available: This would require importing JAX inside the env processes and hog GPU memory.
- Detecting whether the machine has a GPU by checking for common executable like nvcc or nvidia-smi: This doesn't work in many server environments (including internally at Google), where those binaries aren't available at runtime.
If DMC would just allow specifying a preference order for the backends or change the default to favor EGL over GLFW, that would simplify things a lot.
- 主要言語
- Python
- スター
- 4.7k
- フォーク
- 765
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google-deepmind/dm_control のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
google-deepmind/dm_control#552 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
google-deepmind/dm_control#540 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
google-deepmind/dm_control#537 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
google-deepmind/dm_control#529 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
google-deepmind/dm_control#527 · コメント 1 件 ·
google-deepmind/dm_control の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/skills#1811 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
speaches-ai/speaches#678 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
datalayer/mcp-compose#42 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
conda-forge/spacy-feedstock#177 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
UKGovernmentBEIS/inspect_evals#2523 ·