pod = runpod.create_pod( name=bot_name, image_name="runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04", gpu_count=1, gpu_type_id='NVIDIA A40', network_volume_id="8y", volume_mount_path="/workspace", ports= "8888/http,22/tcp,70002/tcp", env={ "PUBLIC_KEY": "ssh-ed25519 ", "JUPYTER_PASSWORD": "h7xw7gxh407nxshza6f3", }, support_public_ip=True, docker_args="/workspace/start_finetune.sh", container_disk_in_gb=20 )
printenv | grep -i RUNPOD_TCP_PORT_70002
pod = runpod.create_pod( name=bot_name, image_name="runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04", gpu_count=1, gpu_type_id='NVIDIA A40', network_volume_id="8y", volume_mount_path="/workspace", ports= "8888/http,22/tcp,70001/tcp", env={ "PUBLIC_KEY": "ssh-ed25519 ", "JUPYTER_PASSWORD": "h7xw7gxh407nxshza6f3", "RUNPOD_PUBLIC_IP": "10.2.25.69", "RUNPOD_TCP_PORT_70001": 5000 }, support_public_ip=True, docker_args="/workspace/start_finetune.sh", container_disk_in_gb=20 )
{'id': 'dfg', 'desiredStatus': 'RUNNING', 'imageName': 'runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04', 'env': ['PUBLIC_KEY=ssh-ed25519 m', 'JUPYTER_PASSWORD=h7xw7gxh407nxshza6f3', 'RUNPOD_PUBLIC_IP=10.2.25.69', 'RUNPOD_TCP_PORT_70000=5000'], 'machineId': 'gp8l45q218uu', 'machine': {'podHostId': '85f0xhj08uxndo-644112f0'}}
start_ssh
start_jupyter
if [[ $JUPYTER_PASSWORD ]]; then echo "Starting Jupyter Lab..."