Taizo Kaneko
commited on
Commit
·
67a2f9a
1
Parent(s):
97c46f0
commit files to HF hub
Browse files- config.json +1 -1
- fasttext_fsc.py +2 -1
- pytorch_model.bin +1 -1
config.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "fasttext_jp_embedding.FastTextJpConfig",
|
7 |
-
"
|
8 |
},
|
9 |
"hidden_size": 300,
|
10 |
"id2label": {
|
|
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "fasttext_jp_embedding.FastTextJpConfig",
|
7 |
+
"AutoModelForSequenceClassification": "fasttext_fsc.FastTextForSeuqenceClassification"
|
8 |
},
|
9 |
"hidden_size": 300,
|
10 |
"id2label": {
|
fasttext_fsc.py
CHANGED
@@ -53,4 +53,5 @@ class FastTextForSeuqenceClassification(FastTextJpModel):
|
|
53 |
|
54 |
# AutoModelに登録が必要だが、いろいろやり方が変わっているようで定まっていない。(2022/11/6)
|
55 |
# https://huggingface.co/docs/transformers/custom_models#sending-the-code-to-the-hub
|
56 |
-
FastTextForSeuqenceClassification.register_for_auto_class(
|
|
|
|
53 |
|
54 |
# AutoModelに登録が必要だが、いろいろやり方が変わっているようで定まっていない。(2022/11/6)
|
55 |
# https://huggingface.co/docs/transformers/custom_models#sending-the-code-to-the-hub
|
56 |
+
FastTextForSeuqenceClassification.register_for_auto_class(
|
57 |
+
"AutoModelForSequenceClassification")
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 600829
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0a56d3c08a7e47dbe704cf7eb322380ae83c6b8d2becea81b4ae03da9486c026
|
3 |
size 600829
|