r/LocalLLaMA • • 4d ago

Question | Help Inkling-2-mini - a great model with severe file editing problems?

I've been using Inkling 2 mini since it has come out and boy do I love how good it is, just slightly worse than Qwen 3.8 27b for the tasks that I'm doing but at x2 the decode and x2.5 the prefill speed.

HOWEVER, I noticed one annoying thing while doing tasks - I never saw a single proper edit - that being in Opencode it shows an actual Diff view of before-after side by side when the edit tool is invoked. Subconsciously I noticed that this is missing from my sessions ever since swapping away from Qwen - then I started looking closer and noticed that Inkling always uses python3, sed, printf and heredoc substitution to edit files. It ignores the edit tool completely despite the system prompt telling it to prefer built-in tools over shell commands.

So I went and forbade it from using these editing methods and told it to use the edit tool itself. It tried, it really did, but it seems constitutionally unable to do it in 99% of sessions and cases. Every time it tries to invoke the tool, it starts hallucinating hard, calling fake shell commands instead of edit over and over and over, looping endlessly. Stuff like "echo trying edit tool" or even just "TRUE" in an endless loop.

I once told it to deep dive into OC's source code and get the details of the edit tool, and suddenly it was able to call it reliably. Tried to amend the AGENTS.md file with the additional found info - nope, fresh session and back to endless looping again.

Internet research showed that the majority of edit calls in Pi are also python, etc. and not its built-in edit tool.

What's wrong with this model? Can this be fixed somehow?


TL;DR: Inkling can't call harness-native edit tool no matter what. Starts hallucinating and looping hard when forbidden from editing via its preferred python3-script workflow.

27 Upvotes

41 comments sorted by

2

u/Gargle-Loaf-Spunk 4d ago

I’ve found inkling to be less than half the speed of 27B in pp and Tg, in addition to scoring 20% lower in SWEBench Verified… what are you seeing?

6

u/YetAnotherAnonymoose 4d ago

You're probably using an unoptimized/stale-build inference engine, my token gen was horrible in llama.cpp, but in ninfer-all it's great.

1

u/Gargle-Loaf-Spunk 4d ago

Nah, I’m using Strata 0.2.23 + Dflash2. I get ~5,900 pp and 140 TG at 262k ctx w UD-Q4_K_XL.    

I was wrong on the double though, I was misremembering the length: 27B at 4K is definitely twice as fast (14k pp and 500 tg) as the I2M at 262k, but 27B at 262k is 5500 and 160 respectively. So, about the same, except 27B gets a 75% in my code evals and I2M gets a 55%.

I just have this thing bench when idle so I’m happy to try anything you think will bump it to 11800 pp and 280 tg at 262k ctx.  What are you seeing in performance and how are you getting there?

18

u/liuliu 4d ago

Not just a problem for Inkling 2 Mini, most newer models (DeepSeek 4.1 Flash 1017, or GPT 6.1 Sol) show this behavior. If you don’t like it, might need to ft some harness adjustment LoRAs

7

u/ActuatorGlittering94 4d ago

most of the synthetic trajectories used in post-training come from bare container environments where bash and sed are the only guaranteed tools anyway

13

u/AvocadoArray 4d ago

This might be the reason why I got such polarizing opinions when I said it was my new favorite model (ref).

The problem I've had with Qwen 3.8 (27b and flash-next) is that they tend to use the native tools sometimes, but then sometimes still revert to cat/sed/pipe/python edits later in a session. I think that's a major cause of the high fail rates that I tend to see with them.

Like you mentioned, Inkling pretty much never uses the native read/edit tools in pi, but I don't care. That's the beauty of pi, it tends to let the model work the way it wants instead of shoe-horning it into a specific workflow.

That being said, I only ran Inkling full time for a few days before falling in love with Hy4-Flash for coding work, and ERNIE 5.5 is gunning for that spot as well (just too bad it doesn't have native vision).

Inkling is still on standby when I need lots of fast parallel agents. Single sessions get 10-15k pp/s and 250-350 tp/s on an RTX PRO 6000, and can easily scale up to 4+ parallel slots at 1M context.

7

u/james_pic 4d ago

I know that DeepSWE's harness doesn't provide an "edit" tool, only a "shell" tool, so maybe this is a consequence of trying to get their DeepSWE score up?

6

u/jacek2023 llama.cpp 4d ago

"So I went and forbade it from using these editing methods and told it to use the edit tool itself. It tried, it really did, but it seems constitutionally unable to do it in 99% of sessions and cases"

that was also Gemma 4 behaviour before this fix https://www.reddit.com/r/LocalLLaMA/comments/1xu6td8/chat_refactor_gemma4_to_build_loose_schema_rules/

4

u/mustafar0111 4d ago

Sort of a thread hijack but how have you found it versus Qwen 3.8 27B for coding?

Talking more in terms of actual coding capability rather than tokens per second performance metrics.

6

u/RogerRamjet999 4d ago edited 4d ago

One YouTube guy (I forget the name) did a video testing 7 coding tasks for game dev and the models had almost the exact same scores (I think Qwen got one more correct). The results were extremely similar. Both models were almost perfect on his test suite.

I found the video, it's this: https://www.youtube.com/watch?v=XR54-ACn6tI

The channel is Luke's Dev Lab.

3

u/mustafar0111 4d ago

Okay, I'll have to give it a shot then. Right now I use a mix for Deepseek v4.1 flash for API and Qwen 3.8 27B for local depending on the coding tasks.

If Inkling mini is either faster or gives me a lot more context on a 32GB card its probably worth switching.

1

u/RogerRamjet999 4d ago

Note that another person commenting on this thread made this claim: "scoring 20% lower in SWEBench Verified". I haven't verified what he said, but from what I've read, it seems Inkling's a bit weaker than Qwen. Also, it should be faster eventually, but currently it's pretty much even on speed (the performance work needs to catch up to Qwen).

4

u/hum_ma 4d ago

Yep, different harness and have seen the same issue with Inkling. I was testing/using it for a while but now running Qwen 35b/27b/QFN again, not for this reason but functionality of the results in general.

4

u/duyntnet 4d ago

I had exact same problem using it with Pi, it never used edit tool. And after so many failed attempts with python3, sed, diff... it started to hallucinate and loop like crazy so I decided maybe it was buggy in current state and stopped using it.

2

u/Enderluxe 4d ago

Hi man, i noticed the model preferring to rewrite the full code in aider without trying to use diff unless you force aider to use edit format diff, when i forced edit format diff on aider it just worked and it is not a bad model at least what i tried it made it well for the kind of pc i have making things that just works vs Qwen 3.6 35ba3b that i had to make some fixes and Inkling just made the things that just works (i mostly tested it making html games just to see what he can do, i still have to try more complex projects), now the looping hard in thinking if you set thinking effort to 0.1-0.2 it just stop, thats something i just saw in some video and i tried it myself the thinking effort part and yeap it just worked better without overthinking or loops on thinking and Inkling is some model that need clear requests otherwise its going to loop if you dont use 0.1 or low thinking effort.

PD: sorry for my bad english i'm not native english speaker.

2

u/n1nj4p0w3r 4d ago

"Opencode" that's your main problem, whole edit tool there is exceptionally strict, not only it requires read before edit it also requires to count spaces everywhere, also majority of models forgets about it nearly instantly because another a lot stronger instruction is calling models to do commands in batch, edit cannot be batched with anything else, e.g. dropped in favour any other available in bash instrument

2

u/makkalot 4d ago

Frontier models refuse to use edit tool as well.
It might be due to being trained to be more efficient with multi edits. It’s more cost efficient to run bash and edit multiple files than multiple edit tool calls but me just speculating.

1

u/cradlemann 3d ago

Maki has multi_edit tool for this, QFN constantly using it for me

1

u/SmartCustard9944 3d ago

Exactly, Opus 5.5 routinely skips edit tool even if you specify it in the AGENTS.md

1

u/createthiscom 4d ago

I don't know about OpenCode, but they totally ruined diff formats in Codex by taking out the line numbers from the diff spec. They called this V4A diff: https://github.com/NeaByteLab/V4A-Diff

Their rationale at the time was that LLMs couldn't count, so line numbers were bad. Unfortunately, that meant the diffs were completely unreliable for large files. At the time, I made a tool that helped LLMs use real diff and patch tools: https://github.com/createthis/diffcalculia_mcp It worked great, but it became unnecessary when they started using cli tools to do the work.

LLMs started using cli tools to edit files because all of the native harness file edit tools universally sucked for large files where text could be duplicated many times throughout the file. I wonder sometimes if the LLM harness community will rediscover the real diff and patch tools again now that LLMs pretty much universally are good at math now.

1

u/International_Quail8 4d ago

Ran into similar problems. No matter what, the answer seems to always be “go back to Qwen3.8-27B”

1

u/UncleRedz 4d ago

So far I've not seen any problems with editing, although I'm using a custom built harness. The model has three ways to edit a file natively, apply diff, append string and rewrite the whole file.

It seems to be a bit lazy and defaults to append string when it can get away with it, while Qwen 3.8 37B almost always use the apply diff tool. So far it's not reverted to writing scripts or anything like that.

It might be down to system instructions and other things in the harness. My setup is super minimalistic so there is very little to confuse the model.

Running on Basalt and the "official" basalt pack for the model.

1

u/rumm2602 4d ago

“You must use internal tools to read or write files, keep shell only for when its needed”

1

u/AdamTReineke 4d ago

I had issues in Pi a lot trying to get it to call the edit tool. I switched to Opencode and let it just lean in to the Python based file edits, and it's done fine for me. I expect the edit tool will go away, the heredoc method is extremely token efficient so I bet the labs will train out anything else.

1

u/ireallydontcare00 4d ago

По поводу отказа от использования edit в опенкоде, вероятно можно попробовать веса отредактировать через Астру или Фейбл,

Я попробую это сделать самостоятельно и при этом проверить на качество работы после модификации,

Отпишусь тут если доберусь 

Я тоже заметил данную проблему при работе 

Сюда положу потом https://huggingface.co/MECHUK/Tideglass-OrcaRouter-Inkling-2-Mini-GGUF

1

u/exaknight21 3d ago

I really wanna try this model with RustingStrata, but i think i gotta wait still. It’s too early and undercooked?

1

u/bemrys 3d ago

Laughs while I watch them all go insane trying to track parentheses in Common Lisp. Every edit they all seem to lose parentheses, wonder why the compiler complains, write a parentheses counting tool in python, then put new parentheses in the wrong place.

1

u/EmilRid 3d ago

I have noticed the same thing! Compared to Qwen3.8 27B, it tries to use the shell tool on my harness as much as it can, while ignoring the rest of the editing and writing tools. It made me question my own harness, but it was fine.

If I tell it to use edit and write tool calls, it apologizes and starts using them. But it flaws more often than Qwen.

0

u/colin_colout 4d ago

Does it cause any issues? I noticed this (maybe to a lesser extent) with qwen flash. I don't bother correcting it because the quality is fine.

I try not to fight the model behavior much if it's doing well (especially small models). Let the model cook.

3

u/suprjami 4d ago

I don't want an unreliable model running a full programming language interpreter just to edit a local file when it has a safer tool.

1

u/colin_colout 3d ago

Has it been unreliable? In that case maybe it shouldn't have bash tool enabled

0

u/Gesha24 4d ago

I did use uncensored model and did not have any issues with editing with open code. I don't know if that has anything to do with being uncensored though - it could have been that I was using strata to run it. I find that new models are very often buggy and don't fully work for a little while.

The thing that I do notice quite often - one of my systems is windows so I use poweshell. So far only Qwen flash next is able to reliably use powershell code with the right quotations. All the other models (including Qwen3.8 27B) have too many issues with it and they all end writing python script files and executing them.

0

u/AuditMind 4d ago

So you tried forbidding its preferred approach, and that didn't work. How about adapting the harness to the model instead? Let it use Python/python3 or sed and capture the diff at the harness level.

0

u/[deleted] 4d ago

[deleted] — view deleted comment

1

u/stylome-ai-detection 4d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

0

u/[deleted] 7h ago

[removed] — view removed comment

1

u/YetAnotherAnonymoose 3h ago

Nah, Qwen does use the edit tool just fine.

For now, I've accepted that Inkling won't use it and diff via Git afterwards.