Closed noahmartinwilliams closed 10 months ago
Just noticed something went wrong with pasting the environment info. So here it is again:
<details>
<summary>Current environment</summary>
* CUDA:
- GPU:
- NVIDIA GeForce RTX 3050 Laptop GPU
- available: True
- version: 12.1
* Lightning:
- lightning: 2.0.1.post0
- lightning-cloud: 0.5.33
- lightning-transformers: 0.2.5
- lightning-utilities: 0.8.0
- pytorch-lightning: 2.0.1.post0
- torch: 2.0.0
- torchdata: 0.6.0
- torchmetrics: 0.11.4
- torchtext: 0.15.1a0+c696895
- torchvision: 0.15.1
* Packages:
- absl-py: 1.4.0
- aiodns: 3.0.0
- aiohttp: 3.8.3
- aiohttp-socks: 0.7.1
- aiosignal: 1.3.1
- alabaster: 0.7.13
- anyio: 3.6.2
- anytree: 2.8.0
- appdirs: 1.4.4
- arandr: 0.1.11
- arrow: 1.2.3
- async-timeout: 4.0.2
- attrs: 22.2.0
- autocommand: 2.2.2
- babel: 2.11.0
- beautifulsoup4: 4.11.2
- bleach: 6.0.0
- blessed: 1.20.0
- btrfsutil: 6.2.2
- build: 0.10.0
- cachetools: 5.3.0
- cchardet: 2.1.7
- certifi: 2022.12.7
- cffi: 1.15.1
- chardet: 5.1.0
- charset-normalizer: 3.1.0
- click: 8.1.3
- conda: 4.14.0
- conda-package-handling: 1.8.1
- contourpy: 1.0.7
- croniter: 1.3.14
- cryptography: 40.0.1
- cupshelpers: 1.0
- cycler: 0.11.0
- cython: 0.29.34
- datasets: 2.11.0
- dateutils: 0.6.12
- deepdiff: 6.3.0
- defusedxml: 0.7.1
- dill: 0.3.6
- docutils: 0.19
- elasticsearch: 7.9.0
- exceptiongroup: 1.1.1
- fake-useragent: 1.1.3
- fastapi: 0.88.0
- fastjsonschema: 2.16.3
- ffmpeg-python: 0.2.0
- filelock: 3.12.0
- fonttools: 4.39.3
- frozenlist: 1.3.3
- fsspec: 2023.4.0
- future: 0.18.2
- geographiclib: 2.0
- geopy: 2.3.0
- gitdb: 4.0.10
- gitpython: 3.1.30
- glances: 3.3.1.1
- gmpy2: 2.1.5
- google-auth: 2.16.2
- google-auth-oauthlib: 1.0.0
- googletransx: 2.4.2
- grpcio: 1.53.0
- guake: 3.9.1.dev0
- h11: 0.14.0
- html2text: 2020.1.16
- html5lib: 1.1
- huggingface-hub: 0.12.1
- idna: 3.4
- imagesize: 1.4.1
- importlib-metadata: 5.0.0
- inflect: 6.0.4
- iniconfig: 2.0.0
- inquirer: 3.1.3
- installer: 0.7.0
- iotop: 0.6
- itsdangerous: 2.1.2
- jaraco.context: 4.3.0
- jaraco.functools: 3.6.0
- jaraco.text: 3.11.1
- jinja2: 3.1.2
- joblib: 1.2.0
- kiwisolver: 1.4.4
- lensfun: 0.3.3
- libarchive-c: 4.0
- libfdt: 1.6.1
- lightning: 2.0.1.post0
- lightning-cloud: 0.5.33
- lightning-transformers: 0.2.5
- lightning-utilities: 0.8.0
- lit: 15.0.7.dev0
- lxml: 4.9.2
- mako: 1.2.4
- mallard-ducktype: 1.0.2
- markdown: 3.4.3
- markdown-it-py: 2.2.0
- markupsafe: 2.1.2
- matplotlib: 3.7.1
- mdurl: 0.1.2
- meson: 1.0.1
- mock: 3.0.5
- more-itertools: 9.1.0
- mpmath: 1.3.0
- multidict: 6.0.4
- multiprocess: 0.70.14
- netsnmp-python: 1.0a1
- networkx: 3.1
- nltk: 3.8.1
- notmuch: 0.37
- notmuch2: 0.37
- nspektr: 0.4.0
- numpy: 1.24.2
- oauthlib: 3.2.2
- openai-whisper: 20230124
- openshot-qt: 3.0.0
- ordered-set: 4.1.0
- packaging: 23.0
- pandas: 1.5.3
- pbr: 5.11.1
- pillow: 9.4.0
- pip: 23.0.1
- pivy: 0.6.8
- platformdirs: 3.2.0
- pluggy: 1.0.0
- ply: 3.11
- pooch: 1.7.0
- portalocker: 2.7.0
- protobuf: 4.21.12
- psutil: 5.9.4
- pyarrow: 11.0.0
- pyasn1: 0.4.8
- pyasn1-modules: 0.2.8
- pyaudio: 0.2.13
- pybind11: 2.10.4
- pycairo: 1.23.0
- pycares: 4.3.0
- pycosat: 0.6.4
- pycparser: 2.21
- pycups: 2.0.1
- pycurl: 7.45.2
- pydantic: 1.10.7
- pygments: 2.14.0
- pygobject: 3.44.1
- pyjwt: 2.6.0
- pyparsing: 3.0.9
- pyproject-hooks: 1.0.0
- pyqt5: 5.15.9
- pyqt5-sip: 12.12.1
- pyqtwebengine: 5.15.6
- pyside2: 5.15.9
- pysocks: 1.7.1
- pytest: 7.3.1
- pytest-mock: 3.10.0
- pytest-runner: 6.0.0
- python-dateutil: 2.8.2
- python-editor: 1.0.4
- python-multipart: 0.0.6
- python-socks: 2.0.3
- pytorch-lightning: 2.0.1.post0
- pytz: 2022.7.1
- pyxdg: 0.28
- pyyaml: 6.0
- pyzmq: 25.0.2
- qreator: 20.2.1
- qrencode: 1.2
- readchar: 4.0.5
- regex: 2023.3.23
- requests: 2.28.2
- requests-oauthlib: 1.3.1
- responses: 0.18.0
- rich: 13.3.4
- rsa: 4.9
- ruamel.yaml: 0.17.21
- ruamel.yaml.clib: 0.2.7
- schedule: 1.1.0
- scipy: 1.10.1
- scons: 4.4.0
- screenkey: 1.5
- semantic-version: 2.10.0
- sentencepiece: 0.1.98
- setuptools: 67.6.1
- setuptools-rust: 1.5.2
- shiboken2: 5.15.9
- six: 1.16.0
- smmap: 5.0.0
- sniffio: 1.3.0
- snowballstemmer: 2.2.0
- soupsieve: 2.4
- speedtest-cli: 2.1.3
- sphinx: 6.1.3
- sphinxcontrib-applehelp: 1.0.4
- sphinxcontrib-devhelp: 1.0.2
- sphinxcontrib-htmlhelp: 2.0.1
- sphinxcontrib-jsmath: 1.0.1
- sphinxcontrib-qthelp: 1.0.3
- sphinxcontrib-serializinghtml: 1.1.5
- starlette: 0.22.0
- starsessions: 1.3.0
- sympy: 1.11.1
- tbb: 0.2
- tensorboard: 2.12.1
- tensorboard-data-server: 0.8.0a0
- tensorboard-plugin-wit: 1.8.1
- tokenizers: 0.13.2
- tomli: 2.0.1
- toot: 0.28.0
- torch: 2.0.0
- torchdata: 0.6.0
- torchmetrics: 0.11.4
- torchtext: 0.15.1a0+c696895
- torchvision: 0.15.1
- tqdm: 4.65.0
- traitlets: 5.9.0
- transformers: 4.26.1
- trove-classifiers: 2023.4.20
- tweepy: 4.12.1
- typing-extensions: 4.5.0
- ujson: 5.7.0
- urllib3: 1.26.13
- urwid: 2.1.2
- uvicorn: 0.21.1
- validate-pyproject: 0.12.2.post1.dev0+g2940279.d20230328
- vobject: 0.9.6.1
- wcwidth: 0.2.5
- webencodings: 0.5.1
- websocket-client: 1.5.1
- websockets: 11.0.1
- werkzeug: 2.2.3
- wheel: 0.40.0
- wxpython: 4.2.0
- xxhash: 3.2.0
- yarl: 1.8.2
- youtube-dl: 2021.12.17
- yt-dlp: 2023.3.4
- zim: 0.75.1
- zipp: 3.15.0
* System:
- OS: Linux
- architecture:
- 64bit
- ELF
- processor:
- python: 3.10.10
- version: #1 SMP PREEMPT_DYNAMIC Thu, 13 Apr 2023 16:59:24 +0000
**</details>**
@noahmartinwilliams Is there any indication that this is a problem with Lightning?
It's copied and pasted from the example code.
Can you try using Lightning 1.7? Lightning transformers is archived and not updated to run with latest lightning
Oh, I didn't know that. Does the latest version of lightning have transformers for question answering?
Closing now, since lightning_transformers
is archived. We don't have a QA example like you showed. If there a desire to have on in our examples, we need to build one.
Bug description
Running the example code from here doesn't run, and complains about having 2 predictions and 10784 features.
What version are you seeing the problem on?
2.0+
How to reproduce the bug
Error messages and logs
Environment
Current environment
``` #- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow): #- PyTorch Lightning Version (e.g., 1.5.0): #- Lightning App Version (e.g., 0.5.2): #- PyTorch Version (e.g., 2.0): #- Python version (e.g., 3.9): #- OS (e.g., Linux): #- CUDA/cuDNN version: #- GPU models and configuration: #- How you installed Lightning(`conda`, `pip`, source): #- Running environment of LightningApp (e.g. local, cloud): ```More info
It also doesn't work with local datasets.