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
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/tarfile.py", line 187, in nti
n = int(s.strip() or "0", 8)
ValueError: invalid literal for int() with base 8: 'ings.tra'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/tarfile.py", line 2287, in next
tarinfo = self.tarinfo.fromtarfile(self)
File "/opt/conda/lib/python3.7/tarfile.py", line 1095, in fromtarfile
obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors)
File "/opt/conda/lib/python3.7/tarfile.py", line 1037, in frombuf
chksum = nti(buf[148:156])
File "/opt/conda/lib/python3.7/tarfile.py", line 189, in nti
raise InvalidHeaderError("invalid header")
tarfile.InvalidHeaderError: invalid header
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 595, in _load
return legacy_load(f)
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 506, in legacy_load
with closing(tarfile.open(fileobj=f, mode='r:', format=tarfile.PAX_FORMAT)) as tar,
File "/opt/conda/lib/python3.7/tarfile.py", line 1591, in open
return func(name, filemode, fileobj, **kwargs)
File "/opt/conda/lib/python3.7/tarfile.py", line 1621, in taropen
return cls(name, mode, fileobj, **kwargs)
File "/opt/conda/lib/python3.7/tarfile.py", line 1484, in init
self.firstmember = self.next()
File "/opt/conda/lib/python3.7/tarfile.py", line 2299, in next
raise ReadError(str(e))
tarfile.ReadError: invalid header
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/app/TabularSemanticParsing/src/experiments.py", line 407, in
run_experiment(args)
File "/app/TabularSemanticParsing/src/experiments.py", line 394, in run_experiment
inference(sp)
File "/app/TabularSemanticParsing/src/experiments.py", line 104, in inference
sp.load_checkpoint(get_checkpoint_path(args))
File "/app/TabularSemanticParsing/src/common/learn_framework.py", line 423, in load_checkpoint
checkpoint = torch.load(input_file)
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 426, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 599, in _load
raise RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)".format(f.name))
RuntimeError: /app/TabularSemanticParsing/model/model-best.tar is a zip archive (did you mean to use torch.jit.load()?)
Does anyone have a clue of what might be going on ?
The text was updated successfully, but these errors were encountered:
Hi
As mentioned in the readme I downloaded ang gunzipped the .tar.gz file, obtaining a .tar file.
mv bridge-spider-bert-large-ems-70-1-exe-68-2.tar.gz model
gunzip model/bridge-spider-bert-large-ems-70-1-exe-68-2.tar.gz
mv bridge-spider-bert-large-ems-70-1-exe-68-2.tar.gz model-best.tar
However, when performing inference, using the following line:
./experiment-bridge.sh configs/bridge/spider-bridge-bert-large.sh --inference 0 --checkpoint_path /app/TabularSemanticParsing/model/model-best.tar
I obtain this error:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/tarfile.py", line 187, in nti
n = int(s.strip() or "0", 8)
ValueError: invalid literal for int() with base 8: 'ings.tra'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/tarfile.py", line 2287, in next
tarinfo = self.tarinfo.fromtarfile(self)
File "/opt/conda/lib/python3.7/tarfile.py", line 1095, in fromtarfile
obj = cls.frombuf(buf, tarfile.encoding, tarfile.errors)
File "/opt/conda/lib/python3.7/tarfile.py", line 1037, in frombuf
chksum = nti(buf[148:156])
File "/opt/conda/lib/python3.7/tarfile.py", line 189, in nti
raise InvalidHeaderError("invalid header")
tarfile.InvalidHeaderError: invalid header
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 595, in _load
return legacy_load(f)
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 506, in legacy_load
with closing(tarfile.open(fileobj=f, mode='r:', format=tarfile.PAX_FORMAT)) as tar,
File "/opt/conda/lib/python3.7/tarfile.py", line 1591, in open
return func(name, filemode, fileobj, **kwargs)
File "/opt/conda/lib/python3.7/tarfile.py", line 1621, in taropen
return cls(name, mode, fileobj, **kwargs)
File "/opt/conda/lib/python3.7/tarfile.py", line 1484, in init
self.firstmember = self.next()
File "/opt/conda/lib/python3.7/tarfile.py", line 2299, in next
raise ReadError(str(e))
tarfile.ReadError: invalid header
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/app/TabularSemanticParsing/src/experiments.py", line 407, in
run_experiment(args)
File "/app/TabularSemanticParsing/src/experiments.py", line 394, in run_experiment
inference(sp)
File "/app/TabularSemanticParsing/src/experiments.py", line 104, in inference
sp.load_checkpoint(get_checkpoint_path(args))
File "/app/TabularSemanticParsing/src/common/learn_framework.py", line 423, in load_checkpoint
checkpoint = torch.load(input_file)
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 426, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "/root/.local/lib/python3.7/site-packages/torch/serialization.py", line 599, in _load
raise RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)".format(f.name))
RuntimeError: /app/TabularSemanticParsing/model/model-best.tar is a zip archive (did you mean to use torch.jit.load()?)
Does anyone have a clue of what might be going on ?
The text was updated successfully, but these errors were encountered: