Spaces:
Running
Running
Update app.py
Browse files- src/text_content.py +0 -55
src/text_content.py
CHANGED
|
@@ -29,64 +29,9 @@ You can also explore:
|
|
| 29 |
|
| 30 |
|
| 31 |
SUBMISSION_TEXT = """
|
| 32 |
-
<h1 align="center">
|
| 33 |
-
How to submit models/results to the leaderboard?
|
| 34 |
-
</h1>
|
| 35 |
-
We welcome the community to submit evaluation results of new models. We also provide an experiental feature for submitting models that our team will evaluate on the 🤗 cluster.
|
| 36 |
-
|
| 37 |
-
## Submitting Models (experimental feature)
|
| 38 |
-
Inspired from the Open LLM Leaderboard, we welcome code models submission from the community that will be automatically evaluated. Please note that this is still an experimental feature.
|
| 39 |
-
Below are some guidlines to follow before submitting your model:
|
| 40 |
-
|
| 41 |
-
#### 1) Make sure you can load your model and tokenizer using AutoClasses:
|
| 42 |
-
```python
|
| 43 |
-
from transformers import AutoConfig, AutoModel, AutoTokenizer
|
| 44 |
-
config = AutoConfig.from_pretrained("your model name", revision=revision)
|
| 45 |
-
model = AutoModel.from_pretrained("your model name", revision=revision)
|
| 46 |
-
tokenizer = AutoTokenizer.from_pretrained("your model name", revision=revision)
|
| 47 |
-
```
|
| 48 |
-
If this step fails, follow the error messages to debug your model before submitting it. It's likely your model has been improperly uploaded.
|
| 49 |
-
Note: make sure your model is public!
|
| 50 |
-
Note: if your model needs `use_remote_code=True`, we do not support this option yet.
|
| 51 |
-
#### 2) Convert your model weights to [safetensors](https://huggingface.co/docs/safetensors/index)
|
| 52 |
-
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`!
|
| 53 |
-
#### 3) Make sure your model has an open license!
|
| 54 |
-
This is a leaderboard for Open LLMs, and we'd love for as many people as possible to know they can use your model 🤗
|
| 55 |
-
#### 4) Fill up your model card
|
| 56 |
-
When we add extra information about models to the leaderboard, it will be automatically taken from the model card.
|
| 57 |
"""
|
| 58 |
|
| 59 |
SUBMISSION_TEXT_2 = """
|
| 60 |
-
## Sumbitting Results
|
| 61 |
-
You also have the option for running evaluation yourself and submitting results. These results will be added as non-verified, the authors are however required to upload their generations in case other members want to check.
|
| 62 |
-
|
| 63 |
-
### 1 - Running Evaluation
|
| 64 |
-
|
| 65 |
-
We wrote a detailed guide for running the evaluation on your model. You can find the it in [bigcode-evaluation-harness/leaderboard](https://github.com/bigcode-project/bigcode-evaluation-harness/tree/main/leaderboard). This will generate a json file summarizing the results, in addition to the raw generations and metric files.
|
| 66 |
-
|
| 67 |
-
### 2- Submitting Results 🚀
|
| 68 |
-
|
| 69 |
-
To submit your results create a **Pull Request** in the community tab to add them under the [folder](https://huggingface.co/spaces/bigcode/multilingual-code-evals/tree/main/community_results) `community_results` in this repository:
|
| 70 |
-
- Create a folder called `ORG_MODELNAME_USERNAME` for example `bigcode_starcoder_loubnabnl`
|
| 71 |
-
- Put your json file with grouped scores from the guide, in addition generations folder and metrics folder in it.
|
| 72 |
-
|
| 73 |
-
The title of the PR should be `[Community Submission] Model: org/model, Username: your_username`, replace org and model with those corresponding to the model you evaluated.
|
| 74 |
"""
|
| 75 |
SUBMISSION_TEXT_3 = """
|
| 76 |
-
<h1 align="center">
|
| 77 |
-
How to submit models/results to the leaderboard?
|
| 78 |
-
</h1>
|
| 79 |
-
We welcome the community to submit evaluation results of new models. These results will be added as non-verified, the authors are however required to upload their generations in case other members want to check.
|
| 80 |
-
|
| 81 |
-
### 1 - Running Evaluation
|
| 82 |
-
|
| 83 |
-
We wrote a detailed guide for running the evaluation on your model. You can find the it in [bigcode-evaluation-harness/leaderboard](https://github.com/bigcode-project/bigcode-evaluation-harness/tree/main/leaderboard). This will generate a json file summarizing the results, in addition to the raw generations and metric files.
|
| 84 |
-
|
| 85 |
-
### 2- Submitting Results 🚀
|
| 86 |
-
|
| 87 |
-
To submit your results create a **Pull Request** in the community tab to add them under the [folder](https://huggingface.co/spaces/bigcode/multilingual-code-evals/tree/main/community_results) `community_results` in this repository:
|
| 88 |
-
- Create a folder called `ORG_MODELNAME_USERNAME` for example `bigcode_starcoder_loubnabnl`
|
| 89 |
-
- Put your json file with grouped scores from the guide, in addition generations folder and metrics folder in it.
|
| 90 |
-
|
| 91 |
-
The title of the PR should be `[Community Submission] Model: org/model, Username: your_username`, replace org and model with those corresponding to the model you evaluated.
|
| 92 |
"""
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
SUBMISSION_TEXT = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
"""
|
| 33 |
|
| 34 |
SUBMISSION_TEXT_2 = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
"""
|
| 36 |
SUBMISSION_TEXT_3 = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
"""
|