Skip to content

Add gitignore for model checkpoints#238

Open
qvinh215 wants to merge 1 commit into
rohitg00:mainfrom
qvinh215:my_progress
Open

Add gitignore for model checkpoints#238
qvinh215 wants to merge 1 commit into
rohitg00:mainfrom
qvinh215:my_progress

Conversation

@qvinh215
Copy link
Copy Markdown

What this PR does

Kind of change

  • New lesson
  • Fix to an existing lesson
  • Translation
  • New output (prompt, skill, agent, MCP server)
  • Docs / website / tooling

Checklist

  • Code runs without errors with the listed dependencies
  • No comments in code files (docs explain, code is self-explanatory)
  • Built from scratch first, then shown with a framework (for new lessons)
  • Lesson folder matches LESSON_TEMPLATE.md structure
  • ROADMAP.md row for the lesson is a markdown link ([Name](phases/...)), not bare text
  • One lesson per commit (atomic per-lesson rule)
  • Tested locally / code output matches what docs/en.md claims

Phase / lesson

Notes for reviewer

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 31, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

Updated .gitignore to exclude machine learning model files: added patterns for *.pt, *.pth, and *.safetensors artifacts that are commonly generated or cached during model training and experimentation.

Changes

ML Artifact Exclusions

Layer / File(s) Summary
Gitignore ML model patterns
.gitignore
Added three ignore patterns for PyTorch (.pt, .pth) and Hugging Face (.safetensors) model files to prevent committing large model artifacts to the repository.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is an unfilled contributor template with no specific details about the changeset or implementation. Please fill in the PR description template with details about what this change does and why it's needed, such as which model checkpoint formats are being ignored.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding gitignore rules for model checkpoints (*.pt, *.pth, *.safetensors files).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.gitignore:
- Around line 60-62: Remove the duplicate ignore patterns by deleting the
repeated entries "*.pt", "*.pth", and "*.safetensors" (the ones shown in the
diff) so each pattern only appears once in the .gitignore; locate the earlier
occurrences of "*.pt", "*.pth", and "*.safetensors" and remove the later
duplicate block to keep the file clean.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 771f22ff-3307-400f-99fe-4afc67d4f2cf

📥 Commits

Reviewing files that changed from the base of the PR and between 86bbb61 and 4dd37f5.

📒 Files selected for processing (1)
  • .gitignore

Comment thread .gitignore
Comment on lines +60 to +62
*.pt
*.pth
*.safetensors
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove duplicate ignore patterns.

These patterns are already defined on lines 49-51. The duplicate entries provide no additional functionality and should be removed to keep the .gitignore clean and maintainable.

🧹 Proposed fix
 .claude/
 catalog.json
-*.pt
-*.pth
-*.safetensors
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.gitignore around lines 60 - 62, Remove the duplicate ignore patterns by
deleting the repeated entries "*.pt", "*.pth", and "*.safetensors" (the ones
shown in the diff) so each pattern only appears once in the .gitignore; locate
the earlier occurrences of "*.pt", "*.pth", and "*.safetensors" and remove the
later duplicate block to keep the file clean.

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