by anotherpaulg · 1y ago · 0 comments
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
[1] https://aider.chat/docs/faq.html#what-llms-do-you-use-to-bui...
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.
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-...
uv run --with=semver,PyYAML,tqdm https://raw.githubusercontent.com/Aider-AI/aider/refs/heads/main/scripts/blame.pyIf a small change is made by an end-user to adjust an Aider result, who gets "credit"?
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?
Edit: I think I see. It only adds files you specify.
It's a very slick workflow.
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).
> 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.
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.
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/5095a9e1c3f82303f0b...You shouldn't judge your sw eng employees by lines of code either. Those that think the hard stuff often don't have that many lines of code checked in. But it's those people that are the key to your success.
Lines of code serves as a directional heuristic at best, but that's ok.
Perhaps you could set up Groq as your primary and then fail back to fireworks, etc by using litellm or another proxy.
https://reddit.com/r/LocalLLaMA/comments/1ic8cjf/6000_comput...
For what purpose, considering Sonnet 3.5 still outperforms V3 on your own benchmarks (which also tracks with my personal experience comparing them)?
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.
Yeah but part of that is because it's physically impossible to stop it making random edits for the sake of it.
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!
Yes, absolutely you can work with local models. Here are the docs for working with lmstudio and ollama:
In the left bar there's a "connecting to LLMs" section
Check out ollama as an example
aider --model ollama_chat/deepseek-r1:32b
(or whatever)Do you usually use that mode and, if so, with which architect?
Thank you!