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.0.post1.tar.gz (10.7 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.0.post1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file fusionml-0.1.0.post1.tar.gz.

File metadata

  • Download URL: fusionml-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for fusionml-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 4df8901618b593126e47e0200251b8f640bf495e502eeb7dea1a1d6f602c61f8
MD5 4aa3f09bbdd30e1c5ad3cca5d25dec20
BLAKE2b-256 7e2e5f4625828f6fc42fe5cbffa2c5c8504782e3b6296347811a09641fe22845

See more details on using hashes here.

File details

Details for the file fusionml-0.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: fusionml-0.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for fusionml-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd66d112c6c309c7418bd175cd7b8d043dca75a5dd64b8dfa451dffefa7ee5e
MD5 e7c68168bf4d4b0fa7e086d1771331a5
BLAKE2b-256 d2e4bc09ed417e1f2db86e285ef43a46e149f24f133d99c6e0b66583a57319a5

See more details on using hashes here.

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