|
import os |
|
|
|
|
|
HF_TOKEN = os.environ.get("HF_TOKEN") |
|
DATASET_NAME = "soprasteria/BoAmps_leaderboard" |
|
|
|
|
|
|
|
MANDATORY_SECTIONS = ["task", "measures", "infrastructure"] |
|
OBLIGATORY_FIELDS = [ |
|
"taskStage", "taskFamily", "dataUsage", "dataType", |
|
"measurementMethod", "powerConsumption", "infraType", "componentType", |
|
"nbComponent" |
|
] |
|
|
|
|
|
REPORT_STATUS_OPTIONS = ["draft", "final", "corrective", "other"] |
|
CONFIDENTIALITY_LEVELS = ["public", "internal", "confidential", "secret"] |
|
DATA_USAGE_OPTIONS = ["input", "output"] |
|
DATA_TYPES = ["tabular", "audio", "boolean", "image", |
|
"video", "object", "text", "token", "word", "other"] |
|
DATA_FORMAT = ["3gp", "3gpp", "3gpp2", "8svx", "aa", "aac", "aax", "act", "afdesign", "afphoto", "ai", "aiff", "alac", |
|
"amr", "amv", "ape", "arrow", "asf", "au", "avi", "avif", "awb", "bmp", "bpg", "cd5", "cda", "cdr", |
|
"cgm", "clip", "cpt", "csv", "deep", "dirac", "divx", "drawingml", "drw", "dss", "dvf", "ecw", "eps", |
|
"fits", "flac", "flif", "flv", "flvf4v", "gem", "gerber", "gif", "gle", "gsm", "heif", "hp-gl", "html", "hvif", |
|
"ico", "iklax", "ilbm", "img", "ivs", "jpeg", "json", "kra", "lottie", "m4a", "m4b", "m4p", "m4v", "mathml", |
|
"matroska", "mdp", "mmf", "movpkg", "mp3", "mpc", "mpeg1", "mpeg2", "mpeg4", "msv", "mxf", "naplps", "netpbm", |
|
"nmf", "nrrd", "nsv", "odg", "ods", "ogg", "opus", "pam", "parquet", "pbm", "pcx", "pdf", "pdn", "pgf", "pgm", |
|
"pgml", "pict", "plbm", "png", "pnm", "postscript", "ppm", "psd", "psp", "pstricks", "qcc", "quicktime", "ra", |
|
"raw", "realmedia", "regis", "rf64", "roq", "sai", "sgi", "sid", "sql", "sln", "svg", "svi", "swf", "text", "tga", |
|
"tiff", "tinyvg", "tta", "vicar", "vivoactive", "vml", "vob", "voc", "vox", "wav", "webm", "webp", "wma", "wmf", |
|
"wmv", "wv", "xaml", "xar", "xcf", "xisf", "xls", "xlsx", "xml", "xps", "yaml", "other"] |
|
|
|
DATA_SOURCE = ["public", "private", "other"] |
|
ACCURACY_LEVELS = ["veryPoor", "poor", "average", "good", "veryGood"] |
|
MEASUREMENT_UNITS = ["Wh", "kWh", "MWh", "GWh", "kJoule", "MJoule", "GJoule", "TJoule", "PJoule", |
|
"BTU", "kiloFLOPS", "megaFLOPS", "gigaFLOPS", "teraFLOPS", "petaFLOPS", |
|
"exaFLOPS", "zettaFLOPS", "yottaFLOPS"] |
|
INFRA_TYPES = ["publicCloud", "privateCloud", "onPremise", "other"] |
|
POWER_SUPPLIER_TYPES = ["public", "private", "internal", "other"] |
|
POWER_SOURCES = ["solar", "wind", "nuclear", |
|
"hydroelectric", "gas", "coal", "other"] |
|
QUALITY_LEVELS = ["high", "medium", "low"] |
|
|