Instructions to use Beri/legal-qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Beri/legal-qa 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="Beri/legal-qa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("Beri/legal-qa") model = AutoModelForQuestionAnswering.from_pretrained("Beri/legal-qa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload merges.txt
67b37f8 -
Upload vocab.json
5e92a6a -
Upload training_args.bin with git-lfs
2d297e0 -
Upload tokenizer_config.json
66c7fe5 -
Upload special_tokens_map.json
7456f50 -
Upload config.json
806d8c2 -
Upload pytorch_model.bin with git-lfs
ffc9b51 -
initial commit
518f227