Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove from mcli.sdk imports #793

Merged
merged 3 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading