6 ms·
> 99% of the code in this PR [for llama.cpp] is written by DeekSeek-R1 It's definitely possible for AI to do a large fraction of your coding, and for it to con
by anotherpaulg 2y ago
> 99% of the code in this PR [for llama.cpp] is written by DeekSeek-R1
It's definitely possible for AI to do a large fraction of your coding, and for it to contribute significantly to "improving itself". As an example, aider currently writes about 70% of the new code in each of its releases.
I automatically track and share this stat as graph [0] with aider's release notes.
Before Sonnet, most releases were less than 20% AI generated code. With Sonnet, that jumped to >50%. For the last few months, about 70% of the new code in each release is written by aider. The record is 82%.
Folks often ask which models I use to code aider, so I automatically publish those stats too [1]. I've been shifting more and more of my coding from Sonnet to DeepSeek V3 in recent weeks. I've been experimenting with R1, but the recent API outages have made that difficult.
[0] https://aider.chat/HISTORY.html https://aider.chat/HISTORY.html
[1] https://aider.chat/docs/faq.html#what-llms-do-you-use-to-build-aider https://aider.chat/docs/faq.html#what-llms-do-you-use-to-bui...
- joshstrange 2y agoFirst off I want to thank you for Aider. I’ve had so much fun playing with it and using it for real work. It’s an amazing tool. How do you determine how much was written by you vs the LLM? I assume it consists of parsing the git log and getting LoC from that or similar? If the scripts are public could you point me at them? I’d love to run it on a recent project I did using aider.
- anotherpaulg 2y agoGlad to hear you’re finding aider useful! There’s a faq entry about how these stats are computed [0]. Basically using git blame, since aider is tightly integrated with git. The faq links to the script that computes the stats. It’s not designed to be used on any repo, but you (or aider) could adapt it. You’re not the first to ask for these stats about your own repo, so I may generalize it at some point. [0] https://aider.chat/docs/faq.html#how-are-the-aider-wrote-xx-of-code-stats-computed https://aider.chat/docs/faq.html#how-are-the-aider-wrote-xx-...
- joshstrange 2y agoThank you so much for linking me to that! I think an `aider stats`-type command would be really cool (it would be cool to calculate stats based activity since the first aider commit or all-time commits of the repo).
- prometheon1 2y agoSlightly longer than `aider stats` but here you go: uv run --with=semver,PyYAML,tqdm https://raw.githubusercontent.com/Aider-AI/aider/refs/heads/main/scripts/blame.py
- nyarlathotep_ 2y agodoes this mean lines/diffs otherwise untouched are considered written by Aider? If a small change is made by an end-user to adjust an Aider result, who gets "credit"?
- anotherpaulg 2y agoIt works like normal git blame -- it literally uses git blame. Whoever changed a line last gets credit. Only the new or newly changed lines in each release are considered. So no, "lines/diffs otherwise untouched" are NOT considered written by aider. That wouldn't make sense?
- realo 2y agoHello... Is it possible to use aider with a local model running in LMStudio (or ollama)? From a quick glance i did not see an obvious way to do that... Hopefully i am totally wrong!
- simonw 2y agohttps://aider.chat/docs/llms/ollama.html https://aider.chat/docs/llms/ollama.html
- anotherpaulg 2y agoThanks for your interest in aider. Yes, absolutely you can work with local models. Here are the docs for working with lmstudio and ollama: https://aider.chat/docs/llms/lm-studio.html https://aider.chat/docs/llms/lm-studio.html https://aider.chat/docs/llms/ollama.html https://aider.chat/docs/llms/ollama.html
- m3kw9 2y agoYes and is easy
- leetharris 2y agoYes absolutely In the left bar there's a "connecting to LLMs" section Check out ollama as an example
- fragmede 2y agoyeah: aider --model ollama_chat/deepseek-r1:32b (or whatever)
- sureglymop 2y agoThis didn't work well for me, no changes are ever made but maybe it's because I'm just using the 14B model.
- manmal 2y agoIn case you are on a 32+GB Mac, you could try deepseek-r1-distill-qwen-32b-mlx in LM Studio. It’s just barely usable speed-wise, but gives useful results most of the time.
- Imanari 2y agoLove aider, thank you for your work! Out of curiousity, what are your future plans and ideas for aider in terms of features and workflow?
- reitzensteinm 2y agoR1 is available on both together.ai and fireworks.ai, it should be a drop in replacement using the OpenAI API.
- SkyPuncher 2y agoThe problem is it's very expensive. More expensive than Claude.
- 7thpower 2y agoYou can use the distilled version on Groq for free for the time being. Groq is amazing but frequently has capacity issues or other random bugs. Perhaps you could set up Groq as your primary and then fail back to fireworks, etc by using litellm or another proxy.
- dzhiurgis 2y agoDo you know any assistants for jetbrains that can plug into groq+deepseek?
- 7thpower 2y agoI do not as I'm not in the ecosystem, but groq is openai compliant, so any tool that is openai compliant (99% are) and lets you put in your own baseurl should work. For example, many tools will let you use local llms. Instead of putting in the url to the local llm, you would just plug in the groq url and key. see: https://console.groq.com/docs/openai https://console.groq.com/docs/openai
- manmal 2y agoContinue.dev is available for Jetbrains, though the plugin is not as good as the VSCode counterpart. You can plug in any openai compatible API. Under experimental settings, you can also define an applyCode model (and others) which you could set to a faster, cheaper one (eg Sonnet).
- almostgotcaught 2y ago> 99% of the code in this PR [for llama.cpp] is written by DeekSeek-R1 you're assuming the PR will land: > Small thing to note here, for this q6_K_q8_K, it is very difficult to get the correct result. To make it works, I asked deepseek to invent a new approach without giving it prior examples. That's why the structure of this function is different from the rest. This certainly wouldn't fly in my org (even with test coverage/passes).
- Jimmc414 2y ago>> Small thing to note here, for this q6_K_q8_K, it is very difficult to get the correct result. To make it works, I asked deepseek to invent a new approach without giving it prior examples. That's why the structure of this function is different from the rest. > This certainly wouldn't fly in my org (even with test coverage/passes). To be fair, this seems expected. A distilled model might struggle more with aggressive quantization (like q6) since you're stacking two forms of quality loss: the distillation loss and the quantization loss. I think the answer would be to just use the higher cost full precision model.
- Philpax 2y agollama.cpp optimises for hackability, not necessarily maintainability or cleanliness. You can look around the repository to get a feel for what I mean.
- almostgotcaught 2y agoi guess that means no one should use it for anything serious? good to know
- Philpax 2y agoTo some extent, yes. I would not run production off of it, even if it can eek out performance gains on hardware at hand. I'd suggest vLLM or TGI or something similar instead.
- htrp 2y agoRun your deepseek R1 model on your own hardware.
- girvo 2y agoOnly various distillations are available for most people’s hardware, and they’re quite obviously not as good as actual R1 in my testing.
- sampo 2y ago"$6,000 computer to run Deepseek R1 670B Q8 locally at 6-8 tokens/sec" https://reddit.com/r/LocalLLaMA/comments/1ic8cjf/6000_computer_to_run_deepseek_r1_670b_q8_locally/ https://reddit.com/r/LocalLLaMA/comments/1ic8cjf/6000_comput...
- nprateem 2y ago> As an example, aider currently writes about 70% of the new code in each of its releases. Yeah but part of that is because it's physically impossible to stop it making random edits for the sake of it.
- hammock 2y agoThat's amazing data. How representative do you think your Aider data is of all coding done?
- yoyohello13 2y agoMaybe this is answered, but I didn't see it. How does aider deal with secrets in a git repo? Like if I have passwords in a `.env`? Edit: I think I see. It only adds files you specify.
- FeepingCreature 2y agoAider has a command to add files to the prompt. For files that are not added, it uses tree-sitter to extract a high-level summary. So for a `.env`, it will mention to the LLM the fact that the file exists, but not what is in it. If the model thinks it needs to see that file, it can request it, at which point you receive a prompt asking whether it's okay to make that file available. It's a very slick workflow.
- adrianlzt 2y ago[dead]
- anotherpaulg 2y agoYou can use an .aiderignore file to ensure aider doesn't use certain files/dirs/etc. It conforms to the .gitignore spec.
- rahimnathwani 2y agoWhen a log line contains {main_model, weak_model, editor_model} does the existence of main_model mean that mean the person was using Aider in Architect/Editor mode? Do you usually use that mode and, if so, with which architect? Thank you!
- fsndz 2y agoI think the secret of DeepSeek is basically using RL to train a model that will generate high quality synthetic data. You then use the synthetic dataset to fine-tune a pretrained model and the result is just amazing: https://open.substack.com/pub/transitions/p/the-laymans-introduction-to-deepseek?r=56ql7&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true https://open.substack.com/pub/transitions/p/the-laymans-intr...
- carpo 2y agoaider looks amazing - I'm going to give it a try soon. Just had a question on API costs to see if i can afford it. Your FAQ says you used about 850k tokens for Claude, and their API pricing says output tokens are $15/MTok. Does that mean it cost you under $15 for your Claude 3.5 usage or am I totally off-base? (Sorry if this is has an obvious answer ... I don't know much about LLM API pricing.)
- simonw 2y agoI built a calculator for that here: https://tools.simonwillison.net/llm-prices https://tools.simonwillison.net/llm-prices It says that for 850,000 Claude 3.5 output tokens the cost would be $12.75. But... it's not 100% clear from me if the Aider FAQ numbers are for input or output tokens.
- anotherpaulg 2y agoIt's "total" tokens, input plus output. I'd guess more than two-thirds of them are input tokens.
- simonw 2y agoIf we guess 500,000 for input and 350,000 for output that's a grand total of $6.75. This stuff is so cheap these days!
- anotherpaulg 2y agoWhen I was mostly just using Sonnet I was spending ~$100/month on their API. That included some amount of bulk API use for benchmarking, not just my interactive AI coding.
- jsnell 2y agoIf you're concerned about API costs, the experimental Gemini models with API keys from API studio tend to have very generous free quota. The quality of e.g. Flash 2.0 Experimental is definitely good enough to try out Aider and see if the workflow clicks. (For me, the quality has been good enough that I just stuck with it, and didn't get around to experimenting with any of the paid models yet.)
- aledalgrande 2y agoCould you share how you track AI vs human LoC?
- simonw 2y agoThat's covered here, including a link to the script: https://aider.chat/docs/faq.html#how-are-the-aider-wrote-xx-of-code-stats-computed https://aider.chat/docs/faq.html#how-are-the-aider-wrote-xx-...
- wvlia5 2y agoCan you make a plot like HISTORY but with axis changed? X: date Y: work leverage (i.e. 50%=2x, 90%=10x, 95%=20x, leverage = 1/(1-pct) )
- maeil 2y ago> I've been shifting more and more of my coding from Sonnet to DeepSeek V3 in recent weeks. For what purpose, considering Sonnet 3.5 still outperforms V3 on your own benchmarks (which also tracks with my personal experience comparing them)?
- brianstrimp 2y ago> It's definitely possible for AI to do a large fraction of your coding, and for it to contribute significantly to "improving itself". As an example, aider currently writes about 70% of the new code in each of its releases. That number itself is not saying much. Let's say I have an academic article written in Word (yeah, I hear some fields do it like that). I get feedback, change 5 sentences, save the file. Then 20k of the new file differ from the old file. But the change I did was only 30 words, so maybe 200 bytes. Does that mean that Word wrote 99% of that update? Hardly. Or in C: I write a few functions in which my old-school IDE did the indentation and automatic insertion of closing curly braces. Would I say that the IDE wrote part of the code? Of course the AI supplied code is more than my two examples, but claiming that some tool wrote 70% "of the code" suggests a linear utility of the code which is just not representing reality very well.
- stavros 2y agoThat's pretty reaching though if you're comparing an AI to a formatter. Presumably 70% of a new Aider release isn't formatting.
- simonw 2y ago"The stats are computed by doing something like git blame on the repo, and counting up who wrote all the new lines of code in each release. Only lines in source code files are counted, not documentation or prompt files."
- anotherpaulg 2y agoEvery metric has limitations, but git blame line counts seem pretty uncontroversial. Typical aider changes are not like autocompleting braces or reformatting code. You tell aider what to do in natural language, like a pair programmer. It then modifies one or more files to accomplish that task. Here's a recent small aider commit, for flavor. -# load these from aider/resources/model-settings.yml -# use the proper packaging way to locate that file -# ai! +import importlib.resources + +# Load model settings from package resource MODEL_SETTINGS = [] +with importlib.resources.open_text("aider.resources", "model-settings.yml") as f: + model_settings_list = yaml.safe_load(f) + for model_settings_dict in model_settings_list: + MODEL_SETTINGS.append(ModelSettings(**model_settings_dict)) https://github.com/Aider-AI/aider/commit/5095a9e1c3f82303f0b7e3349d56300910b41db4 https://github.com/Aider-AI/aider/commit/5095a9e1c3f82303f0b...