Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f434bfc6
Commit
f434bfc6
authored
Dec 03, 2019
by
Julien Chaumond
Browse files
[pplm] Update S3 links
Co-Authored-By:
Piero Molino
<
w4nderlust@gmail.com
>
parent
96e83506
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/pplm/run_pplm.py
examples/pplm/run_pplm.py
+3
-3
No files found.
examples/pplm/run_pplm.py
View file @
f434bfc6
...
@@ -59,7 +59,7 @@ BAG_OF_WORDS_ARCHIVE_MAP = {
...
@@ -59,7 +59,7 @@ BAG_OF_WORDS_ARCHIVE_MAP = {
DISCRIMINATOR_MODELS_PARAMS
=
{
DISCRIMINATOR_MODELS_PARAMS
=
{
"clickbait"
:
{
"clickbait"
:
{
"url"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/pplm/discriminators/clickbait_classifierhead.pt"
,
"url"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/pplm/discriminators/clickbait_classifier
_
head.pt"
,
"class_size"
:
2
,
"class_size"
:
2
,
"embed_size"
:
1024
,
"embed_size"
:
1024
,
"class_vocab"
:
{
"non_clickbait"
:
0
,
"clickbait"
:
1
},
"class_vocab"
:
{
"non_clickbait"
:
0
,
"clickbait"
:
1
},
...
@@ -67,7 +67,7 @@ DISCRIMINATOR_MODELS_PARAMS = {
...
@@ -67,7 +67,7 @@ DISCRIMINATOR_MODELS_PARAMS = {
"pretrained_model"
:
"gpt2-medium"
,
"pretrained_model"
:
"gpt2-medium"
,
},
},
"sentiment"
:
{
"sentiment"
:
{
"url"
:
"http://s
.yosinski.com
/SST_classifier_head.pt"
,
"url"
:
"http
s
://s
3.amazonaws.com/models.huggingface.co/bert/pplm/discriminators
/SST_classifier_head.pt"
,
"class_size"
:
5
,
"class_size"
:
5
,
"embed_size"
:
1024
,
"embed_size"
:
1024
,
"class_vocab"
:
{
"very_positive"
:
2
,
"very_negative"
:
3
},
"class_vocab"
:
{
"very_positive"
:
2
,
"very_negative"
:
3
},
...
@@ -75,7 +75,7 @@ DISCRIMINATOR_MODELS_PARAMS = {
...
@@ -75,7 +75,7 @@ DISCRIMINATOR_MODELS_PARAMS = {
"pretrained_model"
:
"gpt2-medium"
,
"pretrained_model"
:
"gpt2-medium"
,
},
},
"toxicity"
:
{
"toxicity"
:
{
"url"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/pplm/discriminators/toxic
ity
_classifierhead.pt"
,
"url"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/pplm/discriminators/toxic_classifier
_
head.pt"
,
"class_size"
:
2
,
"class_size"
:
2
,
"embed_size"
:
1024
,
"embed_size"
:
1024
,
"class_vocab"
:
{
"non_toxic"
:
0
,
"toxic"
:
1
},
"class_vocab"
:
{
"non_toxic"
:
0
,
"toxic"
:
1
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment