Skip to content

Commit 2ae9bb7

Browse files
scripts: added inline script metadata per PEP 723 [no-ci]
1 parent 84ec8a5 commit 2ae9bb7

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

scripts/compare-llama-bench.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/usr/bin/env python3
2+
# /// script
3+
# dependencies = [
4+
# "GitPython",
5+
# "tabulate",
6+
# ]
7+
# ///
28

39
import logging
410
import argparse

scripts/gen-unicode-data.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# /// script
2+
# dependencies = [
3+
# "requests",
4+
# ]
5+
# ///
6+
17
from __future__ import annotations
28

39
import array

scripts/get_chat_template.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
#!/usr/bin/env python
2+
# /// script
3+
# dependencies = [
4+
# "huggingface_hub",
5+
# "requests",
6+
# ]
7+
# ///
8+
29
'''
310
Fetches the Jinja chat template of a HuggingFace model.
411
If a model has multiple chat templates, you can specify the variant name.

0 commit comments

Comments
 (0)