Expand description
CDN-Based Network Streaming for HoloTensor Fragments
This module implements intelligent network streaming for loading model fragments from CDN/edge locations with:
- Range Requests: Partial downloads for progressive loading
- Parallel Fetching: Concurrent chunk downloads
- Smart Caching: ETag/Last-Modified validation
- Retry with Backoff: Resilient to transient failures
- Priority Queue: Critical fragments first
- Bandwidth Adaptation: Adjusts to network conditions
§Architecture
┌─────────────────────────────────────────────────────────────────┐
│ NetworkLoader │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Priority │ -> │ Scheduler │ -> │ Fetcher │ │
│ │ Queue │ │ (rate limit)│ │ (parallel) │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ ↑ ↑ ↓ │
│ │ │ ┌──────────────┐ │
│ Importance Bandwidth │ Cache │ │
│ Weights Monitor │ (disk+mem) │ │
│ └──────────────┘ │
│ ↓ │
│ ┌──────────────┐ │
│ │ Fragment │ │
│ │ Library │ │
│ └──────────────┘ │
└─────────────────────────────────────────────────────────────────┘Modules§
- prelude
- Prelude for common imports
Structs§
- Bandwidth
Monitor - Bandwidth monitor
- Cache
Config - Cache configuration
- Cache
Entry - Cache entry metadata
- Cache
Stats - Cache statistics
- CdnEndpoint
- CDN endpoint configuration
- Client
Config - Configuration for the HTTP client
- Fragment
Cache - Two-tier fragment cache (memory + disk)
- Http
Client - HTTP client for CDN requests
- Load
Request - Request to load a fragment
- Network
Config - Network loader configuration
- Network
Loader - Network loader for fragment streaming
- Prioritized
Fragment - A fragment with associated priority
- Priority
Queue - Thread-safe priority queue for fragments
- Range
Request - Range request for partial downloads
- Retry
Config - Retry configuration
- Scheduler
- Download scheduler
- Scheduler
Config - Scheduler configuration
- Streaming
Loader - Streaming loader for continuous fragment loading
Enums§
- Load
Result - Result of loading a fragment
- Network
Error - Errors that can occur during network operations
- Priority
- Priority level for fragment loading
Type Aliases§
- Result
- Result type for network operations