Files
herolib/lib/clients/runpod
Mahmoud Emad 9e51604286 feat: enhance RunPod example with detailed pod creation
- Added more options to the RunPod example, including:
- `cloud_type`, `gpu_count`, `volume_in_gb`,
- `container_disk_in_gb`, `min_vcpu_count`,
- `min_memory_in_gb`, `gpu_type_id`, `ports`, and
- `volume_mount_path`.  This provides a more
- comprehensive demonstration of RunPod's capabilities.
- Updated the example to create an on-demand pod with
- specified resources and settings.  The spot pod
- creation remains largely unchanged.  Improved the
- clarity and completeness of the example.  Removed
- commented-out code for better readability.  Also
- updated the `PodFindAndDeployOnDemandRequest` struct
- to remove default values, allowing for more flexible
- pod configurations.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-21 11:03:33 +02:00
..
2025-01-19 22:20:47 +02:00
2025-01-19 22:20:47 +02:00
2025-01-19 22:20:47 +02:00
2025-01-21 10:50:07 +02:00
2025-01-21 10:50:07 +02:00
2025-01-21 10:50:07 +02:00

runpod

To get started




import freeflowuniverse.crystallib.clients. runpod

mut client:= runpod.get()!

client...




example heroscript

!!runpod.configure
    secret: '...'
    host: 'localhost'
    port: 8888