Skip to content

Commit

Permalink
Remove from mcli.sdk imports (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspfohl authored Dec 11, 2023
1 parent 8d96f9d commit 693ef10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/mcp/mcp_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import argparse
import time

from mcli.sdk import (RunConfig, RunStatus, create_run, follow_run_logs,
wait_for_run_status)
from mcli import (RunConfig, RunStatus, create_run, follow_run_logs,
wait_for_run_status)

if __name__ == '__main__':

Expand Down Expand Up @@ -107,9 +107,11 @@

config = RunConfig(
name=name,
cluster=args.cluster,
gpu_type=args.gpu_type,
gpu_num=args.gpu_num,
compute={
'cluster': args.cluster,
'gpu_type': args.gpu_type,
'gpus': args.gpu_num
},
image=args.image,
integrations=[git_integration],
command=command,
Expand Down
12 changes: 7 additions & 5 deletions scripts/train/benchmarking/submit_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import requests
import yaml
from mcli.models.run_config import SchedulingConfig
from mcli.sdk import RunConfig, create_run, get_clusters

from mcli import RunConfig, SchedulingConfig, create_run, get_clusters


def _get_cluster_info():
Expand Down Expand Up @@ -470,9 +470,11 @@ def run_config(config: Tuple[str, int, int, str, str, int, str],
parameters['model']['fc_type'] = 'te'
# Create run config mcli sdk/api
config = RunConfig(name=name,
gpu_type=gpu_type,
gpu_num=gpu_num,
cluster=cluster,
compute={
'cluster': cluster,
'gpu_type': gpu_type,
'gpus': gpu_num
},
image=args.image,
integrations=integrations,
command=command,
Expand Down

0 comments on commit 693ef10

Please sign in to comment.