Snapshot of https://codeberg.org/notplants/Apertus-70B-Instruct-2509-experiments; full Git branches and tags, copied 2026-09-06.
Files
README.md

Experiments In Using Apertus-70B-Instruct-2509 For Coding #

Apertus-70B-Instruct-2509 is a model developed by The Swiss AI Initiative, which has the highest standard for ethical data collection for model training that I have come across so far.

coding was not its primary intended use case, but according to hugging face, it was "pretrained on 15T tokens with a staged curriculum of web, code and math data", so maybe it still does know about coding.

According to infomaniak.com, an inference provider that has the model, this model does not support "function calls" (https://www.infomaniak.com/en/hosting/ai-services/open-source-models), and is listed in the "chat" category, not "coding". But as far as I know, there are no coding models out there with the same bar of ethical data collection, so lets see what it can do.

tldr, it works, a little bit, with some configuration #

I was able to get infomaniak connected to opencode, and apertus would answer questions about golang and write code, and would say it was going to write files and make tool calls but then fail.

However changing some details about how opencode is configured does get apertus to make tool calls, and switching to a more minimal (non-json) harness called aider gets it to make tool calls more reliably.

apertus in the aider harness is probably not ready to compete with glm anytime soon, but I'm curious to explore using it a bit (although I might end up just asking it for code snippets to copy/paste rather than using it as an agent in aider).

more details on the opencode/aider configurations below

aider setup #

install aider from here https://github.com/Aider-AI/aider (or if using nix, use nix develop) — this was tested working with aider version 0.86.1

then,

export OPENAI_API_BASE=https://api.infomaniak.com/2/ai/109504/openai/v1
export OPENAI_API_KEY=<your Infomaniak AI Tools key>
cd apertus-guide/
aider # ask little apertus to fix the internet 

opencode setup #

the opencode.jsonc includes two ways of running apertus in opencode -- one as an agent with tool calls that works sometimes but not reliably, and one as a chat without tool calls.

I experimented with changing the temperature, set of tools available, and opencode system prompt, which did increase apertus ability to make tool calls from 0 to sometimes, but it still struggles, so the chat version in opencode or tool-calls with aider is probably better. opencode tool call format uses json which apertus struggles with, but aider has a different tool call format that is easier for it.

cp opencode.jsonc to ~/.config/opencode/opencode.jsonc # or into your project
export INFOMANIAK_API_KEY=<your key>

to open the chat-only agent:

export OPENAI_API_KEY=<your Infomaniak AI Tools key>
opencode --agent swiss-chat

to open the flaky tool agent:

export OPENAI_API_KEY=<your Infomaniak AI Tools key>
opencode --agent swiss-ai