SheepBrainLaya GGUF
Laya fully fine-tuned to steer a sheep toward grass, in BF16 GGUF for llama.cpp
(SheepBrainLaya-BF16.gguf, 844 MB). Laya (convaiinnovations/laya) is a ModernBERT-large encoder
with a decision head (421M parameters), not a causal language model: it scores options for a
question about a state. The fine-tuning came from the turtle-brain-llm project (run 6): all weights
trained on run 1's sheep labels (soft cross-entropy, 17,840 states, batch 32, 2 epochs, 1,116 steps,
seed 0) on a Colab A100, then converted with llama.cpp b11960's converter. The model is meant for the
decision extension for NetLogo, which lets turtles choose among labels with a small model.
| File | Size | SHA-256 |
|---|---|---|
SheepBrainLaya-BF16.gguf | 844 MB | 2d63f9185b6483763d55e7f162ff43e1a923ea6405beb1e1142dc9a3c7902d4b |
Use in NetLogo
The decision extension is not released yet. The extension's Wolf Sheep SheepBrainLaya demo runs
this model.
extensions [ decision ]
to setup
clear-all
decision:select-model "umitaslan/SheepBrainLaya-GGUF:BF16"
decision:context "Which way should the sheep turn to find grass?"
...
end
to sheep-move ; sheep procedure
decision:describe-state sheep-state ; the training format, below
let choice decision:pick [ "turn left" "go straight" "turn right" ]
if choice = "turn left" [ lt 45 ]
if choice = "turn right" [ rt 45 ]
fd 1
end
Outside NetLogo, the GGUF needs a llama.cpp build with Laya support (b11960 or later). llama-server
serves it through POST /v1/systemone; llama-cli and /completion do not apply to it.
Prompt format
The model only works with the text it was trained on. The question is
Which way should the sheep turn to find grass? (set with decision:context), the options are
turn left, go straight and turn right (the labels given to decision:pick), and the state
(decision:describe-state) is, for example:
Sheep state.
energy: 8
left: nearest grass 1, grass count 3
ahead: nearest grass 1, grass count 4
right: nearest grass 2, grass count 2
There is no Choose: line and no Answer: line. The three sector lines describe the grass patches
within radius 3, by bearing relative to the heading:
- left is from −90° up to −30°;
- ahead is from −30° to 30°;
- right is from 30° up to 90°.
The sheep's own patch is excluded. nearest grass is the rounded distance to the nearest of them
(at least 1), or none when the sector has no grass. grass count is how many there are.
Evaluation
- Lifespan: in turtle-brain-llm's sheep world (25×25, 30 sheep, 500 ticks, 20 seeds), the mean lifespan is 227.33 [95% CI 218.12, 236.54]. For comparison: SheepBrain (the fine-tuned Qwen3.5-0.8B, run 1) 226.71 [216.77, 236.65], a greedy grass-seeking rule 236.91 [224.67, 249.14], random 165.99, and the untrained Laya 27.90.
- Paired over the seeds: SheepBrainLaya minus SheepBrain +0.62 [−12.33, 13.57]; minus greedy −9.58 [−24.17, 5.01]. Neither difference is distinguishable from zero.
- This GGUF against the PyTorch model it came from (fp32 CPU, all 2,160 validation states): it picks the same option in 99.8% of states (5 states differ), and in 100% of the 1,163 states with a clear best option. The mean probability difference is 0.0003, the largest 0.0017.
- Demo: in the extension's
Wolf Sheep SheepBrainLaya(Wolf Sheep, 17×17, 3 seeds × 100 ticks), the sheep at the end were 42, 40 and 30, against SheepBrain's 40, 41 and 28 and the untrained Laya's mean of 3.0 (the published Laya given SheepBrain's A/B/C prompt, not this prompt).
Limits
- One training run: the variation between retrainings is not measured. In run 1 against run 2, retraining the 0.8B moved its lifespan by −10.
- BF16 only.
- Different world: the model was trained and evaluated in turtle-brain-llm's sheep world, not in NetLogo's Wolf Sheep Predation, so its choices there are a demonstration, not an evaluated policy.
- Flat probabilities: they stay close to uniform (mean top probability about 0.40), so the argmax carries the policy.
License and credits
Apache-2.0 (see LICENSE, the base model's license). The base model is convaiinnovations/laya, by
Convai Innovations, built on ModernBERT by Answer.AI and LightOn. The GGUF conversion used
llama.cpp (b11960).