File size: 2,788 Bytes
fd357f4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | # Hugging Face Hub Integration Configuration
# Data Transfer Operations Framework
# Uses HF Hub with Xet backend for artifact storage
# Repository Configuration
repositories:
artifacts:
id: "adaptai/dto-artifacts"
description: "Primary artifact storage for models, checkpoints, and experiments"
type: "model"
private: true
datasets:
id: "adaptai/dto-datasets"
description: "Dataset storage for training and evaluation data"
type: "dataset"
private: true
models:
id: "adaptai/dto-models"
description: "Model storage for trained models and checkpoints"
type: "model"
private: true
# Artifact Management Policies
artifacts:
# Retention policies
retention_days: 90
auto_cleanup: false # HF handles storage management
# Compression settings (handled by HF+Xet)
auto_compress: true
# Integrity verification
checksum_verification: true
checksum_algorithm: "sha256"
# Synchronization Settings
sync:
# Automatic sync intervals (in seconds)
interval: 3600 # 1 hour
# Conflict resolution
conflict_policy: "timestamp" # newest wins
# Bandwidth throttling (handled by HF)
max_bandwidth_mbps: 1000
# Retry settings
max_retries: 3
retry_delay: 30
# Security Configuration
security:
# Authentication
auth_method: "token"
token_env_var: "HF_TOKEN"
# Encryption (handled by HF infrastructure)
encryption_enabled: true
# Access control
read_only: false
# Monitoring and Metrics
monitoring:
# Prometheus metrics
enable_metrics: true
metrics_port: 9092
# Health checks
health_check_interval: 300
# Logging
log_level: "INFO"
log_file: "/var/log/dto-huggingface.log"
# Integration Hooks
hooks:
# Pre-upload hooks
pre_upload: "/opt/dto/hooks/pre-hf-upload.sh"
# Post-upload hooks
post_upload: "/opt/dto/hooks/post-hf-upload.sh"
# Pre-download hooks
pre_download: "/opt/dto/hooks/pre-hf-download.sh"
# Post-download hooks
post_download: "/opt/dto/hooks/post-hf-download.sh"
# Performance Optimization
performance:
# Parallel transfers (handled by HF)
max_parallel_transfers: 8
# Chunk size for large files (handled by HF+Xet)
chunk_size_mb: 64
# Cache settings
cache_enabled: true
cache_size_gb: 50
# Connection pooling
max_connections: 12
connection_timeout: 30
# Xet Backend Configuration (Transparently handled by Hugging Face)
xet_backend:
enabled: true
compression: "zstd"
deduplication: true
versioning: true
# Hugging Face Specific Settings
huggingface:
# API endpoint
endpoint: "https://huggingface.co"
# Timeout settings
timeout: 30
# Rate limiting
requests_per_hour: 5000
# Community features
enable_comments: false
enable_discussions: false |