Skip to content

Commit 1bc326d

Browse files
committed
- Bump version number
1 parent 5a5140d commit 1bc326d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def read(*names, **kwargs):
2525

2626
setup(
2727
name='ecco',
28-
version='0.1.1',
28+
version='0.1.2',
2929
license='BSD-3-Clause',
3030
description='Visualization tools for NLP machine learning models.',
3131
long_description='%s\n%s' % (

src/ecco/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313

1414

15-
__version__ = '0.1.1'
15+
__version__ = '0.1.2'
1616
from ecco.lm import LM
1717
from transformers import AutoTokenizer, AutoModelForCausalLM, AutoModel, AutoModelForSeq2SeqLM
1818
from typing import Any, Dict, Optional, List

src/ecco/lm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def generate(self, input_str: str,
200200
# Get decoder input ids
201201
if self.model_type == 'enc-dec': # FIXME: only done because causal LMs like GPT-2 have the _prepare_decoder_input_ids_for_generation method but do not use it
202202
assert len(input_ids.size()) == 2 # will break otherwise
203-
if version.parse(transformers.__version__) >= version.parse('4.13'): # ALSO FIXME: awful hack. But seems to work?
203+
if version.parse(transformers.__version__) >= version.parse('4.13'):
204204
decoder_input_ids = self.model._prepare_decoder_input_ids_for_generation(input_ids.shape[0], None, None)
205205
else:
206206
decoder_input_ids = self.model._prepare_decoder_input_ids_for_generation(input_ids, None, None)

0 commit comments

Comments
 (0)