Skip to content

Commit

Permalink
Change default to smaller model
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshmi-bashyam committed Aug 28, 2024
1 parent 3e02a72 commit 7379061
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion annif/backend/xtransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class XTransformerBackend(mixins.TfidfVectorizerMixin, backend.AnnifBackend):
"imbalanced_depth": 100,
"max_match_clusters": 32768,
"do_fine_tune": True,
"model_shortcut": "bert-base-multilingual-uncased",
"model_shortcut": "distilbert-base-multilingual-uncased",
"beam_size": 20,
"limit": 100,
"post_processor": "sigmoid",
Expand Down
8 changes: 4 additions & 4 deletions tests/test_backend_xtransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def test_xtransformer_default_params(project):
"imbalanced_depth": 100,
"max_match_clusters": 32768,
"do_fine_tune": True,
# 'model_shortcut': 'distilbert-base-multilingual-cased',
"model_shortcut": "bert-base-multilingual-uncased",
'model_shortcut': 'distilbert-base-multilingual-uncased',
# "model_shortcut": "bert-base-multilingual-uncased",
"beam_size": 20,
"limit": 100,
"post_processor": "sigmoid",
Expand Down Expand Up @@ -144,8 +144,8 @@ def test_xtransformer_train(datadir, document_corpus, project, mocked_xtransform
"max_leaf_size": 100,
"imbalanced_ratio": 0.0,
"imbalanced_depth": 100,
"model_shortcut": "bert-base-multilingual-uncased",
# 'model_shortcut': 'distilbert-base-multilingual-cased',
# "model_shortcut": "bert-base-multilingual-uncased",
'model_shortcut': 'distilbert-base-multilingual-uncased',
"post_processor": "sigmoid",
"negative_sampling": "tfn",
"ensemble_method": "transformer-only",
Expand Down

0 comments on commit 7379061

Please sign in to comment.