ycy commited on
Commit
1f8ecdb
·
1 Parent(s): a6fefd8
Files changed (2) hide show
  1. app.py +5 -0
  2. src/about.py +1 -27
app.py CHANGED
@@ -82,6 +82,11 @@ def init_leaderboard(dataframe):
82
  ],
83
  bool_checkboxgroup_label="Hide models",
84
  interactive=False,
 
 
 
 
 
85
  )
86
 
87
 
 
82
  ],
83
  bool_checkboxgroup_label="Hide models",
84
  interactive=False,
85
+ css="""
86
+ .dataframe td, .dataframe th {
87
+ text-align: center !important;
88
+ }
89
+ """
90
  )
91
 
92
 
src/about.py CHANGED
@@ -55,7 +55,7 @@ def get_INTRODUCTION_TEXT(model_num: int, LAST_UPDATED: str, paper_link="TODO"):
55
  #TODO
56
  INTRODUCE_BENCHMARK = f"""
57
  <details>
58
- <summary style="cursor: pointer; font-size: 18px; color: #2c3e50;">💬 Metric explanations (Click to expand)</summary>
59
  <p style="color: #2c3e50;">#TODO: </p>
60
  </details>
61
  """
@@ -72,33 +72,7 @@ To reproduce our results, here is the commands you can run:
72
  """
73
 
74
  EVALUATION_QUEUE_TEXT = """
75
- ## Some good practices before submitting a model
76
 
77
- ### 1) Make sure you can load your model and tokenizer using AutoClasses:
78
- ```python
79
- from transformers import AutoConfig, AutoModel, AutoTokenizer
80
- config = AutoConfig.from_pretrained("your model name", revision=revision)
81
- model = AutoModel.from_pretrained("your model name", revision=revision)
82
- tokenizer = AutoTokenizer.from_pretrained("your model name", revision=revision)
83
- ```
84
- If this step fails, follow the error messages to debug your model before submitting it. It's likely your model has been improperly uploaded.
85
-
86
- Note: make sure your model is public!
87
- Note: if your model needs `use_remote_code=True`, we do not support this option yet but we are working on adding it, stay posted!
88
-
89
- ### 2) Convert your model weights to [safetensors](https://huggingface.co/docs/safetensors/index)
90
- It's a new format for storing weights which is safer and faster to load and use. It will also allow us to add the number of parameters of your model to the `Extended Viewer`!
91
-
92
- ### 3) Make sure your model has an open license!
93
- This is a leaderboard for Open LLMs, and we'd love for as many people as possible to know they can use your model 🤗
94
-
95
- ### 4) Fill up your model card
96
- When we add extra information about models to the leaderboard, it will be automatically taken from the model card
97
-
98
- ## In case of model failure
99
- If your model is displayed in the `FAILED` category, its execution stopped.
100
- Make sure you have followed the above steps first.
101
- If everything is done, check you can launch the EleutherAIHarness on your model locally, using the above command without modifications (you can add `--limit` to limit the number of examples per task).
102
  """
103
 
104
  CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
 
55
  #TODO
56
  INTRODUCE_BENCHMARK = f"""
57
  <details>
58
+ <summary style="cursor: pointer; font-size: 18px; color: #2c3e50;">💬 Metric explanations </summary>
59
  <p style="color: #2c3e50;">#TODO: </p>
60
  </details>
61
  """
 
72
  """
73
 
74
  EVALUATION_QUEUE_TEXT = """
 
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  """
77
 
78
  CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"