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.1.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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fabric_compute_sdk-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6eb4c1a1394b4d8bbb67500d19bfb3934343d3a137b35c7af904a92a2adebaca
MD5 1f04249621f9517aa31dd4592f718b21
BLAKE2b-256 3b05b1dbe8ad98994db28a26442d518be5604a69247ea6e312c237bd64be42e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fabric_compute_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44133d98c291d828f622ee350502791126751fbf42b5c8141dff0880b3f5b110
MD5 7a2487b978b226e5faeb00f91442e7cd
BLAKE2b-256 35d86b3f1bca52ac521fbd2da9d7db9e8d1738d24e1c476f890b8762b840471b

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