Upload 18 files
Browse files- ar_base_f16.onnx +3 -0
- cn_base_f16.onnx +3 -0
- convert.py +11 -0
- de_base_f16.onnx +3 -0
- en_base_f16.onnx +3 -0
- fa_base_f16.onnx +3 -0
- fr_base_f16.onnx +3 -0
- id_base_f16.onnx +3 -0
- ja_base_f16.onnx +3 -0
- km_base_f16.onnx +3 -0
- ko_base_f16.onnx +3 -0
- ko_base_fp16.onnx +3 -0
- mn_base_f16.onnx +3 -0
- pt_base_f16.onnx +3 -0
- ru_base_f16.onnx +3 -0
- th_base_f16.onnx +3 -0
- tr_base_f16.onnx +3 -0
- vi_base_f16.onnx +3 -0
ar_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f37e041646cf63369d617ae95e39c19fca15bc9e55a1da8baaf4a427aea2911f
|
3 |
+
size 62464887
|
cn_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c53dc88e9bd94a15f74ebc25c7750d1f4fa98aa3913139b354afa28277cfa1a4
|
3 |
+
size 62459765
|
convert.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import onnx
|
2 |
+
#from onnxconverter_common import float16
|
3 |
+
from onnxruntime.transformers.float16 import convert_float_to_float16
|
4 |
+
langs = ['ar','cn','de','en','fa','fr','id','ja','km','ko','mn','pt','ru','th','tr','vi']
|
5 |
+
|
6 |
+
|
7 |
+
for lang in langs:
|
8 |
+
print(lang)
|
9 |
+
model = onnx.load(f"{lang}_base.onnx")
|
10 |
+
model_fp16 = convert_float_to_float16(model)
|
11 |
+
onnx.save(model_fp16, f"{lang}_base_f16.onnx")
|
de_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e2055a6d2fee2d75b0b8ed4b423f441eb2169e7a964ba4708c40061a85363dc
|
3 |
+
size 62457717
|
en_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65e75ae242c2c6d03d8eb3df91763199c92b1bc660361319a01da503f1152aa2
|
3 |
+
size 62517886
|
fa_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:960330874fa910543301a7d7a447b990cd314e80fe542888cff898e315f3a8f3
|
3 |
+
size 62449525
|
fr_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66ca76cf0610ca9314a8e0f0a2b7da147382dd7a0efb66c6e92e63bb8c0e3bee
|
3 |
+
size 62459253
|
id_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0be43615257d805b17526868ad20a7fb1b4d036e590300f41c639a995183e8
|
3 |
+
size 62449525
|
ja_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:269e9060c9f0a9c15939432f09842fe6938d07619c8e4d03636dfadb69380ae0
|
3 |
+
size 62456693
|
km_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6a4471106f4231b627f0fddeeea475b77efa11df78de858e0b77253aced78b22
|
3 |
+
size 62449525
|
ko_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f904c87f831c08087729a14d01e255db0444450bee477c7388e58351507e0e3
|
3 |
+
size 62486391
|
ko_base_fp16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f904c87f831c08087729a14d01e255db0444450bee477c7388e58351507e0e3
|
3 |
+
size 62486391
|
mn_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:818760d4b38efe894d4c0204b718761e3a089dad168ca13089a4127c52c0c7d2
|
3 |
+
size 62449525
|
pt_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e9e03a35eaa56de68d6534ab614c9e29901f9dc413326aa961c6a226c6eb4ae4
|
3 |
+
size 62458229
|
ru_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d721c3fd16135dfc7a3b178b2bf9e278a3224e069a8d9772e481c0c46548b7d
|
3 |
+
size 62450037
|
th_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b26d7fb798b5625482138e01f54a4adcfd38e961560c92604a7342e4f2b66a66
|
3 |
+
size 62450037
|
tr_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6182b8d9f459faf94aec28e20330cf896fc435ef7a319af2d485f0f63f01bcd
|
3 |
+
size 62449525
|
vi_base_f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5971bc512befdcb6afcdd1bd96077acdfb75bcc307b7faeac47fd3e789923393
|
3 |
+
size 62449525
|