-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the selectable gpu type and maximum memory adjustable for evaluations. See DIAGNijmegen/rse-roadmap#346
- Loading branch information
Showing
5 changed files
with
164 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...llenge/evaluation/migrations/0069_phase_maximum_settable_memory_gb_evaluation_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Generated by Django 4.2.16 on 2024-11-21 12:39 | ||
|
||
from django.db import migrations, models | ||
|
||
import grandchallenge.core.validators | ||
import grandchallenge.evaluation.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("evaluation", "0068_alter_evaluation_detailed_error_message"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="phase", | ||
name="evaluation_maximum_settable_memory_gb", | ||
field=models.PositiveSmallIntegerField( | ||
default=32, | ||
help_text="Maximum amount of memory that challenge admins will be able to assign for the evaluation method.", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="phase", | ||
name="evaluation_selectable_gpu_type_choices", | ||
field=models.JSONField( | ||
default=grandchallenge.evaluation.models.get_default_gpu_type_choices, | ||
help_text='The GPU type choices that challenge admins will be able to set for the evaluation method. Options are ["", "A100", "A10G", "V100", "K80", "T4"].', | ||
validators=[ | ||
grandchallenge.core.validators.JSONValidator( | ||
schema={ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"items": { | ||
"enum": [ | ||
"", | ||
"A100", | ||
"A10G", | ||
"V100", | ||
"K80", | ||
"T4", | ||
], | ||
"type": "string", | ||
}, | ||
"title": "The Selectable GPU Types Schema", | ||
"type": "array", | ||
"uniqueItems": True, | ||
} | ||
) | ||
], | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters