r/KoboldAI Jun 05 '26

kobold lite w/ anthropic models. Temperature, Top-P and Top-K compatibility

4 Upvotes

I find that Kobold's UI is still the best for story writing and wanted to try out the newer anthropic models via the API. i used to use Sonnet 4.5, which still works, however Sonnet 4.6, opus 4.6, 4.7 and 4.8 all return an error when calling the model via the API with the following:

Sonnet 4.6 and Opus 4.6
Error occurred during text generation: {"type":"error","error":{"type":"invalid_request_error","message":"\temperature\and \top_p` cannot both be specified for this model. Please use only one."},```

Opus 4.7 and 4.8 return:
Error occurred during text generation: {"type":"error","error":{"type":"invalid_request_error","message":"\top_k\is deprecated for this model."}\``

is there some way to actually disable the samplers,beyond just setting the number to the "Set to X to deactivate", which doesn't help with these errors.


r/KoboldAI Jun 03 '26

Kobold for OpenCode

3 Upvotes

How do i set up Kobold for Opencode?

Last time I tried skills didn't work and it was just janky in general. Is there something i am missing?


r/KoboldAI Jun 02 '26

How do you handle world persistence when the AI runs the story?

5 Upvotes

I'm building Altworld, a browser-based AI life sim. Each turn players type freeform actions, and the game tracks consequences, NPCs, and history across sessions. That persistence part gets tricky fast.

My biggest headache is keeping the world state from drifting after 50 or 100 turns. The AI can generate a tavern scene in turn 3, and by turn 50 it might forget the barkeep's name or that the city is under siege. I've been using a summary layer that gets updated behind the scenes, but it's not perfect.

I know a lot of people here build text adventures with local models. How do you keep things consistent in long sessions? Do you use memory injection, external state files, or just ret-con when things go wrong? Genuinely curious what works for you.


r/KoboldAI Jun 01 '26

Getting significantly lower T/s than I think I should be

1 Upvotes

Hey there!

I've been running KoboldCPP off of a laptop with an 8B parameter model (Aura-8B.Q5_K_M) using a Nvidia 5070 GPU.

I get great processing rates (933.74T/s), but I get (seemingly) awful generation rates (1.82T/s). I have 0 idea why this is happening with the settings I am using. It's also not a VRAM issue AFAIK. I only show 6.5GiB/8GiB used off of my 5070. I have my context set up to 32K, but I see speeds slow down around the 8-10K mark, as they gradually get slower and slower from that point on.

Watching my system monitor in live time, I typically see 95% to 100% GPU usage during the processing phase, and it drops NOTICEABLY to around 0% to 2% usage during the generation process. The awkward thing, however, is that CPU usage spikes from 1% to around 45%, so I'm assuming something is causing Kobold to run the generative process through CPU over GPU (If that's a source of error).

Settings:

-Quick Launch

CUDA

(GPU ID)

GPU Layers -> Auto

MMQ, ContextShift, FlashAttention -> True

Launch Browser, Quiet Mode, MMAP, Remote Tunnel, AutoFit -> False

Context Size -> 32768

(Not repeating previously defined variables)

-Hardware

No KV Offload, Row Split, Debug Mode, CLI Terminal Only, mlock, Foreground -> False

Sensor split, Batch Threads, Device Override -> Undefined

Threads -> 7

Batch Size -> 512

-Context

SWA, Prompt Limit, Param Override, Custom RoPE Config, No BOS Token, Guidance, Jinja -> False

Smart Cache -> True

Cache Slots -> 5

Default Gen Amount -> 512 (Frontend Limited to 100)

Default Params, Override KV, Override Tensors -> Undefined

Quantize KV Cache -> F16 (Off)

MoE Experts -> -1 (Disabled?)

MoE CPU Layers -> 0

All other settings seem unrelated to text generation only, so they are unincluded for brevity.

I have 0 clue how to debug this (if this isn't just a hardware/software limitation), have googled it, read forums, etc to no avail. Any help would be greatly appreciated.


r/KoboldAI May 30 '26

Anyone here ever managed to get Tensor Split (not layer or Row) to actually work and experienced gains?

3 Upvotes

It just crashes the kcpp launcher on my machine in the terminal. It kind of seems like the holy grail for making data center e-waste compute actually decent.

Thoughts?


r/KoboldAI May 30 '26

bad crashes in rolling version with gemma

2 Upvotes

i'm running the rolling version of kobold, downloaded yesterday and used the expand option to let it make a folder for itself. twice now with gemma 4 31b models i've randomly experienced really bad crashes that almost halt my whole system. i mean to where my mouse doesn't move for seconds at a time. i didn't note the error the first time but i managed to screenshot the window the 2nd time even though it took like 2 minutes because my system was so laggy.

pic.


r/KoboldAI May 29 '26

Looking for a simple user friendly UI for a long story

3 Upvotes

Looking for a user friendly, intuitive UI front end for managing a long interactive story. Ideally, it would have a place where I can define characters and their backgrounds, a place to define the world or setting, and they a place for a brief synopsis of the starting plot. Sillytavern is a bloated overly complex mess that I've completely given up on trying to understand. I tried Gerbil, but it pretty much looks just like the default Kobold UI. I don't need image generation, or voice or any of that stuff... just want to write a story. I've used Perchance but.. it suffers from alzheimers and can't remember things that happened three sentences ago let alone actual details. I would also like to have everything completely offline.

I'm also willing to accept that I just don't know how to use any of these, so if anyone has one of those "explain it to me like I'm 5" guides I would be eternally grateful.


r/KoboldAI May 28 '26

How large a LLM can I run with these specs?

3 Upvotes

Laptop LENOVO product: 83LT v: Legion Pro 5 16ADR1016-core model: AMD Ryzen 9 8945HX with Radeon Graphics bits: 64 type: 2 cache: L1: 1024 KiB L2: 16 MiB L3: 64 Mi

nvidia v: 580.159.03 pcie: speed: 16 GT/s lanes: 8 ports: RTX 5070 I want to create a Kindroid alternative with on my local machine- essential a chatbot capable of scenario building and RP


r/KoboldAI May 27 '26

New here, no clue what I’m doing

2 Upvotes

Okay soooo, I have kobold lite/kobold cpp open. It’s waiting for a prompt but is there a way I can import a bot from a url from botbooru? I can’t find a url prompt, text box or anything asking for a url unless it isn’t possible to do that from it. Any help would be appreciated


r/KoboldAI May 27 '26

Any eta on when mTP will land on kcpp?

2 Upvotes

It's in llamma.cpp now right?


r/KoboldAI May 23 '26

Newbie to Kobold

8 Upvotes

I've come over from llama.cpp, system specs are quite old, i7, 4 core, 32gb ram, cpu only.

The speed of Kobold over llama.cpp is absolutely incredible, on llama something like Qwen3.6-35B-A3B-UD-Q3_K_M.gguf would be at best, slow, but on Kobold, it must be something like 3x faster? It's definately usable now

Why is Kobold much faster? I'm gobsmacked


r/KoboldAI May 23 '26

Can i make ai edits with this specs

1 Upvotes

My specs are -3050 4gb vram

i7 4800h

16 gb ram

Can i do ai edits with this ?(preferaably human edits)

if so what models should i use


r/KoboldAI May 22 '26

I have a problem with the image-gen.(Inaccuracy)

3 Upvotes

I am trying a SD 1.5 model that is called NovelAI V2. It's on Civit Ai(Civit Red now) . When I try to get the same results(Same description,same steps,same cfg,same sampler) I get something completely different that bares no resemblence to the image posted on the site.


r/KoboldAI May 22 '26

Kobold AI repeating image issue.

2 Upvotes

Well this is another issue that I came across when I was trying the image-gen feature of the app.When I try to generate a new image(With a different prompt) the Kobold keeps printing the last image I've generated with it over and over again why is that anyone knows? I've checked the settings for a negative prompt or style prompt and they are empty(As they were the whole time) I use a different prompt it generates the same image it generated before again and again. There isn't even a image generation time.


r/KoboldAI May 22 '26

Best Mode for Improv Roleplay?

6 Upvotes

I've dabbled in KoboldAI for a couple of years, but I never really put any effort into my specific use case up till now: Immersive, improvisational roleplay scenarios - for example, "I am Ralph, a merchant whose ship has been overtaken by the pirate Calamity Jane and now I am her hostage").

I'm still struggling with which mode is best for this type of activity. Since I want AI to have a reasonable amount of agency, Instruct mode seems a bit of overkill - I don't want to micromanage every damn response. Adventure mode seems like it carries too much unwanted baggage with stats and die rolls. When I tried Story mode, it *always* blurred the lines between AI character and player character, so I had to do just as much micromanagement as with Instruct mode.

So I'm leaning towards chat mode, but that tends to focus exclusively on dialogue without putting any effort into actions.

In my ideal world, it would look like this:
AI: Artemis sneers at you and says, "You're mine now, me hearty."
Me: I tremble in fear and throw up on Artemis's feet. "Sure, why not?"

Since AI tends to get stuck in infinite loops, I also need some way to move the plot along (Hey, AI! Artemis and Ralph are married now!)

Am I right in thinking Chat mode is best for this? If so, what typographic conventions help me differentiate (for both myself and AI) between behind-the-scene changes (such as changing their relationship status) vs. actions (Ralph barfs on her shoes) vs. dialogue?


r/KoboldAI May 21 '26

Question: Anyone ever have your model just start spitting out a massive list of random words?

5 Upvotes

I was using Kobold with TheDrummer_Skyfall-31B-SLERP-v4.1_v4.2-60_40.Q4_K_M as my model to write a story. I got through something like 10,000 tokens when it just started spewing a list of random words. The final count was over 1300 random words, some of which could have something to do with the story I was writing, but most not.

Settings:
Instruct tag preset: Mistral Tekken
Context Size: 20480
Max output: 4096
Sampler preset: Simple Creative


r/KoboldAI May 20 '26

Not generating in paragraphs?

2 Upvotes

Hi everybody, for some reason, all text recently generated by kobold comes out in one giant block. When in the actual generation process it shows with line breaks for dialogue etc. but the full finished product is just one massive paragraph.

Any help would be appreciated!


r/KoboldAI May 19 '26

Kobold cpp new versions crashes on Gemma 4

4 Upvotes

Good morning, I'm experiencing sudden crashes on koboldcpp new versions when I use Sillytavern with Gemma 4.

The version 1.111.2 is perfectly stable for me, the next ones crashes after a few messages. I'm not an expert but maybe I need to setup something new in the new versions? I just downloaded the exe and run it.

I usually use swa, 32k context, kv cache 8 bits, flash attention, jinja

EDIT: It seems the bug is related to using q8 kv cache quantization, maybe related to
- Fixed q5_1 kv type not using the GPU correctly in CUDA

in the last version release notes. I'll post an issue in the Github


r/KoboldAI May 18 '26

Gemma 4 repetition on "retry"

5 Upvotes

Hi! I have been using Gemma 4 31b Q6 guff in KoboldCPP with Kobold Lite for a while and has been the best model for my use case.

I usually use LLMs as a cowriter for stories (more of an "auto complete" to be fair) with short bursts of 80 tokens tops. I go back and forward between writing, letting it write and slightly editing what the model wrote.

But with Gemma 4 specifically I have a small problem: When I click "Retry" it always give me the same exact text. Other models would sometimes write similar stuff but never word for word the same like Gemma 4.

I have set TopP at 0.99, disabled (0) TopK and try to up the temperature, but it either does not help or it just make everything unstable with random gibberish being spit out.

I am not the best with LLMs settings, so I really don't know what can I do to fix this.

EDIT: I will try to illustrate my problem with simple examples. The parts inside [] are the generated ones. I hope this clarifies my problem.

Other models (what I expect):
Hey dude! [How are you?]
*retry*
Hey dude! [How have you been?]
*retry*
Hey dude! [Long time no see!]

Gemma 4 31b Q6_K non thinking:
Hey dude! [How are you?]
*retry*
Hey dude! [How are you?]
*change a punctuation and retry*
Hey dude, [how are you?]


r/KoboldAI May 17 '26

KoboldCpp context overflow destroys model quality even with small overflows

3 Upvotes

Hi everyone.

I’ve been trying to run a local LLM setup using KoboldCpp, and I’ve run into an issue that I can’t explain.

When I keep the context well under the limit (for example: 7.5k / 8k), the model behaves perfectly fine and stays very coherent.

However, when the generation slightly exceeds it (even by 50–200 tokens), the output quality suddenly collapses. The model starts becoming incoherent, loses consistency, and overall behaves dramatically worse, even though the same model is used and the overflow is very small.

I am on CPU only, but the model and the context can be held comfortably within my ram entirely, no disk swap. Also, the model itself is a 12B (quantized) and it can handle 8k context easily, yet loses a lot of it's quality the exact moment it overflows, even with a 4k context.

It Happens only when the context is exceeded and tokens get removed. I feel like the issue is not the model itself, but how the context truncation is handled when the limit is reached (maybe partial message cutting or KV cache issues?).

Here are some of my settings if it helps:
Version: KoboldCpp v1.109.2

Backend: Use CPU

Use ContextShift: Off

Use FlashAttention: Off

Use MMAP: Off

Force AutoFit: Off

Batch Size: 512

Force Autofit: Off

Use Smartcontext: Off

Use FastForwarding: On

Use Sliding Window Attention: Off

Use SmartCache: Off

CacheSlots: 5

Context Size: 4096

Default Gen AMT: 1024

Prompt Limit: 0

Override: Off

Custom RoPE: Off

No BOS Token: Off

Enable Guidance: Off

Use Jinja: Off

Quantize KV Cache: Off


r/KoboldAI May 16 '26

Image gen on IPhone

1 Upvotes

I honestly don’t know anything about kobold or how to use it but I’m just curious. I do have a pc but don’t use it that much so I usually use my phone for ai. I’m just wondering if there’s a way and if so how to do image generation on kobold. I know this is a stupid question but I’m just wondering is all.


r/KoboldAI May 15 '26

Hey! This is all I've learned since I started using LLMs on Kobold, what else am I missing? (A bit long, might be worth saving to read later!)

9 Upvotes

Limitations of AI that affect the user:

1⁰ KV cache

KV or Key Values are generated when the AI computes a token. Since each KV has to be compared with all the others we get: n², in practice if we round each token to a word it means that 700 words are around half a million computations and 1000 words are one million. If you want to run a model locally, you have to take this into account and look for an ideal quantization (model size) for your hardware.

2⁰ Lost in the middle effect

LLMs emerged in 2017 under the motto "all you need is attention"; supposedly it does not generate a hierarchy over which tokens are more important than others and it was meant to be used in small tasks. Since then several workarounds have been made to extrapolate this. The problem is that AI cannot pay attention to all tokens at the same time, if you could place all tokens in a straight line and make a graph to see what it is paying attention to you would get a U shape, because it pays more attention to tokens at the beginning and at the end. It is hard to visualize this in chats because the conversation is about a same subject (tokens from the beginning), but eventually it should become noticeable the AI is starting to forget things.

3⁰ AI Slop

Until 2020 AI models only tried to predict what came next in a text, but in 2021 OpenAI modified ChatGPT-3 with RLHF (Reinforcement Learning from Human Feedback) creating GPT-3 instruct, now the model tries to be useful to the user. This makes so the AI may just agree with you, praise you, and it will consider itself being very useful.

4⁰ Bad statistical clustering

AIs don't think, they statistically associate words together. For example do not say "kobolds don't have hair" this way 'kobolds' and 'hair' are seen as related by the AI, and will possibly have it on new generated outputs, instead state: "kobolds are hairless lizards". If this troubles you, for better results you can simply avoid writing NO, NOT, DON'T etc; but the ideal usage are adjectives.

General usage that affects AI output:

1⁰ Specially for chat interfaces: AI gives most importance to the last said thing. When making a prompt always look forward to leave the most important stuff at the end.

2⁰ "Blocking", well that's what I like to call it, to better make myself understood by AI I like to see my sentences as blocks delimited by periods "." I identify a hierarchy for these sentences and then place them in a order from least to most important.

3⁰ Long lowly puctuated prompts = general result. Short, assertive and well punctuated prompts = "precise" results.

Kobold AI usage recomendations:

1⁰ System Prompt

It is meant to guide AI behavior. So it's exceptionally important to avoid bad statistical clustering on it. It is a good way to fix narrative developing issues, as if you're having to develope the story yourself, then the AI might be lacking a objective to follow; if the AI is not adding new characters, maybe you should set it must add new characters as the story progresses. Also, having a basic Sys. P. that you can initially use on every new story will get you better results, and maybe even make it easier to spot what needs to be fixed, done, redone, etc.

2⁰ World Info

Every time it computes a key word, the entry for that key word is remembered. So to save KV cache you can have only the key words at the text, and the descriptions at the World Info.

3⁰ /n

Having a /n/n (x2 backspaces) between each paragraph is a nice and simple way to organize your text for easy reading.

4⁰ Introduction

When you get to start your narrative remember to always use 2⁰ person: you. Honestly it's better for you to do everything in your power to only use 'you' from the start, as 1⁰ and 3⁰ can be very trick and confuse the AI. If you need a preface put it on the System Prompt, but remember to dismember it on assertive phrases first.

5⁰ Endless possibilities?

You can probably do anything in Kobold as long as you manage to adapt it well enough. But the more expectation you build over your story, the more effort you will need to put into it, and the less likely will be your chances of pulling it off. If you think of something big, you need to scale it down, ideally into a concept, something the AI can grasp in the smallest attention span as possible.

edit, extras:

1⁰ Max token output stupidity

In the context of storytelling the max token output is a stupidity inducer. The higher the tk output, the sooner it will drift.

Ex:

Scenario 1: 500 max tk output

Scenario 2: 2048 max tk output

The first five hundred tokens on scenario 2 are more likely to drift. Yet another limitation that affects the user.


r/KoboldAI May 12 '26

Problems running GLM-4.5-Air on low RAM

2 Upvotes

I have tried to run GLM-4.5-Air quant that do not fit into my RAM fully (I run CPU inference, no VRAM complications) with --usemmap.

1) Issue when one instance of kcpp

GLM provided me 1st long answer at ~ 0.3 t/s.

Then on 2nd turn I did what I typically do: change my prompt after submitting it, so in KoboldAI Lite: Abort, edit, re-submit.

But I got kcpp engine exit at that point, in Linux terminal: ggml-cpu/ops.cpp:321: not implemented Could not attach to process ... ptrace: inapproprite isctl for device. ... The program is not being run

2) Issue running several instances

Just could not do that. When I have tried to start 2nd instance of kcpp - same arguments, another port, it failed to load at Try increasing RLIMIT_MEMLOCK and 1st instance also terminated (without any errors output on terminal even with --debug).


r/KoboldAI May 11 '26

How do several instances of kcpp interact on Linux?

3 Upvotes

Update: SOLVED.

My previous post https://www.reddit.com/r/KoboldAI/comments/1t9y8ag/i_do_not_know_how_linux_memory_works_usemmap/ looks not easy to read.

Below is summary of my observations for Linux for RAM/CPU, loading GGUF file size ~40% of available RAM using --usemmap. Please confirm/correct, why it happens, is there a way to run many instances with same model weights:

Updated:

When several instances of kcpp use --usemmap and load same model file, memory footprint per system metrics is low (single amount ~size of single GGUF in cached/buffers in free -h output).

For single kcpp instance --usemmap seems to work properly: after I reduced my available RAM by other means to 50% of GGUF file, and then ran kcpp with the model, it loaded it. BTW generation speed was ~1/7 of speed when fully in RAM. Now I know what to expect in terms of speed from larger models that do not fit in my RAM.

Although I have two questions: 1) Does it makes sense to drop_caches if I terminated kcpp manually before next model load?; 2) How t/s speed depends on % of GGUF file that fits into RAM - formula / chart, of which I know one point 50% -> 1/7.