New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: 684830 exceeds max_map_len(32768) #1563
Comments
Workaround is to freeze |
This fixed it for me |
When building a docker image via Dockerfile, you can add below to the end of file. Possibly, you are loadding the model with a different version of Rasa from which version you use for training the model. |
Getting the below error after i downgraded the msgpack version to 0.5.6 Rasa NLU version: 0.12.3 Operating system : Macos Content of model configuration file: Full stacktrace below: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/training_data/training_data.py:194: UserWarning: Entity 'people' has only 1 training examples! minimum is 2, training may fail. |
…aHQ#1563) * build(deps): bump github.com/moby/buildkit from 0.10.6 to 0.11.0 Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit) from 0.10.6 to 0.11.0. - [Release notes](https://github.com/moby/buildkit/releases) - [Commits](moby/buildkit@v0.10.6...v0.11.0) --- updated-dependencies: - dependency-name: github.com/moby/buildkit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: use new patternmatcher.Matches Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Casey Lee <caseypl@amazon.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Rasa NLU version: 0.13.8
Operating system (windows, osx, ...): Ubuntu
Content of model configuration file:
Issue:
This is the full stack trace below from trying to train
2018-12-03 06:45:39 INFO rasa_nlu.utils.spacy_utils - Trying to load spacy model with name 'en'
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/train.py", line 184, in
num_threads=cmdline_args.num_threads)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/train.py", line 148, in do_train
trainer = Trainer(cfg, component_builder)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/model.py", line 155, in init
self.pipeline = self._build_pipeline(cfg, component_builder)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/model.py", line 166, in _build_pipeline
component_name, cfg)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/components.py", line 441, in create_component
cfg)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/registry.py", line 143, in create_component_by_name
return component_clz.create(config)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/utils/spacy_utils.py", line 73, in create
nlp = spacy.load(spacy_model_name, parser=False)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/init.py", line 15, in load
return util.load_model(name, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 112, in load_model
return load_model_from_link(name, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 129, in load_model_from_link
return cls.load(**overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/data/en/init.py", line 12, in load
return load_model_from_init_py(file, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 173, in load_model_from_init_py
return load_model_from_path(data_path, meta, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 156, in load_model_from_path
return nlp.from_disk(model_path)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/language.py", line 653, in from_disk
util.from_disk(path, deserializers, exclude)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/language.py", line 641, in
self.vocab.from_disk(p) and _fix_pretrained_vectors_name(self))),
File "vocab.pyx", line 380, in spacy.vocab.Vocab.from_disk
File "vectors.pyx", line 391, in spacy.vectors.Vectors.from_disk
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "vectors.pyx", line 369, in spacy.vectors.Vectors.from_disk.load_key2row
File "vectors.pyx", line 370, in spacy.vectors.Vectors.from_disk.load_key2row
File "/home/ampm/.local/lib/python3.6/site-packages/msgpack_numpy.py", line 205, in unpack
return _unpack(stream, **kwargs)
File "/home/ampm/.local/lib/python3.6/site-packages/msgpack/init.py", line 57, in unpack
return unpackb(data, **kwargs)
File "/home/ampm/.local/lib/python3.6/site-packages/msgpack_numpy.py", line 214, in unpackb
return _unpackb(packed, **kwargs)
File "msgpack/_unpacker.pyx", line 187, in msgpack._cmsgpack.unpackb
ValueError: 684830 exceeds max_map_len(32768)
The text was updated successfully, but these errors were encountered: