Learning Center

Master your remote GPU workflow with comprehensive guides and tools.

Essential

āœ… Quick Sanity Check

Run this simple test to verify your GaasHub connection and GPU access.

verify_setup.py
import torch
import platform
import time
import sys

def verify_gaashub():
    print("\n" + "="*50)
    print("šŸš€ GAASHUB SETUP VERIFICATION")
    print("="*50)
    
    # 1. Remote Environment Check
    print(f"\nšŸ“ REMOTE NODE: {platform.node()}")
    print(f"🐧 SYSTEM:     {platform.system()} {platform.release()}")
    
    # 2. GPU Detection
    if not torch.cuda.is_available():
        print("\nāŒ CRITICAL: No GPU detected!")
        print("   This script is running on CPU. Check your GaasHub connection.")
        sys.exit(1)

    gpu_name = torch.cuda.get_device_name(0)
    vram_gb = torch.cuda.get_device_properties(0).total_memory / 1e9
    print(f"\nāœ… GPU DETECTED: {gpu_name}")
    print(f"   VRAM Available: {vram_gb:.2f} GB")
    
    # 3. Compute Stress Test
    print("\n⚔ Running Compute Stress Test (Matrix Mult)...")
    try:
        start_time = time.time()
        # Generate large matrices on GPU
        a = torch.randn(8000, 8000, device='cuda')
        b = torch.randn(8000, 8000, device='cuda')
        # Perform heavy calculation
        c = torch.matmul(a, b)
        torch.cuda.synchronize() # Ensure operation finishes
        duration = time.time() - start_time
        
        print(f"   Status: SUCCESS")
        print(f"   Execution Time: {duration:.4f} seconds")
        
    except Exception as e:
        print(f"āŒ COMPUTE FAILED: {str(e)}")
        sys.exit(1)

    print("\n" + "="*50)
    print("✨ YOUR SETUP IS CORRECT! READY FOR ML TASKS.")
    print("="*50 + "\n")

if __name__ == "__main__":
    verify_gaashub()

How to run:

1. Save the code as verify_setup.py

2. Open your terminal and run:

gaashub ./verify_setup.py
šŸ“¦

Package Management

Learn how to auto-install requirements.txt on the remote GPU.

Coming Soon
šŸ“

Project Syncing

Sync local folders to the cloud instantly using our CLI.

Coming Soon
šŸ› ļø

Need Extra Help?

If you're facing any issues or have technical questions, our support team is ready to assist you.

Email: info@gaashub.com

ā±ļø Guaranteed response in under 24 hours.