Skip to content

Releases

MuNet 0.16.0

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 29 Nov 09:15

Added

  • int4 ONNX models. Both importers read int4 / uint4 tensors, DequantizeLinear with block_size, and
    com.microsoft MatMulNBits. Their weights run packed as int4 on the GPU.
  • to_onnx exports w4 weights as int4 DequantizeLinear with block_size.
  • Packed weight-only matmuls accept the full int4 range ([-8, 7] and [0, 15]), asymmetric int8, and per-group zero
    points.

Changed

  • Compiled programs free their host fp32 copies of constants once the weights are on the GPU.

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.15.2

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 28 Nov 01:31

Added

  • Autotuning without Python. munet_autotune(program, budget_s, report, size) (C API 11) and Program::autotune in
    Rust tune a loaded program's matmul and convolution kernels on its GPU and store the winners in the kernel cache;
    load the program again to run them. The tuner is native (cpp/autotune.cpp): the same keys, candidates, 5% margin
    and cache file as python -m munet.autotune, so either reads what the other wrote. A winner is also confirmed head
    to head against the built-in choice before it is stored. cargo run --release --example autotune -- model.mnet
    times a program before and after.
  • munet_test_inject_device_lost(n) / munet::test_inject_device_lost(n): the test hook of
    MUNET_TEST_INJECT_DEVICE_LOST, callable at run time, for applications that test their recovery from a lost device.

Changed

  • python -m munet.diagnose also sweeps the tiles of training kernels (input and weight gradients of convolutions
    and matmuls, mixed and fp32), so a hardware report shows which training tiles suit the GPU. Each sweep entry records
    its workload (inference or training). The default sweep budget is 600 s per GPU (was 300) and 60 s with
    --quick (was 30).
  • RDNA 3.5 (Radeon 8050S / 890M) convolution tiles: 3x3 convs with 64 output channels use 64x64 tiles instead of
    64x128 (1.2-1.4x on the 8050S at 160x160), and convs with at least 256 output channels use wider subgroup tiles
    without split-K (256 channels at 40x40 1.1x, 512 channels at 20x20 up to 1.3x).
  • Autotune covers every shape of a large model by default: MUNET_AUTOTUNE_BUDGET_S defaults to 600 (was 30). Tuning
    is faster too: one driver pipeline cache per device instead of reading and rewriting the cache file per candidate,
    and slow candidates stop early. A cold RT-DETR training tune on an RTX 3060 covers all 99 shapes in 127 s (was 243 s
    uncapped).
  • The depthwise convolution weight gradient (conv2d_dw) has each thread compute 4 adjacent output columns from one
    input window: a 7x7 depthwise layer (40 channels, 160x160) 1.61 -> 0.35 ms on an RTX 3060.
  • Python plans a "mixed" or "fp16" program on a cooperative-matrix GPU with the same precision bits as the C API
    and the Rust crate. Python left out the two bits of the portable kernels in such a plan (whole-vec4 operand
    staging, and 64x64 tiles for convolutions of up to 32 output channels), so the same model could get different
    kernels from Python than from C or Rust on Qualcomm and Intel GPUs. A 1280 px RT-DETR on an Arc B580 runs the same
    with either (28.0 ms per batch).
  • The device probe keeps the built-in choice of wide fp16-accumulate tiles unless it loses on every timed shape
    (it used to follow the geometric mean). On an RTX 3090 the matmul was 8% faster wide and the two convolutions
    18-25% faster narrow; the probe picked narrow tiles, and a 1280 px RT-DETR ran 23.5 ms per batch against 21.0 ms
    with wide tiles. Stored profiles are measured again (probe-v2).

Fixed

  • Frame pipeline: after a detect that failed before its last submission (for example a device loss in the model's
    run), the next detect and freeing the pipeline waited forever on a fence that nothing would signal, when the
    device still worked. They now wait only for submitted work.

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.15.1

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 26 Nov 12:06

Changed

  • int8 calibration defaults to observer="minmax" and leaves layers whose quantized input keeps less than 20 dB of
    signal-to-noise ratio in fp16 (min_snr_db, all of calibrate_onnx, munet_calibrate_onnx and
    munet::calibrate_onnx; the C and Rust functions take it as a new last argument, C API 10). The old "mse"
    default clipped the rare large activations of transformer MLPs: output cos against fp32, DINOv2-S 0.875 -> 0.982,
    DINOv2-B 0.42 -> 0.99, DeiT-S 0.978 -> 0.989; ResNet-50 and ConvNeXt-V2-A unchanged.

Fixed

  • fp32 Depth Anything V2-S on Intel Arc was slower than 0.10.0 (B580: 34.8 -> 38.6 ms). Convolutions of up to 32 output
    channels now keep the 64x64 tile where it is faster. A new device choice, conv_wide_tiles (rule: Intel on, others
    off), is timed by the device probe; override with MUNET_CONV_WIDE_TILES=0/1. B580: 38.6 -> 35.5 ms.

Removed

  • The training swarm: munet.swarm, the munet-node and munet-server commands and release archives, the
    MUNET_SWARM_NODE CMake option and the libcurl/OpenSSL build dependency. Use the training pool (pool.md)
    instead. tls_context moved to munet.pool.tls_context.

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.15.0

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 25 Nov 09:54

Changed

  • The first compile or load on a GPU and driver with no stored device profile runs the device probe automatically
    (a few seconds, once; MUNET_AUTO_PROBE=0 skips it). Unprobed GPUs fell back to the built-in rules: a Ryzen 5700U's
    Vega 8 ran its portable kernels without vec4 operand staging, fp32 1024^3 matmul 5.36 ms vs 4.91 ms probed, fp16
    7.21 vs 3.66 ms.

  • The portable matmul kernels (GPUs without cooperative matrices) tune how they stage operands in shared memory, and
    portable fp16 matmuls are now autotunable too (hfmm M N K). The tuned entry is [T, side, staging]; old 2-field
    fmm entries are tuned again. Without cooperative matrices, fp16 1024x768x3072 on an Arc B580 drops from 3.31 to
    2.05 ms.

  • Portable convolutions tune operand staging too: fconv entries become [T, side, split, staging] (3-field entries
    are tuned again), and portable fp16 convolutions are now autotunable (hfconv). On a Ryzen 5700U's Vega 8 (probed
    device profile), fp16 4x512->512 20px k3 drops from 11.1 to 8.8 ms and a batch-8 CNN from 31.9 to 29.2 ms.

  • munet.diagnose measures memory bandwidth as the best copy over two buffer sizes and two grid sizes. A single
    256 MB copy reported 8 GB/s on a Ryzen 5700U's Vega 8 while its kernels moved 24-30 GB/s.

Fixed

  • MUNET_AUTOTUNE=1 no longer fails with 'Compiled' object has no attribute '_input_specs': the autotuner's GPU
    warm-up program tried to tune itself.

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.14.0

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 25 Nov 00:08

Added

  • Pool nodes train in bf16: munet-pool-node --precision bf16 (and Nodes(precision="bf16")). The C API and the
    Rust crate gain MUNET_PRECISION_BF16 / Precision::Bf16, planned as Python's precision="bf16".
  • Joined shards can be turned off: Pool(..., join_small_shards=False) for the whole pool,
    munet-pool-node --no-join-small-shards (or Node(..., join_small_shards=False)) for one node, for example to keep
    BatchNorm statistics at shard_rows rows.
  • A node that can take no waiting task is told why: the master logs one warning per node and program, the node logs
    the bytes the program needs and its memory limit, and status() shows them as the node's unable. Pool protocol
    10: nodes and masters of earlier versions refuse each other.
  • fp32 matmuls are autotunable (fmm M N K: 4x4 or 8x8 registers, 8x8 or 16x16 threads), and munet.diagnose
    sweeps fp32 tiles, also on GPUs without cooperative matrices (it used to skip the sweep there).

Performance

  • int8 ViT attention projections store Q, K and V head-major straight from the GEMM, as fp16 already did, instead of
    through an extra permute kernel. Depth-Anything-V2-S int8 on RTX 3060: 10.85 -> 8.31 ms GPU (fp16 7.08 ms).

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.13.0

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 24 Nov 10:45

Changed

  • AMD GPUs with matrix cores (RADV): precision="fp16" no longer picks tiles of 16 or more matrix fragments per
    subgroup or two K groups per tile. On a Radeon 8050S hardware report these were the slowest candidates: a 2048^3
    matmul took 10.9 ms against 1.07 ms, a 3x3 512-channel convolution 2.07 ms against 0.48 ms. Whether a GPU gets the
    wide tiles is a device rule (MUNET_ACC16_WIDE=0/1), on for NVIDIA; NVIDIA and Intel tiles are unchanged.
  • probe_device() also times wide against narrow fp16-accumulate tiles and stores the faster choice
    (acc16_wide_tiles).
  • munet.diagnose: correctness timings are the minimum of three warm runs (were one cold run); the tile sweep visits
    one shape of every kernel kind before the second of any, and marks shapes timed while a reference kernel ran over
    25% slow as noisy; the report records the autotune kernel version.

Added

  • precision="bf16": bf16 operands and storage with fp32 accumulation on GPUs whose cooperative matrices take bf16
    (VK_KHR_shader_bfloat16, checked by _native.bf16_supported(index)); other GPUs run fp32. bf16 keeps fp32's
    exponent range, so training does not hit fp16's 65504 limit. Tested on NVIDIA (RTX 3060) and Intel (Arc B580).
  • Autotuning covers bf16 (b keys) and fp32 convolution tiles (f keys), and for bf16 weight gradients it also
    picks how the input image is read (scalar gather or a channels-last bf16 pack). A candidate must beat the heuristic
    by 5%. python -m munet.autotune tunes a saved .mnet for C/C++/Rust loads and native pool nodes, and
    munet.load(autotune=) tunes fp32 and bf16 plans.
  • tools/tile_corpus.py and tests/test_tile_corpus.py: stored tile sweeps of reported GPUs, and a GPU-free test
    that the tile heuristics stay within 1.35x (geometric mean) and 2x (any shape) of the best stored tile on each.

Fixed

  • Autotuning recursed into its own warm-up programs with MUNET_AUTOTUNE=1, and retried keys where every candidate
    failed on each build (RT-DETR bf16 build with a full cache: 39.1 -> 6.3 s).
  • Autotuning and munet.diagnose timed some candidates while the GPU ran at lowered clocks, and ranked them
    wrongly. An RTX 3060 lowers its clocks after about 2.5 s of sparse work, such as the shader compiles between
    candidates, and then runs up to 9x slower until 0.4 s of sustained work. Both now time a reference kernel before
    each measurement and keep the GPU busy until it is back at speed. probe_device() warms up for 500 ms after a
    long plan build.
  • munet.diagnose reported glslang: None when the compiler came from MUNET_GLSLANG.

Performance

RT-DETRv2 training, 4 rows, bf16, RTX 3060: 8.3 -> 11.5 rows/s since 0.12.0.

  • Convolution weight gradients: K-major gather with hoisted index decodes, dy read as a packed bf16 operand, per-column
    tap offsets, and an optional channels-last image pack. 4x1024x80 -> 512 3x3 on the RTX 3060: 26.2 -> 11-15 ms.
  • bf16 plans skip the fp16 underflow probe on convolution gradients.
  • fp16 packs whose source is strided along the packed columns go through 32x64 shared-memory tiles
    (55-136 -> 300-340 GB/s).
  • Reductions: column mode for channel sums of NCHW tensors; leading-axis sums read coalesced.
  • Parameter updates write in place when nothing reads the old value.
  • Hungarian matching runs one workgroup per batch (17.1 -> 0.5 ms GPU per RT-DETR step).
  • Gradients of unit-step slices are zero pads that readers inline instead of full-size buffers.
  • New shaders for grid_sample gradients (scatter with shared-memory adds) and for depthwise-style convolutions the
    GEMM path does not take.

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.12.0

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 22 Nov 00:34

Added

  • Training pool (munet.pool): a master holds the weights and the optimizer, nodes join with a token
    (python -m munet.pool URL --device vulkan:0), pull shards of each batch, compute gradients on their own device with
    kernels built for it, and return them as binary float32. Any loss and optimizer work, including gradient clipping,
    EMA and BatchNorm statistics. Nodes can join and leave during training, and unanswered work goes to another node.
    A node can cap the buffers it allocates (--memory 2G) and declines work over the cap.
    A node on a slow link can take and return half-float tensors (--encoding f16): half the bytes, rounded weights
    and gradients.
    A node asks for its next task while it computes and uploads results in a second thread, and takes several
    shards per request and returns one gradient set for them (--bundle N, default 64). The master sizes each bundle from
    the node's measured link rate and compute time, and gives a node no work when it could not add a shard before the
    rest of the pool finishes the step.
    pool.prefetch(...) queues the next batch and pool.steps(batches) does it for a whole loop: a node with
    nothing to ask for receives the inputs of its part of the next step before that step begins.
    A list of stage functions (Pool([backbone, head_and_loss], ...)) cuts the model into one program per stage: a
    node needs memory for one stage at a time and receives only the weights of the stages it runs.
    Pool(..., memory_limit=bytes) joins adjacent stages itself: every program stays within the limit and the fewest
    bytes pass between groups.
    A pool given one function needs no stages: a node reports its memory limit when it joins (a node on
    Vulkan defaults to three quarters of its device memory), and the master cuts the traced graph into a chain of
    programs that fit a node the whole program is over. A 22 M-parameter detector that needs 1270.2 MiB whole was
    cut to 5 programs of at most 592.3 MiB for a 640 MiB node.
    The master applies the update on a GPU by default (device="vulkan") and checks that device when the pool is
    built.
    An idle node also computes a task another node has held for much longer than the master expected of it, and the
    first valid result wins: a slow node or a slow link costs duplicate work instead of step time.
    Pool(..., local=True) runs local steps (pool protocol 6): every shard is one optimizer step, a node runs its
    shards one after another with optimizer state of its own, and the master adds the mean of what the nodes moved.
    It gives up equality with single-machine training for throughput.
    Guide: docs/pool.md.
  • Pool node munet-pool-node (-DMUNET_POOL_NODE=ON) is the one node. It runs on the C API, for Linux and
    Android, without Python. python -m munet.pool, pool.Node and pool.Nodes start it as a child process, and
    Linux wheels carry it in munet/bin. There is no Python node any more, and no node for other systems.
    HTTPS uses a vendored TLS 1.2 client (BearSSL, cpp/third_party/bearssl, every file hash-checked by the tests);
    no system HTTP or TLS library is needed. Releases also ship it as munet-pool-node-VERSION-linux-ARCH.tar.gz
    and as bin/<abi>/munet-pool-node in the Android archive.
  • Pool dashboard: the master serves a page on its address, opened with the pool token. It shows the step, loss and
    rows per second, a training chart of the loss and of values logged with the new Pool.log(name=value), a chart and
    a table of the nodes with a choice of what to plot, and the one-line command that joins the pool.
    python -m munet.pool ui is a page on a node to join from and to watch the node work. Both use the standard
    library only and load nothing from another origin. Guide: docs/pool.md.
  • Pool nodes for several GPUs in one machine: python -m munet.pool URL --device all (or a list such as
    vulkan:0,vulkan:1,cpu) and pool.Nodes(master, token, devices) start one node per device in one process. The
    node page has a checkbox per device.
    Guide: docs/pool.md.
  • C API 8: munet_load_limited (fails before allocating when a program needs more than a byte limit),
    munet_buffer_bytes, munet_write_state and munet_read_state (parameters and buffers by graph id). Rust:
    Program::load_limited, buffer_bytes, write_state and read_state.
  • activations="fp16" (mu.compile, mu.load, pool nodes: --activations fp16): a program at precision="fp32" on a
    Vulkan device stores its forward activations as half floats. Gradients, indices, sampling positions, updated state
    and outputs stay float32. Off by default. It shrinks the arena; the gradient differs from the float32 one
    by a few percent of its norm, and more in the layers that predict sampling offsets. .mnet files now record the
    graph's gradient seeds, which this needs. Files saved earlier load as before, but not with activations="fp16".
    Guide: docs/training.md.
  • Pool: a node takes shards of a gradient program only after it has built that program's kernels. The master names
    the program to build in its reply to a work request, the node builds it and lists it as built in its next
    request, and until then it holds no task, takes no backup and is not counted in the other nodes' shares. A node
    that joins between steps builds the programs of the last batch. status() reports built and building per
    node, and the dashboard marks a node that is building kernels. A late answer of a
    local round computed from weights more than two rounds old is dropped, and its
    shards are trained again. Pool protocol 9.
  • Pool: a node joins consecutive shards of a step into one run on dim 0, sized to its memory limit: the largest
    power-of-two run whose program fits next to the single-shard program. A node holds only those two programs, so it
    does not drop and rebuild programs to stay under its limit. status() reports run_rows per node.
    Guide: docs/pool.md.
  • Pool local steps: a node whose link takes longer to bring the new weights than to compute a shard runs one handout
    per round on the weights of the round before, which it holds, and downloads the new ones while it computes. Its
    answer is added one round late, as a late answer is. Guide: docs/pool.md.

Fixed

  • ONNX import: Constant nodes with value_int(s) / value_float(s) attributes; Clip with computed (non-constant) bounds; GridSample opset-20 linear mode with align_corners=1 and border padding. This applies to both the Python and the native importers.
  • Vulkan: a flipped slice (negative step) of a matmul output was folded into the GEMM epilogue and read unflipped, which gave wrong results.

Performance

  • Vulkan: loading a program no longer copies its arena into host memory. Initial values go to the device from the
    graph, and reads and writes pass through a staging buffer of at most 16 MiB instead of a host mirror of the whole
    arena. A training program with a 904 MiB arena on an RTX 3060: process memory grew by 3837 MiB at the peak and
    2030 MiB afterwards before, and by 254 MiB now. stats() reports staging_bytes.
  • Vulkan: several values are read back together. A pool node's task results and the master's weights go through the
    staging buffer in shared transfers, each value on a 64-byte boundary, instead of one submission per tensor. The 598
    result tensors (84 MiB) of a one-row RTDETRv2 gradient program took 67-70 ms in 598 submissions; they take 23-26 ms
    on an Arc B580 and 39-42 ms on an RTX 3060 in 6. Pool steps of that model on one node, 16 one-row shards: 5.84 ->
    5.09 s (B580) and 6.46 -> 5.82 s (RTX 3060). munet-pool-node still reads one output at a time.
  • Pool: in a pool that runs as one program, a node keeps the weighted sum of its gradients on its device and reads
    it back once per task instead of once per shard, and a result is sent from the memory it was read into (pool
    protocol 4). A 22 M-parameter detector, one-row shards, nodes on the master's machine, two runs each: 16 rows on
    an RTX 3060 5.58-5.59 -> 4.38-4.39 s per step; 32 rows on an RTX 3060 and an Arc B580 5.95-6.15 -> 4.33-4.47 s
    (5.2-5.4 -> 7.2-7.4 rows/s). That program's file grows from 86.6 to 171.1 MiB and its buffers from 1186.0 to
    1270.2 MiB.
  • Pool: munet-pool-node takes bundles and keeps gradient sums on its device (--bundle N, default
    64). 32 one-row shards of that detector per step on an RTX 3060: 17.19 s with one shard per task, 8.75 and 9.37 s
    with bundles. The Python node took 8.43 and 9.04 s in the same session.
  • Pool: stages and automatic cuts take bundles (pool protocol 5). Every program of a chain that returns parameter
    gradients keeps their sums on the node, and the master hands several shards of any program per request. That
    detector, 32 one-row shards per step on an RTX 3060, two alternating runs each: three stages 11.60-11.71 -> 10.09 s;
    one function cut for a 640 MiB node 17.53-18.02 -> 16.81-17.13 s, in 11 answers per step instead of 160. The sums
    take device memory: the largest program of that cut grew from 559.9 to 592.3 MiB.
  • Pool: uint8 and bool batch arguments travel to nodes as bytes and reach loss_fn as float32 with the same values
    (pool protocol 7). The master counts them at full size when it sizes the share of a node that takes half floats.
    Local rounds of 32 four-row shards of 640 px crops, an RTX 3060 node on loopback and a second GPU node behind an
    8 MiB/s link with --encoding f16, two runs each: 25.3-25.4 s per round with float32 images, 23.7-23.8 s with
    uint8.
  • Pool: node encoding q8 (--encoding q8; pool protocol 8) is f16, except that what a
    node returns from local steps goes as 8-bit integers with one scale per ten...
Read more

MuNet 0.11.1

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 16 Nov 22:26

Added

  • Hardware report for phones: python tools/phone_diagnose.py (in the Android archive) is the phone twin of
    python -m munet.diagnose. Over adb it records the phone (model, SoC, memory, thermal state), the GPU driver and
    Vulkan facts, measured bandwidth and throughput, correctness of the main kernel paths against the CPU executor
    (including matmuls with K = 4, 8 and 12), the device probe and per-kernel times of a small CNN and ViT, and writes
    munet-diag-phone-<model>.json.gz. --quick takes about 2 minutes. See docs/android.md.
  • C API 7: munet_device_report_json (limits, features, extensions, cooperative-matrix shapes, driver and the kernel
    rules in force) and munet_device_ceilings_json (measured memory bandwidth and throughput). The Rust bindings need
    API 7.
  • munet_diagnose (tests/c_api/diagnose.cpp) and tools/export_diagnose_models.py produce that report from the C
    API; tools/build_android.py --package ships both in the archive.
  • The Vulkan device report also covers Vulkan 1.1 drivers (driver, subgroup, float controls and features through the
    extensions they advertise), so phone reports are complete.
  • Android wrapper (examples/android): MuNet.load takes inputShapes (static shapes for ONNX inputs with symbolic
    dimensions) and cache (a .mnet file that later loads reuse). New inputName, outputName, inputShape,
    outputShape, gpuMs() and stats(). See docs/android.md.
  • examples/android-demo in the source repository: an app that takes or picks a photo, runs a DETR-style detector on
    the phone's GPU and shows the boxes, detections and timings. It is not part of the Android archive.

Changed

  • Bench suite: the local 1280 px detector entries are local-detr-1280-b3 and local-detr-1280-b6.
    MUNET_BENCH_LOCAL_DETR names their ONNX file (default ~/.cache/munet-bench/local/detr-1280.onnx).

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.11.0

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 16 Nov 09:21

Added

  • Android: the C API builds with the NDK for arm64-v8a and x86_64 (Android 10+, API 29). Releases publish
    munet-android-<version>.tar.gz with libmunet_c.so per ABI, the header, a JNI bridge and a Kotlin wrapper
    (examples/android). The library compiles kernels in-process with shaderc, exports only munet_*, needs only
    libc, libm and libdl, and is aligned for 16 KB pages. Guide: docs/android.md.
    tools/build_android.py builds it, --test runs the CPU/GPU parity check on a phone over adb.
  • C API 6: munet_set_cache_dir (kernel cache directory, e.g. Context.getCacheDir()), munet_probe_device and
    munet_device_profile_json.
  • Device probe (mu.probe_device(), mu.device_profile(), munet::probe_device in Rust): checks the per-GPU kernel
    choices against the CPU executor on this GPU, times the correct ones and stores a profile per driver version in the
    cache directory. Later loads use it instead of the built-in rules.
  • precision="fp16" on GPUs without cooperative matrices (most phones) runs portable fp16 matmul and convolution
    kernels where shaders have fp16 arithmetic, including a direct convolution kernel. Built-in rules pick its width
    limit and the GEMM operand staging per GPU; MUNET_CONV_DIRECT and MUNET_GEMM_VEC_STAGING override them.
  • MUNET_SUBMIT_KERNELS=N splits a run into submissions of at most N kernels. Android defaults to 16.
  • Native ONNX importer: Softmax, Gemm and LayerNormalization on constant inputs (DETR positional tables) import
    instead of being rejected.

Fixed

  • Adreno 730 (driver 0615.0): the portable GEMM kernels returned wrong results that varied between runs (YOLO11n fp32
    all NaN, RT-DETR R18 fp32 boxes off). Qualcomm GPUs now stage whole vec4s and take the K dimension at run time.
  • Adreno 650: the generic convolution kernel returned wrong results for 512 channels at batch 1 and up (signed index
    arithmetic); indices are now unsigned.
  • Long single submissions lost the device on Adreno (RT-DETR R18 at 640 px); see MUNET_SUBMIT_KERNELS above.

Performance

  • Concat and serial max kernels are generated with literal shapes: YOLO11n 640 px fp32 on Adreno 650, 1067 -> 310 ms.
  • Phones, YOLO11n 640 px, single runs: Adreno 650 123 ms fp16 and 191 ms fp32; Adreno 730 64 ms fp16 and 164 ms fp32.

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.

MuNet 0.10.0

Choose a tag to compare

@bryan-pakulski bryan-pakulski released this 14 Nov 14:23

Added

  • python -m munet.diagnose (also munet-diagnose): a hardware report for GPUs MuNet is not tuned on. It records the
    driver, Vulkan features, limits and cooperative-matrix shapes, measured ceilings, correctness of the main kernel
    paths per precision against the CPU backend, the time of every candidate tile for common GEMM / convolution shapes,
    and per-kernel profiles of a small CNN and ViT, in one JSON file without paths or host names. The README links a
    "Hardware report" issue form in munet-releases. _native.device_report(index) returns the device facts as JSON.

Fixed

  • Driver pipeline cache files grew without bound (1.4 GB on an RTX 3060, 2.9 GB on an Arc B580 after test and bench
    runs), and every program loads the whole file: device setup took 6-25 s per compile. Files larger than
    MUNET_PIPELINE_CACHE_MAX_MB (default 256) are now discarded and rebuilt; setup is back to 6-110 ms.

Prebuilt MuNet binaries. Use requires a license key; see LICENSE.