Instructions to use law-ai/InCaseLawBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use law-ai/InCaseLawBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="law-ai/InCaseLawBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("law-ai/InCaseLawBERT") model = AutoModelForPreTraining.from_pretrained("law-ai/InCaseLawBERT", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
0c00932 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:cbb4be770dca1c6f29eb46e0d602477515e4bfc1d2c87c7ae367393015560658
size 534273761
|