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
Release history Release notifications | RSS feed
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.2.0.tar.gz
(21.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fusionml-0.2.0-py3-none-any.whl
(27.5 kB
view details)
File details
Details for the file fusionml-0.2.0.tar.gz.
File metadata
- Download URL: fusionml-0.2.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66049243b188847b982f16adb7dcf24a2f4e710a1526b0f7426435d6180e4854
|
|
| MD5 |
5028a3d0090906996904828f0533332f
|
|
| BLAKE2b-256 |
5f11dcde65b05df2a1b80840982329e6ed419766049d26a92fa593eec7acbdf0
|
File details
Details for the file fusionml-0.2.0-py3-none-any.whl.
File metadata
- Download URL: fusionml-0.2.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd77ec65c0faa00521462047fdb1e6529b26222f9e4787a9b2d33c7d45d68ff2
|
|
| MD5 |
663b4f0f0c01bd51472cb983eb2f36ac
|
|
| BLAKE2b-256 |
096278cd3637073f10f91870dce50a2307b82b5330a42426a9441deb58e71ddc
|