Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fabric_compute_sdk-1.0.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fabric_compute_sdk-1.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for fabric_compute_sdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 515ac49b7c1c51c058962a9c583733ea130d422710fa83ec9ffb216294b5e8d3
MD5 f7eefac2b8545cf108eb855d3fc2c51e
BLAKE2b-256 0c77e71e98a8956076c61a7d554dfec46626668a0b84ad108e21b0e758a9317c

See more details on using hashes here.

File details

Details for the file fabric_compute_sdk-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fabric_compute_sdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a40b48b0d4f1eb98f2d93f3dcfa43b311d63396ab6a131900d1016fb068c4433
MD5 089a643ca2025a18c736da284d2e4809
BLAKE2b-256 e0217cb18defbd5932d63b2980ffbeddf6670ecaa64f6b51078dd5b401df394a

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