Skip to main content

High-Performance ML Framework for Apple Silicon

Project description

FusionML - Python

High-Performance ML Framework for Apple Silicon with GPU+CPU parallel execution.

Installation

pip install fusionml

# With Metal GPU support
pip install fusionml[metal]

Quick Start

import fusionml as fml

# Initialize
fml.init()

# Create tensors
x = fml.rand(32, 784)
y = fml.Tensor([0, 1, 2, 3])  # Labels

# Build model
model = fml.nn.Sequential([
    fml.nn.Linear(784, 256),
    fml.nn.ReLU(),
    fml.nn.Linear(256, 10)
])

# Optimizer
optimizer = fml.optim.Adam(model.parameters(), lr=0.001)

# Training step
output = model(x)
loss = fml.nn.functional.cross_entropy(output, y)
loss.backward()
optimizer.step()

print(f"Loss: {loss.item()}")

Features

  • 🔥 PyTorch-like API
  • ⚡ GPU+CPU parallel execution
  • 🧠 Full autograd support
  • 🎯 Apple Silicon optimized

API

Tensors

fml.rand(2, 3)      # Random uniform
fml.randn(2, 3)     # Random normal
fml.zeros(2, 3)     # Zeros
fml.ones(2, 3)      # Ones
fml.eye(3)          # Identity

Layers

fml.nn.Linear(in, out)
fml.nn.ReLU()
fml.nn.GELU()
fml.nn.Dropout(0.5)
fml.nn.Sequential([...])

Optimizers

fml.optim.SGD(params, lr=0.01, momentum=0.9)
fml.optim.Adam(params, lr=0.001)

Functional

fml.nn.functional.relu(x)
fml.nn.functional.softmax(x)
fml.nn.functional.cross_entropy(pred, target)
fml.nn.functional.mse_loss(pred, target)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fusionml-0.1.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fusionml-0.1.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file fusionml-0.1.1.tar.gz.

File metadata

  • Download URL: fusionml-0.1.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fusionml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3cdbc4d9f3e419ad12d34a7fa80bb07bd67fe4d594dc98d490f80ee92ecfba3d
MD5 32bd4eff6904d0a015dc8a1f780d8319
BLAKE2b-256 5961f3e6e9928593403b57d7d18136919bcd2b68ec4fdc6561a38b79b48a0fb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for fusionml-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ommo007/FusionML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fusionml-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fusionml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fusionml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a09428ec1e7cdbbd283d500ad7f67b4e44f11014ce147b990e1ae0b6afb708cc
MD5 5ce24a88a267f9b04a15d8e15cf69556
BLAKE2b-256 d541df7b78a132dd8c0497099e634bfb6dd60a55f7a572bd10c5b4da52e0b20f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fusionml-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on ommo007/FusionML

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page