Instructions to use NchuNLP/Legal-Document-Question-Answering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NchuNLP/Legal-Document-Question-Answering with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="NchuNLP/Legal-Document-Question-Answering")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("NchuNLP/Legal-Document-Question-Answering") model = AutoModelForQuestionAnswering.from_pretrained("NchuNLP/Legal-Document-Question-Answering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from NchuNLP/Legal-Document-Question-Answering: direct link, hf CLI and curl.
- Browser
- Download file 407 MB
-
https://huggingface.co/NchuNLP/Legal-Document-Question-Answering/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://NchuNLP/Legal-Document-Question-Answering/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/NchuNLP/Legal-Document-Question-Answering/resolve/main/pytorch_model.bin
407 MB
- Xet hash:
- aec423f04b8a17b8b1005597ca2d05c5345b2d48e2bcade8480aa46e679e04c7
- Size of remote file:
- 407 MB
- SHA256:
- 278d02809fc43390a0bb620b0de8ea39a83ef0c760d783b63b78a85855d789a6
Β·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.