The models you picked are kind of old by llm standards so you could probably find something more performant and smarter. If you had cared about speed, I would have recommended a model derived from Qwen3.5 9b.
I recommend you try qwen 3.8 27b, specifically the Unsloth iq4 version from huggingface. When you run it with llama.cpp, set the parameters to quantize the kv cache (the params are -ctk q8_0 -ctv q8_0) and the set the context to the model max of 262144 with -c 262144. This model will be orders of magnitude smarter than the ones you listed.
If you find that model too slow, try qwen3.5 35b which has fewer active parameters. Again, look for a Unsloth q4_k version and the params I mentioned. This will be pretty good but will be faster on your system.
To get this all running, you can find guides on the Unsloth website and you may find there are ways to make these models run faster better in a mixed ram/vram situation.
Good luck and ask more questions