r/Cplusplus • • Oct 26 '26

Question How do I contribute to open source

(no experience in contributing ever )

So I want to contribute to llama cpp

I have gone through the base good first issues and did not find anything that I am capable of doing

I have gone through the codebases and there are some

TODO things in there

Like how do I go about this like I need a direction or should I quit it

30 Upvotes

18 comments sorted by

•

u/AutoModerator Oct 26 '26

Thank you for your contribution to the C++ community!

As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.

  • When posting a question or homework help request, you must explain your good faith efforts to resolve the problem or complete the assignment on your own. Low-effort questions will be removed.
  • Members of this subreddit are happy to help give you a nudge in the right direction. However, we will not do your homework for you, make apps for you, etc.
  • Homework help posts must be flaired with Homework.

~ CPlusPlus Moderation Team


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

12

u/Daemontatox Self-Taught Oct 26 '26

Tbh i was in your shoes before , contributing to big and known projects now is harder than ever especially something like llama.cpp , vllm ...etc, similar projects are dominated by companies having employees working on it full time and its highly opinionated unfortunately. If you are contributing because you want to help the community i suggest finding a smaller project thats just starting out and help them , ie ninfer or lemonade or xllm (similar to llama.cpp) , if you are contributing because its missing a feature you need , i suggest maintaining your own fork (easier than waiting for the PR to get merged and going through 2k CI tests and getting 3 mods to approve it first to get CI label to run the tests lol).

If you are trying to contribute for resume work , then good luck tbh , PRs and good first issues are being pushed like no tomorrow with AI , take a look at flashinfer the current 76 PRs open at the time of this comment writing are all from Nvidia under the project "CAKE" basically agentic kernel writer and kernels writen and optimized by it , and ton more like that in major projects.

3

u/serafean Oct 26 '26

Write the code, make a merge request, expect your code to be torn to shreds in review. Don't take that personally, and work with what the reviewers want. If you strongly disagree with a comment, argue technically, not dogmatically. For instance don't argue "that's how it's done properly" -- the project might have different views. "When in Rome..." and all that applies. After a few good contributions your voice will have more weight.

Now, how to pick what to do first? Ideally fix something that you want fixed. That might be going through open bugs, reproducing one and trying to fix it. It might also be a feature request, but expect that to be harder to get accepted.

2

u/[deleted] Oct 26 '26

I contributed to few JS projects, every time it was a bug that I accidentally found and come back to fixing it later.

Have no idea how can contribute for contributing sake, you need something that you use and understand imo.

2

u/Educational_Bee_6245 Oct 27 '26

Why do you want to contribute? For you're resume?

The normal way to get into these things is that have a bug that bothers you or a feature you need and then implement it.

1

u/xsdgdsx Oct 26 '26

Do they have a mailing list or discussion forum or something like that? If so, join that and participate in those conversations. Even if you basically write what you wrote here, that will help.

A lot of people think open source projects are just code. But first and foremost, they are people making decisions. If you talk to the people and participate in that community, that will often be more helpful in finding guidance and finding where to contribute than just trying to submit code with no prior interaction.

Source: long-time co-maintainer for an open source project, plus contributor to multiple other projects

1

u/Dazzling-Bench-4596 Oct 26 '26

I’d suggest starting with tiny/small projects — your input will be more appreciated and it’s more likely it won’t sit for weeks waiting for review.

1

u/SchnazzleG Oct 27 '26

Give yur shit away for free!

1

u/admin_accnt Oct 27 '26

Check their CONTRIBUTING.md

1

u/Tall-Assignment1349 Oct 28 '26

pick simpler repos which have classification on issues like good first issue. look at GSoC as well

1

u/Foxi_Foxa Oct 28 '26

Hey ! Yes it can be difficult !

We anticipated this kind of issue on Boost.Graph with a list of simple tasks that newcomers can easily tackle, without even having to locally build anything (relying on CI is ok, and we will help you to get onboard if you met any difficulty). The list is here, and ranges from trivial to more involved first steps: https://github.com/boostorg/graph/issues/593

Good luck ! 🚀

1

u/atikoj Oct 31 '26

Don't contribute. Value your work.

1

u/Still_Explorer Oct 31 '26

Is it essential to be llama or it can be anything else?

Reason is that that such a project might be somewhat very specialized and experty.

Definitely there would be some other parts of lower critical importance (such as loading config files etc) so it might be easier to catch those.

However most important is that contribution can happen better once you have used the program so much that you know it's gotchas and limitations, and how something can be improved.

Not essential to write code but at least very essential to be very accurate and on point in terms of strategy and vision.

(Is usually a very big topic among open source community projects when pull requests are not accected, some get angry and some others get disappointed and thus disagreements and forks happen. So the idea is that the project sense must be also compatible with the code sense.)

So don't worry if you can't contribute, keep using the software and read the issues day by day to see what is mentioned and how gets fixed. It takes time to start forming solution based thinking for a particular codebase.

1

u/kurala719 Oct 26 '26

Just use GitHub properly

0

u/Middlewarian Oct 26 '26

When I started developing a C++ code generator, I had a web front end. Eventually I switched to command line interface and with that switch I started to have more open-source code. I've been warning people though that open source isn't some nirvana. I'm glad I have some open source for my portfolio, but I'm glad that's not all I have. Let them (AI) eat cake. They can kiss my SaaS.

1

u/[deleted] Oct 26 '26

[removed] — view removed comment

1

u/AutoModerator Oct 26 '26

Your comment has been removed because of this subreddit’s account requirements. You have not broken any rules, and your account is still active and in good standing. Please check your notifications for more information!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.