pmetal logo

pmetal

Enrichment pending
Epistates/pmetal

PMetal: high-performance Apple Silicon framework for local LLM inference, LoRA/QLoRA fine-tuning, serving, quantization, and MLX/Metal acceleration.

GraphCanon updated today · GitHub synced today

303 stars22 forksLast push 1mo Rust Other

Verify the decision

Maintenance and security

Full trust report
Maintenance
Steady (39d since push)
As of today
Provenance
Not a fork · Organization account
As of today
Security (OSV)
No lockfile
As of today

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

cargo add pmetal
crates.io

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

PMetal: high-performance Apple Silicon framework for local LLM inference, LoRA/QLoRA fine-tuning, serving, quantization, and MLX/Metal acceleration.

Capability facts

Languages
rust

Source: github.language · Jul 15, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Jul 15, 2026)

```python import pmetal
Source link

Tags

README

Quick Start (Easy API)

import pmetal

---

## Installation

Prebuilt signed binaries are available on the [Releases](https://github.com/Epistates/pmetal/releases) page.

Crates are available on [crates.io](https://crates.io/crates/pmetal).

Build from source:

```bash
git clone https://github.com/epistates/pmetal.git && cd pmetal
cargo build --release          # CLI + TUI
cd crates/pmetal-gui && bun install && bun tauri build  # GUI (optional)

Hardware Support

PMetal automatically detects Apple Silicon capabilities at startup and tunes kernel parameters accordingly.

Chip FamilyGPU FamilyNAXANEUltraFusionStatus
M1 / Pro / Max / UltraApple7-16 coresUltra: 2-dieFully supported
M2 / Pro / Max / UltraApple8-16 coresUltra: 2-dieFully supported
M3 / Pro / Max / UltraApple9-16 coresUltra: 2-dieFully supported
M4 / Pro / Max / UltraApple9-16 coresUltra: 2-dieFully supported
M5 / Pro / Max / UltraApple10Yes16 coresUltra: 2-dieFully supported

Auto-detected features: GPU family, device tier, core counts, memory bandwidth, dynamic caching, mesh shaders, NAX (M5+), UltraFusion topology (via sysctl hw.packages), ANE availability.

Tier-based kernel tuning: Matrix tile sizes, FlashAttention block sizes, fused kernel threadgroup sizes, and batch multipliers are automatically selected based on device tier (Base/Pro/Max/Ultra) and GPU family. See docs/hardware-support.md for the full tuning matrix.


Training Infrastructure

  • Sequence Packing: Efficiently pack multiple sequences into single batches for 2-5x throughput. Enabled by default
  • Gradient Checkpointing: Trade compute for memory on large models with configurable layer grouping
  • Adaptive LR: EMA-based anomaly detection with spike recovery, plateau reduction, and divergence detection
  • Callback System: TrainingCallback trait with lifecycle hooks (on_step_start, on_step_end, should_stop) for metrics logging, progress reporting, and clean cancellation
  • Checkpoint Management: Save and resume training from checkpoints with best-loss rollback
  • Tool/Function Calling: Chat templates with native tool definitions for Qwen, Llama 3.1+, Mistral v3+, and DeepSeek
  • Schedule-Free Optimizer: Memory-efficient optimizer without learning rate schedules
  • Metal Fused Optimizer: GPU-accelerated AdamW parameter updates
  • 8-bit Adam: Memory-efficient optimizer for large models
  • LoRA+: Differentiated learning rates for LoRA A and B matrices
  • NEFTune: Noise-augmented fine-tuning for improved generation quality
  • Distributed Training: mDNS auto-discovery, Ring All-Reduce with gradient compression

License

Licensed under either of MIT or Apache-2.0.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.