You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@leezu what do you think of adding 'XLNet' to gluonnlp.model API, and have a folder for squad finetuning with BERT and XLNet? We don't necessarily need to expose all intermediate block APIs (e.g. attention cell)
[2020-02-02T20:03:05.993Z] Traceback (most recent call last):
[2020-02-02T20:03:05.993Z] File "./scripts/language_model/run_squad.py", line 200, in <module>
[2020-02-02T20:03:05.993Z] xlnet_base, vocab, tokenizer = model.get_model(**get_model_params)
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/scripts/language_model/transformer/model.py", line 62, in get_model
[2020-02-02T20:03:05.993Z] return models[name](**kwargs)
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/scripts/language_model/transformer/model.py", line 193, in xlnet_cased_l12_h768_a12
[2020-02-02T20:03:05.993Z] ignore_extra=not kwargs.get('use_decoder', True))
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/src/gluonnlp/model/utils.py", line 281, in _load_pretrained_params
[2020-02-02T20:03:05.993Z] net.load_parameters(model_file, ctx=ctx, ignore_extra=ignore_extra, allow_missing=allow_missing)
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/conda/gpu/py3/lib/python3.5/site-packages/mxnet/gluon/block.py", line 555, in load_parameters
[2020-02-02T20:03:05.993Z] params[name]._load_init(loaded[name], ctx, cast_dtype=cast_dtype, dtype_source=dtype_source)
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/conda/gpu/py3/lib/python3.5/site-packages/mxnet/gluon/parameter.py", line 310, in _load_init
[2020-02-02T20:03:05.993Z] self._init_impl(data, ctx)
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/conda/gpu/py3/lib/python3.5/site-packages/mxnet/gluon/parameter.py", line 359, in _init_impl
[2020-02-02T20:03:05.993Z] self._data = [data.copyto(ctx) for ctx in self._ctx_list]
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/conda/gpu/py3/lib/python3.5/site-packages/mxnet/gluon/parameter.py", line 359, in <listcomp>
[2020-02-02T20:03:05.993Z] self._data = [data.copyto(ctx) for ctx in self._ctx_list]
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/conda/gpu/py3/lib/python3.5/site-packages/mxnet/ndarray/ndarray.py", line 2632, in copyto
[2020-02-02T20:03:05.993Z] return _internal._copyto(self, out=hret)
[2020-02-02T20:03:05.993Z] File "<string>", line 27, in _copyto
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/conda/gpu/py3/lib/python3.5/site-packages/mxnet/_ctypes/ndarray.py", line 107, in _imperative_invoke
[2020-02-02T20:03:05.993Z] ctypes.byref(out_stypes)))
[2020-02-02T20:03:05.993Z] File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3/conda/gpu/py3/lib/python3.5/site-packages/mxnet/base.py", line 255, in check_call
[2020-02-02T20:03:05.993Z] raise MXNetError(py_str(_LIB.MXGetLastError()))
[2020-02-02T20:03:05.993Z] mxnet.base.MXNetError: [20:03:01] src/engine/threaded_engine.cc:333: Check failed: exec_ctx.dev_id < device_count_ (1 vs. 1) : Invalid GPU Id: 1, Valid device id should be less than device_count: 1
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
add XLNet squad finetuning scripts.
add corresponding results.
Checklist
Essentials
Changes
Comments