Skip to content

Meap chap 1 5#1

Merged
bahree merged 2 commits into
mainfrom
meap-chap-1-5
Jun 7, 2026
Merged

Meap chap 1 5#1
bahree merged 2 commits into
mainfrom
meap-chap-1-5

Conversation

@bahree

@bahree bahree commented Jun 7, 2026

Copy link
Copy Markdown
Owner

What does this PR do

Related issue

Which chapter or area does this touch

How to test

# example
cd code
pytest chapter05/tests -q

Checklist

  • Tests added or updated for the change (if it's a bug fix or behavior change)
  • pytest -q passes from code/
  • ruff check . passes from code/
  • README or chapter README updated if user-facing instructions changed
  • No secrets, API keys, or personal data in the diff
  • No large binary artifacts (model checkpoints, training runs) in the diff
  • The change does not alter file paths the book references in listings

Additional context

bahree added 2 commits May 28, 2026 10:52
…and compatibility

- Updated `quickstart.py` to enhance dataset preparation logic and improve length filtering feedback.
- Revised `README.md` in chapter 3 to clarify package requirements and installation instructions, removing references to `unsloth`.
- Modified `ch03_data_quality_explore.py` and `ch03_data_quality_helpers.py` to replace `unsloth` with `transformers + PEFT + TRL` for model training.
- Enhanced `rag_minimal.py` with stable token hashing to ensure consistent embeddings across runs.
- Updated `README.md` in chapter 5 to reflect Python version requirement change from 3.10 to 3.12 and clarified QLoRA compatibility on Apple Silicon.
- Adjusted dataset preparation script in chapter 5 to ensure consistent UTC timestamp handling.
- Updated `pyproject.toml` to reflect new dependency versions and compatibility notes.
- Added `ACCELERATORS.md` to provide detailed guidance on running the code across different hardware setups and clarify GPU requirements.
@bahree bahree merged commit d91d0c3 into main Jun 7, 2026
4 checks passed
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