A LoRA adapter that turns an operator's routing instruction for an optical transport network, in English, German, French or Italian, into one line of a small policy language that a rule engine enforces:
avoid=Zurich-Milan,Basel; via=Lyon; hops=4; km=any; path=any; prefer=load,hops; rest=none
The slots: links and nodes to avoid, a node to pass through, limits on hops and length, a
candidate by its number, preferences in the order stated, and rest=more for a part the slots
cannot carry. Three answers refuse: unsupported (about the route, but outside the language),
no_instruction (not a routing instruction), and a name that is not a node leaves the line
unresolved. Built for Hack Apertus 2026 (online, Track 2B) by the project Apertus Lightpath; this is reader 1 of its two readers.
andreasmartin/apertus-v1.5-8b-text, the text-only conversion of
swiss-ai/Apertus-v1.5-8B (accepted by the organisers for the hackathon).adapter_model.safetensors and adapter_config.json at the root are the released
adapter; adapter-epoch1/ and checkpoint/ are training artefacts kept for the record....-translator-v3-b)
catches part of that by disagreeing.from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "andreasmartin/apertus-v1.5-8b-text"
tok = AutoTokenizer.from_pretrained(base)
model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained(base), "blackfish021/apertus-lightpath-translator-v3")
The prompt (system text, the node list, the instruction) and the answer grammar are in the
project repository, src/translate.py and src/grammar.py; without the grammar the model still
answers in the format, with it the answer is guaranteed to parse. A GGUF of the adapter for
llama.cpp is in blackfish021/apertus-lightpath-translator-v3-gguf.
For research and prototyping of intent-based control of optical networks on a simulator. The training and test sentences are synthetic; no operator wrote them. The language carries seven slots; everything else is refused or handed on. Trained once; no second training run for error bars. Other models' role: Claude (Anthropic) wrote the project's code and documentation under the author's direction, the sentence templates of the training data and, as separate instances that never saw the repository, the test sentences; no other model is part of the system. The author wrote the template lines (a test set) partly with ChatGPT 6.1 Sol (OpenAI).
Repository: github.com/theBlackfish01/ApertusNetworkGym (track_2b/). Report: technical_report.md in that repository.
adapter-epoch1/adapter_model.safetensors 319 MBadapter_model.safetensors 319 MBcheckpoint/adapter_model.safetensors 319 MBcheckpoint/optimizer.pt 162 MBcheckpoint/rng_state.pth 14.6 kBcheckpoint/training_args.bin 5.2 kBcheckpoint/scheduler.pt 1.5 kBandreasmartin/apertus-v1.5-8b-text