Instructions to use law-ai/CustomInLawBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use law-ai/CustomInLawBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="law-ai/CustomInLawBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("law-ai/CustomInLawBERT") model = AutoModelForMaskedLM.from_pretrained("law-ai/CustomInLawBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from law-ai/CustomInLawBERT: direct link, hf CLI and curl.
- Browser
- Download file 534 MB
-
https://huggingface.co/law-ai/CustomInLawBERT/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://law-ai/CustomInLawBERT/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/law-ai/CustomInLawBERT/resolve/main/pytorch_model.bin
534 MB
- Xet hash:
- 9481ccaa26f5bb48fcfd8e6e378dccfc08a3097f2ae4ba48a16d275647a0f2f8
- Size of remote file:
- 534 MB
- SHA256:
- 525d803f7d244f22e0010b7fab3f8090afcda85ee4b68ff4e45c6d3d19cbfea0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.