Clémentine
commited on
Commit
·
51ba542
1
Parent(s):
5f4c2c0
remove useless check
Browse files- utils/jobs.py +0 -6
utils/jobs.py
CHANGED
|
@@ -64,12 +64,6 @@ def run_single_job(model: str, provider: str, tasks: str = globals.TASKS) -> Opt
|
|
| 64 |
print("Missing model or provider")
|
| 65 |
return -1
|
| 66 |
|
| 67 |
-
# Verify the model-provider combination exists in the config
|
| 68 |
-
models_providers = load_models_providers(globals.LOCAL_CONFIG_FILE)
|
| 69 |
-
if (model, provider) not in models_providers:
|
| 70 |
-
print( f"Error: {model} with {provider} not found in {globals.LOCAL_CONFIG_FILE}")
|
| 71 |
-
return -1
|
| 72 |
-
|
| 73 |
# Check if job is already running
|
| 74 |
key = globals.get_model_provider_key(model, provider)
|
| 75 |
if key in globals.job_results:
|
|
|
|
| 64 |
print("Missing model or provider")
|
| 65 |
return -1
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
# Check if job is already running
|
| 68 |
key = globals.get_model_provider_key(model, provider)
|
| 69 |
if key in globals.job_results:
|