Official Python SDK for Fabric - Distributed AI Compute Network
Project description
Fabric SDK
Official Python SDK for Fabric - Distributed AI Compute Network
Submit AI workloads to the Fabric network programmatically.
Installation
pip install fabric-sdk
Quick Start
from fabric_sdk import FabricClient
# Initialize client
client = FabricClient(
api_url="https://api.fabric.carmel.so",
email="your@email.com",
password="your_password"
)
# Submit a job
job = client.submit_job(
workload_type="pytorch_cnn",
params={
"input_size": 784,
"hidden_size": 128,
"output_size": 10,
"num_epochs": 5,
"batch_size": 32
},
requirements={
"min_cpu_cores": 4,
"min_ram_gb": 8,
"gpu_required": True,
"min_gpu_memory_gb": 4
}
)
print(f"Job submitted: {job['id']}")
# Wait for completion
result = client.wait_for_job(job['id'], timeout=300)
print(f"Job completed in {result['duration']}s")
print(f"Cost: ${result['cost']}")
Features
- Automatic Authentication - JWT token management
- Job Submission - Submit AI workloads with custom requirements
- Job Monitoring - Track progress and get results
- Credit Management - Check balance and purchase credits
- Node Discovery - List available compute nodes
- Auto-Retry - Built-in network resilience
- Type Hints - Full TypeScript-style typing support
Supported Workload Types
| Type | Description | Requirements |
|---|---|---|
pytorch_cnn |
PyTorch CNN training | GPU recommended |
transformer_attention |
Transformer attention computation | GPU required |
llm_inference |
LLM token generation | High GPU memory |
custom_python |
Custom Python script | Varies |
License
MIT License - See LICENSE
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 fabric_compute_sdk-1.0.2.tar.gz.
File metadata
- Download URL: fabric_compute_sdk-1.0.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
515ac49b7c1c51c058962a9c583733ea130d422710fa83ec9ffb216294b5e8d3
|
|
| MD5 |
f7eefac2b8545cf108eb855d3fc2c51e
|
|
| BLAKE2b-256 |
0c77e71e98a8956076c61a7d554dfec46626668a0b84ad108e21b0e758a9317c
|
File details
Details for the file fabric_compute_sdk-1.0.2-py3-none-any.whl.
File metadata
- Download URL: fabric_compute_sdk-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a40b48b0d4f1eb98f2d93f3dcfa43b311d63396ab6a131900d1016fb068c4433
|
|
| MD5 |
089a643ca2025a18c736da284d2e4809
|
|
| BLAKE2b-256 |
e0217cb18defbd5932d63b2980ffbeddf6670ecaa64f6b51078dd5b401df394a
|