Core ML conversion of
VAGOsolutions/SauerkrautLM-Doom-MultiVec-1.3M
by David Golchinfar / VAGO solutions (
paper
,
code
): a 1.3M-parameter ModernBERT
classifier that plays ViZDoom
defend_the_center
. All credit for the model goes to the original
authors; this repo only changes the runtime.
Output:
logits
(1, 4) over
shoot
,
move_forward
,
turn_left
,
turn_right
. Upstream picks the
argmax and adds a shot when
p(shoot) > 0.75 × p(top)
and a turn/move runner-up above 0.15.
Results
Apple M5 Pro, ViZDoom 1.3.0, seeds 10000–10099, 4 tics per decision, 2100-tic (60 s) episodes:
Core ML fp32 matches PyTorch kill for kill and tic for tic on all 100 seeds. fp16 differs on 10 seeds
(small numeric differences change the episode path) with the same average. Use
CPU_AND_GPU
; the
Neural Engine runs this model at about 8 ms, slower than the GPU. On the GPU, Core ML is about 4×
faster than PyTorch MPS at fp32 and about 7× at fp16. Timings are medians from Python (
coremltools
/
PyTorch), same frame, idle machine.
Input
Per frame, 1026 tokens:
[CLS]
, one character per cell of a 40×25 grid with newlines between rows,
[SEP]
. Each token also gets a depth bin (0 near to 15 far, 16 for special tokens) from the ViZDoom
depth buffer, block-averaged to 40×25 and min-max normalized. Upstream's ASCII channel overflows
uint8
and is
@
for every cell, in training and at inference, so the model plays from the depth
bins. To reproduce upstream exactly, truncate the block-averaged depth to
uint8
before binning. A
dependency-free implementation is
observe()
in the FluidUse runner.
Conversion
The Hugging Face ModernBERT mask construction does not trace through coremltools, so the forward is
re-implemented with static masks and rotary tables using the original weights (max logit difference
2e-7 vs upstream in PyTorch). The L1026 variant replaces the embedding gathers with one-hot matmuls.
Scripts:
convert.py
,
convert_ane.py
in the FluidUse runner directory.
Runs of FluidInference sauerkrautlm-doom-coreml on huggingface.co
43
Total runs
0
24-hour runs
8
3-day runs
43
7-day runs
43
30-day runs
More Information About sauerkrautlm-doom-coreml huggingface.co Model
sauerkrautlm-doom-coreml huggingface.co is an AI model on huggingface.co that provides sauerkrautlm-doom-coreml's model effect (), which can be used instantly with this FluidInference sauerkrautlm-doom-coreml model. huggingface.co supports a free trial of the sauerkrautlm-doom-coreml model, and also provides paid use of the sauerkrautlm-doom-coreml. Support call sauerkrautlm-doom-coreml model through api, including Node.js, Python, http.
sauerkrautlm-doom-coreml huggingface.co is an online trial and call api platform, which integrates sauerkrautlm-doom-coreml's modeling effects, including api services, and provides a free online trial of sauerkrautlm-doom-coreml, you can try sauerkrautlm-doom-coreml online for free by clicking the link below.
FluidInference sauerkrautlm-doom-coreml online free url in huggingface.co:
sauerkrautlm-doom-coreml is an open source model from GitHub that offers a free installation service, and any user can find sauerkrautlm-doom-coreml on GitHub to install. At the same time, huggingface.co provides the effect of sauerkrautlm-doom-coreml install, users can directly use sauerkrautlm-doom-coreml installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
sauerkrautlm-doom-coreml install url in huggingface.co: