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.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-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fusionml-0.1.0.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.tar.gz
Algorithm Hash digest
SHA256 3fd04540d0baa3ef6896261c60cdb5572c455dae2147d8f0936cf7ca2368c738
MD5 22427cdcbce04500a51e207ddc6bb9c7
BLAKE2b-256 8c4d10a3ce837d4bb07b11f44c34b0ad48330d71d9c543904aa2b5878fa8da49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fusionml-0.1.0-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-py3-none-any.whl
Algorithm Hash digest
SHA256 43831a7a90a2bdccda283be930764272fa775ed975f828d05525ca6d88db9808
MD5 27a9a5369c69c8b635410732739922e0
BLAKE2b-256 af1a4f133a847e2266372e23777c48d849884635ded225cc99819fc0597106d1

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