Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
force-model-revision
#739
by
alozowski
HF staff
- opened
- src/display/about.py +1 -0
- src/scripts/create_request_file.py +1 -1
- src/submission/submit.py +1 -1
src/display/about.py
CHANGED
@@ -205,6 +205,7 @@ When we add extra information about models to the leaderboard, it will be automa
|
|
205 |
### 5) Select the correct precision
|
206 |
Not all models are converted properly from `float16` to `bfloat16`, and selecting the wrong precision can sometimes cause evaluation error (as loading a `bf16` model in `fp16` can sometimes generate NaNs, depending on the weight range).
|
207 |
|
|
|
208 |
## Model types
|
209 |
{icons}
|
210 |
"""
|
|
|
205 |
### 5) Select the correct precision
|
206 |
Not all models are converted properly from `float16` to `bfloat16`, and selecting the wrong precision can sometimes cause evaluation error (as loading a `bf16` model in `fp16` can sometimes generate NaNs, depending on the weight range).
|
207 |
|
208 |
+
<b>Note:</b> Please be advised that when submitting, git <b>branches</b> and <b>tags</b> will be strictly tied to the <b>specific commit</b> present at the time of submission. This ensures revision consistency.
|
209 |
## Model types
|
210 |
{icons}
|
211 |
"""
|
src/scripts/create_request_file.py
CHANGED
@@ -47,7 +47,7 @@ def main():
|
|
47 |
eval_entry = {
|
48 |
"model": model_name,
|
49 |
"base_model": base_model,
|
50 |
-
"revision":
|
51 |
"private": False,
|
52 |
"precision": precision,
|
53 |
"weight_type": weight_type,
|
|
|
47 |
eval_entry = {
|
48 |
"model": model_name,
|
49 |
"base_model": base_model,
|
50 |
+
"revision": model_info.sha, # force to use the exact model commit
|
51 |
"private": False,
|
52 |
"precision": precision,
|
53 |
"weight_type": weight_type,
|
src/submission/submit.py
CHANGED
@@ -125,7 +125,7 @@ def add_new_eval(
|
|
125 |
eval_entry = {
|
126 |
"model": model,
|
127 |
"base_model": base_model,
|
128 |
-
"revision":
|
129 |
"private": private,
|
130 |
"precision": precision,
|
131 |
"params": model_size,
|
|
|
125 |
eval_entry = {
|
126 |
"model": model,
|
127 |
"base_model": base_model,
|
128 |
+
"revision": model_info.sha, # force to use the exact model commit
|
129 |
"private": private,
|
130 |
"precision": precision,
|
131 |
"params": model_size,
|