Skip to content

Releases

Fastforks 0.3.0

Choose a tag to compare

@kleinicke kleinicke released this 25 Nov 01:09

Fastforks 0.3.0 adds Windows CUDA support, an MLX backend for Apple silicon, and two ComfyUI node packs. It also speeds up repeated CUDA inference and reduces GPU memory use in several models.

  • Windows NVIDIA GPUs. The optimized CUDA backend now runs on supported 64-bit Windows systems. Kernel DLLs download automatically and work with a CUDA 13-capable driver.
  • Apple silicon. Models with an MLX port can run through Apple's MLX framework. Automatic mode selects MLX where measurements show a performance or memory benefit and first-call overhead is low.
  • ComfyUI. The full pack offers 24 nodes for tasks such as depth, segmentation, optical flow, and upscaling. The commercial pack offers 22 nodes and lists models cleared for commercial use. Both include example workflows, model selection, and download progress with cancellation. Comfy Registry publication is pending.
  • CUDA speed and memory. Thirty-seven more model variants can reuse CUDA graphs for repeated requests at eligible sizes. The first request runs the optimized kernels directly. Capture is quicker for 15 variants on the native CUDA allocator, and WAFT uses less GPU memory.
  • Other additions. Six whole-body CT checkpoints for TotalSegmentator, dynamic FP16 ONNX export for CUDA AANet, and less CUDA memory use for NeuFlow v2.

Install or upgrade with pip install -U fastforks==0.3.0.

Full changelog · ComfyUI setup guide · PyPI

fastforks 0.2.0

Choose a tag to compare

@kleinicke kleinicke released this 17 Nov 00:45

New tasks and models, a more consistent API, and a readable weight cache. The full list is in CHANGELOG.md.

  • New models and tasks, among them YuNet face detection, Restormer and NAFNet restoration, volume segmentation (nnFoundation, TotalSegmentator, nnInteractive), DepthSplat and LingBot-Map multi-view, MatAnyone matting, MLSD / AnyLine edges, PARSeq / PP-OCRv5 OCR and several trackers. Each card lists speed and memory against the original code.
  • API: lists in, lists out for all single-image and pair tasks; save(path) on restoration, flow, volume and instance results; one video(...) verb for SAM 2 / SAM 3 / MatAnyone; keyword-only arguments where they were positional. The old 0.1.1 names keep working with a FutureWarning until 2026-12-15. The public API is frozen in tests/api_snapshot.txt from now on.
  • Weights: ~/.cache/fastforks is the content-addressed store; a readable <family>/<file> symlink view sits next to it. Weights that are already in the Hugging Face cache stay there.
  • Features that are known not to work in this release (a card's planned) raise a clear BackendUnavailableError before any work.
  • Apple Silicon: CPU channels-last convolutions are used on x86 only; float16 on MPS for many families.

Install: pip install fastforks==0.2.0 (also fastforks-core, fastforks-nc).

fastforks 0.1.1

Choose a tag to compare

@kleinicke kleinicke released this 10 Nov 18:04

Fixes and faster kernels. No new models.

  • kernels is faster on GPUs that run fp16 tensor-core math with fp32 accumulation at full rate (NVIDIA L4, A10, A10G, L40S, A100, RTX PRO 6000): the DPT kernels (new dpt_fused build) use larger tiles for the deep layers and a tanh GELU there. Depth Pro and UniK3D keep the exact GELU. GeForce cards run as before.
  • Marigold on kernels runs GroupNorm and SiLU on the channels-last map, without layout copies. The MoGe-3 refiner runs in fp16 on CUDA. RT-MonSter++ and CFNet on kernels no longer fall into slow paths on datacenter cards.
  • TensorRT: the FoundationStereo cost volumes export without per-disparity loops. c-fast-foundationstereo at 994 x 1482 on the RTX 5060 Ti takes 156 ms instead of 449 ms; the output is within fp16 rounding of portable.
  • The fp16 overflow guard of the attention kernels syncs with the host once per model call instead of once per launch, which shortens the first calls of every guarded model. It also checks the warm-up before a CUDA graph is captured, so a graph never records a variant that overflows.
  • Fix: in models with several attention launchers (vggt-1b, depth-pro), a launcher could run out of checked launches after reruns and stay unchecked.
  • Fix: Model.compile() on segmentation models compiled the resize into the class maximum, three times slower than eager (SegFormer). The label step now runs eagerly inside the compiled model.
  • Fix on Apple MPS: unproject and the stereo cameras move points to the CPU before float64 maths, and save() / save_scene() apply the max_depth and mask filters on the points' device.
  • SAM 3, DINOv3, DINOv3 ConvNeXt and VGGT-Omega are validated on Apple MPS in fp32 and fp16 (portable).
  • fastforks download no longer stops at the first model or file it cannot fetch (a gated repo without access, a host that is down). It fetches everything else, lists the failures as MISSING lines and exits with code 1.
  • Changed: the weight files of Depth Anything 3 and MoGe have unique names (DA3-LARGE-1.1/model.safetensors, moge-3-vitl/model.pt) instead of model.safetensors / model.pt for every variant. A local weights folder (FASTFORKS_WEIGHTS_PATH) can now hold all variants; files placed there by hand under the old names must be moved.
  • Docs: speed surveys per device (Apple M1 Pro, NVIDIA L4, A10, A10G, L40S, A100, RTX PRO 6000) and accuracy against the original code for depth, stereo, segmentation, detection, promptable segmentation, features, classification and multi-view depth.

Install: pip install fastforks==0.1.1