Skip to content

Unit1: update to LunarLander-v3 and bump dependency versions - #713

Open
MaxenceQueyrel wants to merge 1 commit into
huggingface:mainfrom
MaxenceQueyrel:update-unit1-lunarlander-v3
Open

MaxenceQueyrel wants to merge 1 commit into
huggingface:mainfrom
MaxenceQueyrel:update-unit1-lunarlander-v3

Conversation

@MaxenceQueyrel

Copy link
Copy Markdown

What

unit1.ipynb and requirements-unit1.txt had drifted from the (already-fixed) unit1_correction.ipynb / requirements-unit1_correction.txt. This PR ports the same fixes over to the student-facing files.

unit1.ipynb

  • Swap LunarLander-v2 → LunarLander-v3 in the cells that actually instantiate/train/evaluate/save/push the environment (env creation, vectorized env creation, model save name, eval env, hub repo_id/commit message), matching exactly what unit1_correction.ipynb already does.
  • Left prose/comment mentions of LunarLander-v2 untouched, along with the pretrained demo checkpoint (Classroom-workshop/assignment2-omar, ppo-LunarLander-v2.zip) and the hosted sb3/ppo-LunarLander-v2 replay video, since those point at real external v2 artifacts and the correction notebook leaves them as-is too.

requirements-unit1.txt

Same 4 dependencies as before, versions bumped to match requirements-unit1_correction.txt's pins:

  • stable-baselines3==2.0.0a5 → 2.9.0
  • swig → 4.4.1
  • gymnasium[box2d] (unpinned) → 1.3.0
  • huggingface_sb3 (unpinned) → 3.0

Why

Gymnasium deprecated LunarLander-v2 in favor of v3, and the pinned dependency versions in requirements-unit1.txt are outdated relative to what's needed to actually run the notebook today, causing install/runtime friction for learners following Unit 1.

🤖 Generated with Claude Code

- Switch LunarLander-v2 -> LunarLander-v3 in the environment creation,
  training, evaluation, model save, and hub push cells (Gymnasium
  deprecated LunarLander-v2 in favor of v3).
- Bump requirements-unit1.txt pins: stable-baselines3==2.9.0,
  swig==4.4.1, gymnasium[box2d]==1.3.0, huggingface_sb3==3.0.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant