chore: enhance .gitignore and remove obsolete documentation files - Reorganize .gitignore with categorized sections for better maintainability - Add comprehensive ignore patterns for Python, Node.js, databases, logs, and build artifacts - Add project-specific ignore rules for coordinator, explorer, and deployment files - Remove outdated documentation: BITCOIN-WALLET-SETUP.md, LOCAL_ASSETS_SUMMARY.md, README-CONTAINER-DEPLOYMENT.md, README-DOMAIN-DEPLOYMENT.md ```
61 lines
1.6 KiB
Python
61 lines
1.6 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
GPU Miner Registration Demo
|
|
Shows what data would be sent to register the GPU
|
|
"""
|
|
|
|
import json
|
|
from datetime import datetime
|
|
|
|
# GPU Information from nvidia-smi
|
|
GPU_INFO = {
|
|
"miner_id": "localhost-gpu-miner",
|
|
"capabilities": {
|
|
"gpu": {
|
|
"model": "NVIDIA GeForce RTX 4060 Ti",
|
|
"memory_gb": 16,
|
|
"cuda_version": "12.4",
|
|
"compute_capability": "8.9",
|
|
"driver_version": "550.163.01"
|
|
},
|
|
"compute": {
|
|
"type": "GPU",
|
|
"platform": "CUDA",
|
|
"supported_tasks": ["inference", "training", "stable-diffusion", "llama"],
|
|
"max_concurrent_jobs": 1
|
|
}
|
|
},
|
|
"concurrency": 1,
|
|
"region": "localhost"
|
|
}
|
|
|
|
print("=== GPU Miner Registration Data ===")
|
|
print(json.dumps(GPU_INFO, indent=2))
|
|
print("\n=== Registration Endpoint ===")
|
|
print("POST http://localhost:8000/miners/register")
|
|
print("\n=== Headers ===")
|
|
print("Authorization: Bearer REDACTED_MINER_KEY")
|
|
print("Content-Type: application/json")
|
|
print("\n=== Response Expected ===")
|
|
print("""
|
|
{
|
|
"status": "ok",
|
|
"session_token": "abc123..."
|
|
}
|
|
""")
|
|
|
|
print("\n=== Current GPU Status ===")
|
|
print(f"Model: NVIDIA GeForce RTX 4060 Ti")
|
|
print(f"Memory: 16GB (2682MB/16380MB used)")
|
|
print(f"Utilization: 9%")
|
|
print(f"Temperature: 43°C")
|
|
print(f"Status: Available for mining")
|
|
|
|
print("\n=== To Start the GPU Miner ===")
|
|
print("1. Ensure coordinator API is running on port 8000")
|
|
print("2. Run: python simple_gpu_miner.py")
|
|
print("3. The miner will:")
|
|
print(" - Register GPU capabilities")
|
|
print(" - Send heartbeats every 15 seconds")
|
|
print(" - Poll for jobs every 3 seconds")
|