update-transformer.js
#9
by
PierreMesure
- opened
- app.py +2 -2
- requirements.txt +7 -10
app.py
CHANGED
|
@@ -20,10 +20,10 @@ class Config:
|
|
| 20 |
|
| 21 |
hf_token: str
|
| 22 |
hf_username: str
|
| 23 |
-
transformers_version: str = "
|
| 24 |
hf_base_url: str = "https://huggingface.co"
|
| 25 |
transformers_base_url: str = (
|
| 26 |
-
"https://github.com/
|
| 27 |
)
|
| 28 |
repo_path: Path = Path("./transformers.js")
|
| 29 |
|
|
|
|
| 20 |
|
| 21 |
hf_token: str
|
| 22 |
hf_username: str
|
| 23 |
+
transformers_version: str = "main"
|
| 24 |
hf_base_url: str = "https://huggingface.co"
|
| 25 |
transformers_base_url: str = (
|
| 26 |
+
"https://github.com/huggingface/transformers.js/archive/refs"
|
| 27 |
)
|
| 28 |
repo_path: Path = Path("./transformers.js")
|
| 29 |
|
requirements.txt
CHANGED
|
@@ -1,12 +1,9 @@
|
|
| 1 |
huggingface_hub
|
| 2 |
streamlit
|
| 3 |
-
transformers[torch]==4.
|
| 4 |
-
onnxruntime==1.
|
| 5 |
-
optimum
|
| 6 |
-
onnx==1.
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
--extra-index-url https://pypi.ngc.nvidia.com
|
| 11 |
-
onnx_graphsurgeon==0.3.27
|
| 12 |
-
timm
|
|
|
|
| 1 |
huggingface_hub
|
| 2 |
streamlit
|
| 3 |
+
transformers[torch]==4.48.3
|
| 4 |
+
onnxruntime==1.20.1
|
| 5 |
+
optimum@git+https://github.com/huggingface/optimum.git@ce533cf1a9e144d4040581947f301dc3f454b279
|
| 6 |
+
onnx==1.17.0
|
| 7 |
+
tqdm==4.67.1
|
| 8 |
+
onnxslim==0.1.48
|
| 9 |
+
onnx-graphsurgeon==0.5.5
|
|
|
|
|
|
|
|
|