Skip to content

Commit 45be889

Browse files
move scripts under contrib
Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
1 parent b9321bb commit 45be889

File tree

7 files changed

+9
-801
lines changed

7 files changed

+9
-801
lines changed

.github/workflows/build-top-models.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ jobs:
5151

5252
- name: Install dependencies
5353
run: |
54-
pip install -r scripts/requirements.txt
54+
pip install -r contrib/scripts/requirements.txt
5555
5656
- name: Select compatible models
5757
id: select-models
5858
env:
5959
HF_TOKEN: ${{ secrets.HF_TOKEN }}
6060
run: |
61-
python scripts/select_top_models.py \
61+
python contrib/scripts/select_top_models.py \
6262
--limit ${{ github.event.inputs.limit || '10' }} \
6363
--max-size ${{ github.event.inputs.max_size || '10' }} \
6464
--sort-by ${{ github.event.inputs.sort_by || 'downloads' }} \
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ pip install -r requirements.txt
3434
Basic usage (fetch top 10 models by downloads):
3535

3636
```bash
37-
python scripts/select_top_models.py
37+
python contrib/scripts/select_top_models.py
3838
```
3939

4040
#### Options
4141

4242
```bash
43-
python scripts/select_top_models.py \
43+
python contrib/scripts/select_top_models.py \
4444
--limit 10 \ # Number of models to select (default: 10)
4545
--max-size 20.0 \ # Maximum model size in GB (default: 20.0)
4646
--sort-by downloads \ # Sort by: downloads, likes, trending (default: downloads)
@@ -53,19 +53,19 @@ python scripts/select_top_models.py \
5353
Get top 5 small models (< 5GB):
5454

5555
```bash
56-
python scripts/select_top_models.py --limit 5 --max-size 5
56+
python contrib/scriptsselect_top_models.py --limit 5 --max-size 5
5757
```
5858

5959
Get most liked models:
6060

6161
```bash
62-
python scripts/select_top_models.py --limit 10 --sort-by likes
62+
python contrib/scripts/select_top_models.py --limit 10 --sort-by likes
6363
```
6464

6565
Save to file:
6666

6767
```bash
68-
python scripts/select_top_models.py --limit 20 --output top_models.json
68+
python contrib/scripts/select_top_models.py --limit 20 --output top_models.json
6969
```
7070

7171
### Output Format
@@ -93,14 +93,14 @@ Some models require HuggingFace authentication. Set the `HF_TOKEN` environment v
9393

9494
```bash
9595
export HF_TOKEN="your_huggingface_token"
96-
python scripts/select_top_models.py
96+
python contrib/scripts/select_top_models.py
9797
```
9898

9999
Or use `huggingface-cli`:
100100

101101
```bash
102102
huggingface-cli login
103-
python scripts/select_top_models.py
103+
python contrib/scripts/select_top_models.py
104104
```
105105

106106
## GitHub Workflow Integration

0 commit comments

Comments
 (0)