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="llm_inference",
params={
"prompt": "Explain quantum computing in simple terms",
"max_length": 200,
"temperature": 0.7,
"use_gpu": True
},
job_name="My LLM Inference Job"
)
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_seconds']}s")
print(f"Cost: ${result['actual_cost']}")
Features
- Automatic Authentication - JWT token management
- Job Submission - Submit 28 production workload types
- 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 (26 Total)
Compute & Simulation (5)
cpu_compute_benchmark,gpu_compute_benchmarkeigenvalue_decomposition,financial_forecast_simulation,agent_simulation
Data Processing (5)
data_cleaning,feature_extraction,csv_vectorizationdata_augmentation,outlier_detection
AI Inference (7)
llm_inference,llm_inference_batch,image_classificationembedding_generation,sentiment_analysistext_summarization,question_answering
Media Processing (5)
video_transcode,audio_to_text,video_object_detectionimage_resize_batch,video_summarization
ML Training (4)
random_forest_training,svm_trainingxgboost_training,neural_network_training
Custom (1)
custom_python
For detailed parameter documentation for each workload type, see DEVELOPER_GUIDE.md.
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.4.tar.gz.
File metadata
- Download URL: fabric_compute_sdk-1.0.4.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e73c2a79b8cec1a2b69cf9999225ddf41efbb64e6a814dfb6989db54bd2686
|
|
| MD5 |
00237f4c209fd9b4f9f08959384da1c7
|
|
| BLAKE2b-256 |
5857c3d232aa51bb8e72b62df06e01fae4d7c33d238311eef1ac1660820e4f4b
|
File details
Details for the file fabric_compute_sdk-1.0.4-py3-none-any.whl.
File metadata
- Download URL: fabric_compute_sdk-1.0.4-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb85f1cb8a6baa04b3b3e084752d9b3d0d75809a73fd55b025c21a16a65674a
|
|
| MD5 |
ef1999dd793fca1c7684742533ba165c
|
|
| BLAKE2b-256 |
b18a58a151b8f3bd54c5f2860c467b8717422decde26b7d2069fe5593731333d
|