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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cdbc4d9f3e419ad12d34a7fa80bb07bd67fe4d594dc98d490f80ee92ecfba3d
|
|
| MD5 |
32bd4eff6904d0a015dc8a1f780d8319
|
|
| BLAKE2b-256 |
5961f3e6e9928593403b57d7d18136919bcd2b68ec4fdc6561a38b79b48a0fb2
|
Provenance
The following attestation bundles were made for fusionml-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on ommo007/FusionML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fusionml-0.1.1.tar.gz -
Subject digest:
3cdbc4d9f3e419ad12d34a7fa80bb07bd67fe4d594dc98d490f80ee92ecfba3d - Sigstore transparency entry: 794201964
- Sigstore integration time:
-
Permalink:
ommo007/FusionML@0797883e8c55725ab1bf1dd3765789e22e334260 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ommo007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0797883e8c55725ab1bf1dd3765789e22e334260 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a09428ec1e7cdbbd283d500ad7f67b4e44f11014ce147b990e1ae0b6afb708cc
|
|
| MD5 |
5ce24a88a267f9b04a15d8e15cf69556
|
|
| BLAKE2b-256 |
d541df7b78a132dd8c0497099e634bfb6dd60a55f7a572bd10c5b4da52e0b20f
|
Provenance
The following attestation bundles were made for fusionml-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on ommo007/FusionML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fusionml-0.1.1-py3-none-any.whl -
Subject digest:
a09428ec1e7cdbbd283d500ad7f67b4e44f11014ce147b990e1ae0b6afb708cc - Sigstore transparency entry: 794202032
- Sigstore integration time:
-
Permalink:
ommo007/FusionML@0797883e8c55725ab1bf1dd3765789e22e334260 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ommo007
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@0797883e8c55725ab1bf1dd3765789e22e334260 -
Trigger Event:
push
-
Statement type: