gitarsenal-cli 1.7.6 → 1.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ascii_banner.txt +12 -12
- package/package.json +1 -1
- package/python/test_modalSandboxScript.py +3 -13
- package/test_modalSandboxScript.py +3 -13
package/ascii_banner.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
|
2
|
-
│
|
3
|
-
│ ██████╗ ██╗████████╗ █████╗ ██████╗ ███████╗███████╗███╗ ██╗ █████╗ ██╗
|
4
|
-
│ ██╔════╝ ██║╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██╔════╝████╗ ██║██╔══██╗██║
|
5
|
-
│ ██║ ███╗██║ ██║ ███████║██████╔╝███████╗█████╗ ██╔██╗ ██║███████║██║
|
6
|
-
│ ██║ ██║██║ ██║ ██╔══██║██╔══██╗╚════██║██╔══╝ ██║╚██╗██║██╔══██║██║
|
7
|
-
│ ╚██████╔╝██║ ██║ ██║ ██║██║ ██║███████║███████╗██║ ╚████║██║
|
8
|
-
│ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝╚═╝
|
9
|
-
│
|
10
|
-
│
|
11
|
-
│
|
12
|
-
|
1
|
+
╭────────────────────────────────────────────────────────────────────────────────╮
|
2
|
+
│ │
|
3
|
+
│ ██████╗ ██╗████████╗ █████╗ ██████╗ ███████╗███████╗███╗ ██╗ █████╗ ██╗ │
|
4
|
+
│ ██╔════╝ ██║╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██╔════╝████╗ ██║██╔══██╗██║ │
|
5
|
+
│ ██║ ███╗██║ ██║ ███████║██████╔╝███████╗█████╗ ██╔██╗ ██║███████║██║ │
|
6
|
+
│ ██║ ██║██║ ██║ ██╔══██║██╔══██╗╚════██║██╔══╝ ██║╚██╗██║██╔══██║██║ │
|
7
|
+
│ ╚██████╔╝██║ ██║ ██║ ██║██║ ██║███████║███████╗██║ ╚████║██║ ██║███████╗│
|
8
|
+
│ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝│
|
9
|
+
│ │
|
10
|
+
│ GPU-Accelerated Development Environments │
|
11
|
+
│ │
|
12
|
+
╰────────────────────────────────────────────────────────────────────────────────╯
|
package/package.json
CHANGED
@@ -1400,15 +1400,6 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1400
1400
|
modal_token = os.environ.get("MODAL_TOKEN_ID")
|
1401
1401
|
print(f" - token in env: {'Yes' if modal_token else 'No'}")
|
1402
1402
|
print(f" - Token length: {len(modal_token) if modal_token else 'N/A'}")
|
1403
|
-
|
1404
|
-
# Verify we can create a Modal app
|
1405
|
-
try:
|
1406
|
-
print("🔍 Testing app creation...")
|
1407
|
-
app = modal.App(app_name)
|
1408
|
-
print("✅ Created app successfully")
|
1409
|
-
except Exception as e:
|
1410
|
-
print(f"❌ Error creating app: {e}")
|
1411
|
-
return None
|
1412
1403
|
|
1413
1404
|
# Create SSH-enabled image
|
1414
1405
|
try:
|
@@ -1416,14 +1407,14 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1416
1407
|
|
1417
1408
|
# Use a more stable CUDA base image and avoid problematic packages
|
1418
1409
|
ssh_image = (
|
1419
|
-
# modal.Image.from_registry("nvidia/cuda:12.4.0-
|
1410
|
+
# modal.Image.from_registry("nvidia/cuda:12.4.0-devel-ubuntu22.04", add_python="3.11")
|
1420
1411
|
modal.Image.debian_slim()
|
1421
1412
|
.apt_install(
|
1422
1413
|
"openssh-server", "sudo", "curl", "wget", "vim", "htop", "git",
|
1423
1414
|
"python3", "python3-pip", "build-essential", "tmux", "screen", "nano",
|
1424
1415
|
"gpg", "ca-certificates", "software-properties-common"
|
1425
1416
|
)
|
1426
|
-
.
|
1417
|
+
.uv_pip_install("uv", "modal", "requests", "openai") # Remove problematic CUDA packages
|
1427
1418
|
.run_commands(
|
1428
1419
|
# Create SSH directory
|
1429
1420
|
"mkdir -p /var/run/sshd",
|
@@ -1468,8 +1459,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1468
1459
|
# Define the SSH container function (remove image from decorator)
|
1469
1460
|
@app.function(
|
1470
1461
|
timeout=timeout_minutes * 60, # Convert to seconds
|
1471
|
-
gpu=
|
1472
|
-
cpu=2,
|
1462
|
+
gpu="A10G",
|
1473
1463
|
serialized=True,
|
1474
1464
|
volumes=volumes_config if volumes_config else None,
|
1475
1465
|
)
|
@@ -1400,15 +1400,6 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1400
1400
|
modal_token = os.environ.get("MODAL_TOKEN_ID")
|
1401
1401
|
print(f" - token in env: {'Yes' if modal_token else 'No'}")
|
1402
1402
|
print(f" - Token length: {len(modal_token) if modal_token else 'N/A'}")
|
1403
|
-
|
1404
|
-
# Verify we can create a Modal app
|
1405
|
-
try:
|
1406
|
-
print("🔍 Testing app creation...")
|
1407
|
-
app = modal.App(app_name)
|
1408
|
-
print("✅ Created app successfully")
|
1409
|
-
except Exception as e:
|
1410
|
-
print(f"❌ Error creating app: {e}")
|
1411
|
-
return None
|
1412
1403
|
|
1413
1404
|
# Create SSH-enabled image
|
1414
1405
|
try:
|
@@ -1416,14 +1407,14 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1416
1407
|
|
1417
1408
|
# Use a more stable CUDA base image and avoid problematic packages
|
1418
1409
|
ssh_image = (
|
1419
|
-
# modal.Image.from_registry("nvidia/cuda:12.4.0-
|
1410
|
+
# modal.Image.from_registry("nvidia/cuda:12.4.0-devel-ubuntu22.04", add_python="3.11")
|
1420
1411
|
modal.Image.debian_slim()
|
1421
1412
|
.apt_install(
|
1422
1413
|
"openssh-server", "sudo", "curl", "wget", "vim", "htop", "git",
|
1423
1414
|
"python3", "python3-pip", "build-essential", "tmux", "screen", "nano",
|
1424
1415
|
"gpg", "ca-certificates", "software-properties-common"
|
1425
1416
|
)
|
1426
|
-
.
|
1417
|
+
.uv_pip_install("uv", "modal", "requests", "openai") # Remove problematic CUDA packages
|
1427
1418
|
.run_commands(
|
1428
1419
|
# Create SSH directory
|
1429
1420
|
"mkdir -p /var/run/sshd",
|
@@ -1468,8 +1459,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1468
1459
|
# Define the SSH container function (remove image from decorator)
|
1469
1460
|
@app.function(
|
1470
1461
|
timeout=timeout_minutes * 60, # Convert to seconds
|
1471
|
-
gpu=
|
1472
|
-
cpu=2,
|
1462
|
+
gpu="A10G",
|
1473
1463
|
serialized=True,
|
1474
1464
|
volumes=volumes_config if volumes_config else None,
|
1475
1465
|
)
|