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

Documentation

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.0.tar.gz (7.9 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.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file fabric_compute_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: fabric_compute_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 7.9 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.0.tar.gz
Algorithm Hash digest
SHA256 b402c0a05f70a7ed3ff64a895468f68f72c8fae30eb4d8455bf94e602b8d75a9
MD5 cc9a7994d5fe32aa6c399f9f01b30309
BLAKE2b-256 f5ae811258933770dbb3fd2d277d5c5be424760cb519e238b0de830eeefc3f20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabric_compute_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cda7a773ae1a38818e0bfb8fbf2464e0d0924f6d9c75c311b40ff134249aebfd
MD5 b1f9f32b9718bb7f53ed59bd1c506627
BLAKE2b-256 63a71caa46f90b858f0798aad5647108c2b6fb0c5a81aefb2cc443a94db8f29b

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