AI EducademyAIEducademy
AcademicsLabBlogAbout
Sign In
AI EducademyAIEducademy

Free AI education for everyone, in every language.

Learn

  • Academics
  • Lessons
  • Lab
  • Dashboard
  • About

Community

  • GitHub
  • Contribute
  • Code of Conduct

Support

  • Buy Me a Coffee โ˜•

Free AI education for everyone

MIT Licence. Open Source

AI & Engineering Academicsโ€บ๐ŸŒฒ AI Forestโ€บLessonsโ€บContributing to Open Source
๐Ÿค
AI Forest โ€ข Advancedโฑ๏ธ 15 min read

Contributing to Open Source

Contributing to Open Source

Open-source contributions are the fastest way to learn, build credibility, and connect with the AI community. This lesson shows you exactly how to get started and make contributions that matter.

Why Contribute?

Contributing to open source is not charity โ€” it is a strategic career move.

Learning โ€” Reading and modifying production-quality code teaches you patterns that tutorials never cover. You learn how real systems handle edge cases, testing, and scale.

Networking โ€” Your PR reviewers and co-contributors often become collaborators, referees, or even co-founders. The AI open-source community is remarkably tight-knit.

Career impact โ€” Hiring managers at top AI companies actively look at GitHub profiles. A merged PR to a respected project signals competence far more than a certification.

Giving back โ€” You have almost certainly benefited from open-source tools. Contributing is how the ecosystem sustains itself.

๐Ÿคฏ

A 2024 GitHub survey found that 87% of AI/ML hiring managers consider open-source contributions when evaluating candidates, making it the second most valued signal after relevant work experience.

Finding the Right Project

Do not start by contributing to PyTorch or TensorFlow. Start where your contribution will be noticed and valued.

Where to look:

  • GitHub Topics โ€” browse good-first-issue + machine-learning or artificial-intelligence
  • Hugging Face โ€” their transformers, datasets, and diffusers libraries actively welcome contributors
  • LangChain / LlamaIndex โ€” fast-moving projects with many open issues
  • Smaller tools โ€” libraries with 500โ€“5,000 stars often have maintainers who are responsive and grateful for help

How to evaluate a project:

  1. Check the last commit date โ€” is it actively maintained?
  2. Read the CONTRIBUTING.md โ€” does one exist?
  3. Look at open PRs โ€” are they being reviewed, or ignored?
  4. Check issue response times โ€” do maintainers engage?
๐Ÿง Quick Check

What is the best indicator that a project welcomes new contributors?

Open-source contribution workflow from finding a project to merged PR
The contribution journey โ€” from first issue to merged PR

The Contribution Workflow

Every contribution follows the same pattern. Master this once and you can contribute anywhere.

Step 1: Fork and Clone

gh repo fork owner/project --clone
cd project
git remote add upstream https://github.com/owner/project.git

Step 2: Create a Branch

git checkout -b fix/improve-tokeniser-docs

Use descriptive branch names. Prefixes like fix/, feat/, or docs/ help maintainers understand intent at a glance.

Step 3: Make Your Changes

  • Follow the project's coding style exactly
  • Run existing tests before and after your changes
  • Add tests for new functionality
  • Keep changes focused โ€” one concern per PR

Step 4: Commit and Push

git add .
git commit -m "docs: clarify tokeniser padding behaviour for batch inputs"
git push origin fix/improve-tokeniser-docs

Step 5: Open a Pull Request

Write a clear PR description that explains what you changed, why you changed it, and how to test it. Reference the issue number if one exists.

๐Ÿค”
Think about it:

Think about a bug you have encountered in an open-source AI tool. Could you have fixed it yourself and submitted a PR? Often the answer is yes โ€” and that first contribution is the hardest mental barrier to overcome.

Writing Great PRs and Commits

Your PR is your professional calling card. Make it count.

Commit messages โ€” Use conventional commits: feat:, fix:, docs:, test:, refactor:. Keep the subject under 72 characters. Add a body for complex changes.

PR descriptions should include:

  • A one-line summary of the change
  • Context: what problem does this solve?
  • How to test the change
  • Screenshots or output samples if relevant
  • Any trade-offs or decisions you made

Common mistakes to avoid:

  • Mixing unrelated changes in one PR
  • Ignoring the project's linting and formatting rules
  • Not responding to review feedback promptly
  • Force-pushing without warning during review
๐Ÿง Quick Check

What is the most important element of a good pull request?

Beyond Code

Some of the most valuable contributions involve zero code.

Documentation โ€” Fix typos, improve examples, translate docs. Many projects are desperate for documentation help and it is an excellent entry point.

Issue triage โ€” Reproduce bugs, add context, label issues. This is incredibly valuable to maintainers drowning in unprocessed issues.

Translations โ€” Help make AI tools accessible globally. Projects like Hugging Face actively seek translators.

Community support โ€” Answer questions on Discord, Stack Overflow, or GitHub Discussions. Helping others is a contribution too.

๐Ÿ’ก

Pro tip: Documentation PRs have the highest acceptance rate of any contribution type. They are the perfect way to learn a codebase, build trust with maintainers, and set yourself up for larger code contributions later.

Building a Public Profile

Consistent contributions compound into a powerful professional asset.

Practical steps:

  1. Pin your best contributions on your GitHub profile
  2. Write short blog posts about what you learned from each contribution
  3. Engage in project discussions โ€” thoughtful comments get noticed
  4. Attend virtual meetups or conferences related to your projects
  5. Add open-source work to your CV with links to merged PRs
๐Ÿคฏ

Andrej Karpathy's early open-source contributions to neural network libraries helped establish his reputation long before he joined Tesla or OpenAI. Your GitHub profile is a living portfolio.

๐Ÿง Quick Check

Which type of open-source contribution has the highest acceptance rate?

๐Ÿค”
Think about it:

What would your ideal open-source contribution look like? Pick one AI project you use regularly and find one issue you could work on this week. The best time to start contributing is now.

Key Takeaways

  • Open-source contributions accelerate learning, networking, and career growth
  • Start with smaller, actively maintained projects โ€” not mega-repos
  • Master the fork โ†’ branch โ†’ PR workflow and use it everywhere
  • Write clear, focused PRs with descriptive commit messages
  • Documentation and issue triage are valuable contributions that need no code
  • Consistency matters more than scale โ€” regular small contributions compound
Lesson 5 of 100 of 10 completed
โ†AI Startups and Business ModelsMLOps and Deploymentโ†’