Spaces:
Sleeping
Sleeping
0.45 model info
Browse files
app.py
CHANGED
@@ -29,20 +29,14 @@ htmL_info = "<center><h1>Pharia Battle Royale</h1><p>Let the games begin: Try a
|
|
29 |
model_info = [{"id": "Aleph-Alpha/Pharia-1-LLM-7B-control-hf",
|
30 |
"name": "Pharia 1 LLM 7B control hf"}]
|
31 |
|
32 |
-
logging.debug(f'base_model: {model_info[0]['name']}')
|
33 |
-
|
34 |
challenger_models = [{"id": "NousResearch/Meta-Llama-3.1-8B-Instruct",
|
35 |
"name": "Meta Llama 3.1 8B Instruct"},
|
36 |
{"id": "mistralai/Mistral-7B-Instruct-v0.3",
|
37 |
"name": "Mistral 7B Instruct v0.3"}]
|
38 |
|
39 |
challenger_model = choice(challenger_models)
|
40 |
-
logging.debug(f'challenger_model: {challenger_model['name']}')
|
41 |
-
|
42 |
model_info.append(challenger_model)
|
43 |
-
|
44 |
shuffle(model_info)
|
45 |
-
logging.debug(f'models shuffled. model[0]: {model_info[0]['name']}, model[1]: {model_info[1]['name']}')
|
46 |
|
47 |
device = "cuda"
|
48 |
|
|
|
29 |
model_info = [{"id": "Aleph-Alpha/Pharia-1-LLM-7B-control-hf",
|
30 |
"name": "Pharia 1 LLM 7B control hf"}]
|
31 |
|
|
|
|
|
32 |
challenger_models = [{"id": "NousResearch/Meta-Llama-3.1-8B-Instruct",
|
33 |
"name": "Meta Llama 3.1 8B Instruct"},
|
34 |
{"id": "mistralai/Mistral-7B-Instruct-v0.3",
|
35 |
"name": "Mistral 7B Instruct v0.3"}]
|
36 |
|
37 |
challenger_model = choice(challenger_models)
|
|
|
|
|
38 |
model_info.append(challenger_model)
|
|
|
39 |
shuffle(model_info)
|
|
|
40 |
|
41 |
device = "cuda"
|
42 |
|